Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v2.2.1_samtools-1.17 #3

Merged
merged 6 commits into from
Jul 12, 2023
Merged

Conversation

bethneilsen
Copy link
Contributor

Formatting

File Updates

  • I have ensured that the version number update follows the versioning standards.

  • I have updated the version number/dependencies and added my name to the maintainer list in the Dockerfile.

  • I have updated the version number/feature changes in the README.md.

  • I have updated the version number and added my name to the contributors list in the metadata.yaml.

  • I have added the changes included in this pull request to the CHANGELOG.md under the next release version or unreleased, and updated the date.

  • I have drafted the new version release with any additions/changes and have linked the CHANGELOG.md in the release.

Docker Hub Auto Build Rules

  • I have created automated build rules following this page and I have not manually pushed this Docker image to the blcdsdockerregistry on Docker Hub.

Docker Image Testing

  • I have tested the Docker image with the docker run command as described below.

Test the Docker image with at least one sample. Verify the new Docker image works using:

docker run -u $(id -u):$(id -g) –w <working-directory> -v <directory-you-want-to-mount>:<how-you-want-to-mount-it-within-the-docker> --rm <docker-image-name> <command-to-the-docker-with-all-parameters>

My command:

Case 1: docker run --rm -u $(id -u):$(id -g) bwa-mem2_samtools-1.17:latest bwa-mem2 version

Case 2: docker run --rm -u $(id -u):$(id -g) bwa-mem2_samtools-1.17:latest samtools version

Testing Results

Case 1:
Launching executable "/usr/local/bin/bwa-mem2.avx512bw"
2.2.1

Case 2:
samtools 1.17
Using htslib 1.17
Copyright (C) 2023 Genome Research Ltd.

Description

Closes NA - Updates SAMTools to the latest version 1.17, added auto build Docker functionality, updated to use mamba to build

Partially addresses issue #258 within pipeline-align-DNA

Copy link
Contributor

@yashpatel6 yashpatel6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments:

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@yashpatel6 yashpatel6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on the README but otherwise looks good! Anything else to add @tyamaguchi-ucla ?

README.md Outdated Show resolved Hide resolved
Copy link

@tyamaguchi-ucla tyamaguchi-ucla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few minor suggestions although we can't implement them together at the same time.. Otherwise, looks good to me.

Dockerfile Outdated
@@ -1,12 +1,12 @@
FROM blcdsdockerregistry/bl-base:1.0.0 AS builder
ARG MINIFORGE_VERSION=22.9.0-2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to use the latest version? https://github.com/conda-forge/miniforge/releases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to version 23.1.0-3


LABEL maintainer="Yash Patel <[email protected]>"
FROM condaforge/mambaforge:${MINIFORGE_VERSION} AS builder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor point but I think we can take advantage of the existing samtools image that we recently updated, which should reduce the build time.
https://github.com/uclahs-cds/docker-SAMtools/blob/main/Dockerfile

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably can't use that image directly since that image shouldn't contain conda/mamba since the SAMtools build gets deployed into the base Ubuntu image, which doesn't contain those. We could potentially install just BWA-MEM2 through mamba and then deploy into the SAMtools image rather than Ubuntu for some build speedup

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! We can implement the both suggestions then!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how to readily complete this, so plan to merge the current pull request and created a new issue to address this on a separate branch.

@bethneilsen bethneilsen merged commit 99f6a87 into main Jul 12, 2023
1 check passed
@yashpatel6 yashpatel6 deleted the bneilsen-UpdateSAMToolsv1.17 branch March 30, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants