-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/dragen genome untar #22
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6d90c3f
Add dragen and dragenutils
rernst 13ea4da
Fix typo
rernst ed573e3
Move dragen to dragen wgs
rernst 3d2f193
Fix dragen tests
rernst 47e6064
Update to smaller container
rernst 5aed942
Remove wgs specific args
rernst d6b6b97
Use prefix
rernst 9653af8
Add prefix to test
rernst dd19f8e
Switch quotes
rernst e17708c
Remove todo
rernst 134f915
Fix version one more time...
rernst e0a8d3e
Remove set -ex
rernst e24cc82
Fix version
rernst 9d24eba
Update snap
rernst ff6695d
Bump dragen utils containers to 1.0.0
rernst 162aa61
Add BAM and BAI output files to dragen
Jorisvansteenbrugge e70ebc7
include bai in snapshot
Jorisvansteenbrugge b31f4e2
genome tar processing flow
Jorisvansteenbrugge 04800c4
run dragen with preprocessed genome tar
Jorisvansteenbrugge 5d8f653
remove job array param ref
Jorisvansteenbrugge d725faa
fix linting
Jorisvansteenbrugge 444c50a
Merge branch 'main' into feature/dragen_genome_untar
Jorisvansteenbrugge dbade24
Feature/dragen bam (#23)
Jorisvansteenbrugge 9ab25ff
rename untar_genome to ica_untar_genome_bundle
Jorisvansteenbrugge e367d17
fix linting
Jorisvansteenbrugge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| process ICA_UNTARGENOMEBUNDLE { | ||
| tag "${meta.id}" | ||
| label 'process_single' | ||
|
|
||
| container "${workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container | ||
| ? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/52/52ccce28d2ab928ab862e25aae26314d69c8e38bd41ca9431c67ef05221348aa/data' | ||
| : 'community.wave.seqera.io/library/coreutils_grep_gzip_lbzip2_pruned:838ba80435a629f8'}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(genome_tar) | ||
|
|
||
| output: | ||
| tuple val(meta), path('dragen_ref'), emit: dragen_ref | ||
| tuple val(meta), path('genome.fa'), emit: fasta | ||
| tuple val(meta), path("genes.gtf.gz"), emit: gtf | ||
| tuple val("${task.process}"), val('tar'), eval('tar --version | sed -n "s/.*tar)//p" | tr -d " "'), emit: versions_ica_untargenomebundle, topic: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def hashtable_version = params.dragen_hashtable_version ?: '' | ||
| """ | ||
| tar -xzf ${genome_tar} | ||
| mapfile -t hts < <(find . -name hash_table.cfg -printf '%h\\n' | grep -E '/[0-9]+\$' | sort -V) | ||
|
|
||
| if [ \${#hts[@]} -eq 0 ]; then | ||
| echo "ERROR: no DRAGEN hashtable (hash_table.cfg) found in ${genome_tar}" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
|
|
||
| if [ -n "${hashtable_version}" ]; then | ||
| ref_dir=\$(printf '%s\\n' "\${hts[@]}" | grep -E "/${hashtable_version}\$") || { | ||
| echo "ERROR: hashtable v${hashtable_version} not found. Available: \${hts[*]}" >&2 | ||
| exit 1 | ||
| } | ||
| else | ||
| ref_dir=\${hts[-1]} # Highest version | ||
| fi | ||
|
|
||
| echo "Using DRAGEN ref-dir: \$ref_dir" >&2 | ||
| ln -s "\$(realpath \$ref_dir)" dragen_ref | ||
|
|
||
| """ | ||
| } |
18 changes: 11 additions & 7 deletions
18
...UGenetics/untar/genome/tests/main.nf.test → .../ica/untargenomebundle/tests/main.nf.test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/UMCUGenetics/ica/untargenomebundle/tests/main.nf.test.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "Validate ica untar genome bundle": { | ||
| "content": [ | ||
| { | ||
| "versions_ica_untargenomebundle": [ | ||
| [ | ||
| "ICA_UNTARGENOMEBUNDLE", | ||
| "tar", | ||
| "1.34" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-08-31T11:23:15.672213", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "26.04.6" | ||
| } | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.