Skip to content

Build Picard from source with htsjdk 4.3.0 for CRAM v3.1 support#281

Merged
EddieLF merged 4 commits intomainfrom
build_picard
Feb 26, 2026
Merged

Build Picard from source with htsjdk 4.3.0 for CRAM v3.1 support#281
EddieLF merged 4 commits intomainfrom
build_picard

Conversation

@EddieLF
Copy link
Contributor

@EddieLF EddieLF commented Feb 25, 2026

Build the Picard image from source code rather than installing through the package manager. This allows us to explicitly build with htsjdk 4.3.0 which is required for compatibility with CRAM v3.1 (default CRAM version for samtools v1.22 onwards.)

Based on Devin McCabe's image from the Broad Institute:
broadinstitute/picard#2028 (comment)

Also adapts the entrypoint shell script from Bioconda and copies it into the image:
https://github.com/bioconda/bioconda-recipes/blob/master/recipes/picard/picard.sh

Builds the image in two stages so that the build tools are discarded in the final image.

@github-actions
Copy link

github-actions bot commented Feb 25, 2026

🐳 Expected Tags

Some Dockerfiles have been modified in this PR. New tags are expected to be deployed.
The table below shows what the tags are expected to be on merging this PR.

Name Tag
picard 3.4.0-2

@jmarshall
Copy link
Contributor

FYI the debacle of HTSJDK 4.3.0 not having been properly released — and no corresponding Picard release having been made at all — was discussed again at yesterday's GA4GH file formats meeting. Various people are further stepping up their efforts to get this fixed and I'm hopeful that they will soon succeed and a more up-to-date Picard will appear in bioconda.

However at least in the meantime it's worth building it ourselves like this.

@jmarshall
Copy link
Contributor

jmarshall commented Feb 25, 2026

Because we use arguments like -Xms… that AIUI should be given to java itself, it would probably be better to use a script like bioconda's rather than just an alias.

Copy link
Contributor

@MattWellie MattWellie left a comment

Choose a reason for hiding this comment

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

YOLOO

@EddieLF EddieLF merged commit addf9e8 into main Feb 26, 2026
7 checks passed
@EddieLF EddieLF deleted the build_picard branch February 26, 2026 03:04
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.

3 participants