-
Notifications
You must be signed in to change notification settings - Fork 14
feat: aligners & variant callers #282
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
base: main
Are you sure you want to change the base?
Changes from 90 commits
f911ef4
fd2bca4
1ebe2a0
9533656
1b28075
0ac46db
5161669
af994e2
00deed4
4434666
b07d769
cb47772
39ca901
a921e17
733368e
2dc478a
1c832fc
bd84132
8abaf9c
d42fbfb
589190d
efb1d50
25681c7
1083326
30d1159
e58c2ed
e680a5b
60dce46
f614485
352fa6f
339f20a
df13caf
8ca1901
a37db77
5badc77
fb1ed43
b8411d5
f749a6c
b2659f4
6bf5936
c17a874
31d32b1
bc6af62
d53e15c
fe34740
3afa3e0
e0e602d
a9948bd
81224cf
455f4d7
f197aef
56328f2
174703f
fd50c7e
34e808e
c084df7
c6fdb1a
6b6b92e
f7b7fb1
664a0d1
f470afa
fcafe1e
b4621c3
dd35f36
ab2496a
5ba4e5a
99d645e
7ab7375
cda5a4a
e579d69
9d07e09
810cbe6
a8e2148
db57b47
707b702
0bb848a
ff82245
9adf2f5
2efd098
9f62956
0929b67
211ba8e
d002e55
7ef3492
95a075d
5862a97
95d08cd
e5b5695
89882df
4aeb876
5e29fb6
942e51e
ddf2f9d
af86744
b8ad722
8edb6c8
6b3fc73
be50eb5
b709ccf
f12b66b
7c5e9e6
ee107bd
ab4fb5b
6f610cf
ee5657e
955451c
1e9c395
941f101
2e414ab
91ec9ab
9c56c03
633286f
ba51f9c
62556c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/bwa-mem2:2.3--he70b90d_0 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "bwa-mem2" ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "bwamem2", | ||
| "version": "2.3", | ||
| "revision": "0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/hisat2:2.2.1--hdbdd923_7 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "hisat2" ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "hisat2", | ||
| "version": "2.2.1", | ||
| "revision": "0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/minimap2:2.30--h577a1d6_0 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "minimap2" ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "minimap2", | ||
| "version": "2.30", | ||
| "revision": "0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM eclipse-temurin:21 | ||
Check failureCode scanning / Snyk Container Medium severity - Directory Traversal vulnerability in pam High
This file introduces a vulnerable pam package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Out-of-Bounds vulnerability in binutils Medium
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Low severity - Allocation of Resources Without Limits or Throttling vulnerability in binutils Medium
This file introduces a vulnerable binutils package with a low severity vulnerability.
Check warningCode scanning / Snyk Container Low severity - Improper Input Validation vulnerability in coreutils Medium
This file introduces a vulnerable coreutils package with a low severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Algorithmic Complexity vulnerability in expat Medium
This file introduces a vulnerable expat package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Improper Verification of Cryptographic Signature vulnerability in gnupg2 Medium
This file introduces a vulnerable gnupg2 package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Directory Traversal vulnerability in tar Warning
This file introduces a vulnerable tar package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Open Redirect vulnerability in wget Medium
This file introduces a vulnerable wget package with a medium severity vulnerability.
Check noticeCode scanning / Snyk Container Low severity - Memory Leak vulnerability in binutils Low
This file introduces a vulnerable binutils package with a low severity vulnerability.
Check noticeCode scanning / Snyk Container Medium severity - Out-of-Bounds vulnerability in binutils Low
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check noticeCode scanning / Snyk Container Low severity - Out-of-bounds Write vulnerability in gnupg2 Low
This file introduces a vulnerable gnupg2 package with a low severity vulnerability.
Check noticeCode scanning / Snyk Container Low severity - Covert Timing Channel vulnerability in libgcrypt20 Note
This file introduces a vulnerable libgcrypt20 package with a low severity vulnerability.
Check noticeCode scanning / Snyk Container Low severity - CVE-2024-56433 vulnerability in shadow Note
This file introduces a vulnerable shadow package with a low severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69648 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69647 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69644 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69652 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69651 vulnerability in binutils Medium
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69645 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2025-69646 vulnerability in binutils Warning
This file introduces a vulnerable binutils package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Time-of-check Time-of-use (TOCTOU) vulnerability in util-linux Warning
This file introduces a vulnerable util-linux package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Unrestricted Upload of File with Dangerous Type vulnerability in tar Medium
This file introduces a vulnerable tar package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - Time-of-check Time-of-use (TOCTOU) vulnerability in libcap2 Medium
This file introduces a vulnerable libcap2 package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2026-4046 vulnerability in glibc Warning
This file introduces a vulnerable glibc package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2026-4438 vulnerability in glibc Warning
This file introduces a vulnerable glibc package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2026-4437 vulnerability in glibc Warning
This file introduces a vulnerable glibc package with a medium severity vulnerability.
Check warningCode scanning / Snyk Container Medium severity - CVE-2026-2219 vulnerability in dpkg Warning
This file introduces a vulnerable dpkg package with a medium severity vulnerability.
|
||
|
|
||
| RUN wget https://github.com/NGSEP/NGSEPcore/releases/download/v5.1.0/NGSEPcore_5.1.0.jar -O /usr/local/bin/NGSEPcore.jar | ||
|
|
||
| ENTRYPOINT [ "java", "-jar", "/usr/local/bin/NGSEPcore.jar" ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "ngsep", | ||
| "version": "5.1.0", | ||
| "revision": "0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| version 1.2 | ||
|
|
||
| task align { | ||
| meta { | ||
| description: "Align DNA sequences against a large reference database using BWA-MEM2" | ||
| outputs: { | ||
| alignments: "The output alignment file in SAM format" | ||
| } | ||
| } | ||
|
|
||
| parameter_meta { | ||
| read_one_fastq_gz: "Input gzipped FASTQ read one file to align with BWA-MEM2" | ||
| reference_index: "The BWA-MEM2 index file for the reference genome" | ||
| read_group: "The read group string to be included in the SAM header. Format: '@RG\\tID:foo\\tSM:bar'" | ||
| read_two_fastq_gz: "Input gzipped FASTQ read two file to align with BWA-MEM2" | ||
| prefix: "Prefix for the BAM file. The extension `.bam` will be added." | ||
| smart_pairing: "If true, enable smart pairing mode for paired-end reads" | ||
| skip_mate_rescue: "If true, skip mate rescue for paired-end reads" | ||
| threads: "Number of threads to use for alignment" | ||
| modify_disk_size_gb: "Additional disk space to allocate (in GB)" | ||
| seed_length: "Seed value for the BWA-MEM2 aligner" | ||
| min_score: "Minimum score threshold for reporting alignments" | ||
| } | ||
|
|
||
| input { | ||
| File read_one_fastq_gz | ||
| File reference_index | ||
| String read_group | ||
| File? read_two_fastq_gz | ||
| String prefix = sub( | ||
| basename(read_one_fastq_gz), | ||
| "([_\\.][rR][12])?(\\.subsampled)?\\.(fastq|fq)(\\.gz)?$", | ||
| "" | ||
| ) | ||
| Boolean smart_pairing = false | ||
| Boolean skip_mate_rescue = false | ||
| Int threads = 4 | ||
| Int modify_disk_size_gb = 0 | ||
| Int seed_length = 19 | ||
| Int min_score = 30 | ||
| } | ||
|
|
||
| String output_name = prefix + ".bam" | ||
| Int disk_size_gb = ceil(( | ||
| size(read_one_fastq_gz, "GB") + size(read_two_fastq_gz, "GB") | ||
| ) * 2) | ||
| + ceil(size(reference_index, "GB")) | ||
| + 30 | ||
| + modify_disk_size_gb | ||
|
|
||
| command <<< | ||
| set -euo pipefail | ||
|
|
||
| mkdir bwa_db | ||
| tar -C bwa_db -xzf "~{reference_index}" --no-same-owner | ||
| PREFIX=$(basename bwa_db/*.ann ".ann") | ||
|
|
||
| bwa-mem2 mem \ | ||
| -t ~{threads} \ | ||
| -R "~{read_group}" \ | ||
| -k ~{seed_length} \ | ||
| -T ~{min_score} \ | ||
| ~{if smart_pairing then "-p" else ""} \ | ||
| ~{if skip_mate_rescue then "-S" else ""} \ | ||
| bwa_db/"$PREFIX" \ | ||
| "~{read_one_fastq_gz}" \ | ||
| ~{if defined(read_two_fastq_gz) then "\"~{read_two_fastq_gz}\"" else ""} | | ||
| samtools view -b -o "~{output_name}" - | ||
|
|
||
| rm -r bwa_db | ||
| >>> | ||
|
|
||
| output { | ||
| File alignments = output_name | ||
| } | ||
|
|
||
| requirements { | ||
| container: "ghcr.io/stjudecloud/bwamem2:branch-minimap2-2.3-0" | ||
| cpu: threads | ||
| memory: "~{4 * threads} GB" | ||
| disks: "~{disk_size_gb} GB" | ||
| } | ||
| } | ||
|
|
||
| task index { | ||
| meta { | ||
| description: "Index a reference genome for alignment with minimap2" | ||
| outputs: { | ||
| reference_index: "The minimap2 index file for the reference genome" | ||
| } | ||
| } | ||
|
|
||
| parameter_meta { | ||
| reference_fasta: "The reference genome in FASTA format to be indexed" | ||
| db_name: "The base name for the output index files" | ||
| modify_disk_size_gb: "Additional disk space to allocate (in GB)" | ||
| } | ||
|
|
||
| input { | ||
| File reference_fasta | ||
| String db_name = "reference" | ||
| Int modify_disk_size_gb = 0 | ||
| } | ||
|
|
||
| Float input_fasta_size = size(reference_fasta, "GB") | ||
| Int disk_size_gb = ceil(input_fasta_size * 2) + 10 + modify_disk_size_gb | ||
| String bwa_db_out_name = db_name + ".tar.gz" | ||
|
|
||
| command <<< | ||
| set -euo pipefail | ||
|
|
||
| ref_fasta=~{basename(reference_fasta, ".gz")} | ||
| gunzip -c "~{reference_fasta}" > "$ref_fasta" \ | ||
| || ln -sf "~{reference_fasta}" "$ref_fasta" | ||
|
|
||
| bwa-mem2 index \ | ||
| "$ref_fasta" | ||
|
|
||
| tar -czf "~{bwa_db_out_name}" "$ref_fasta"* | ||
|
|
||
| rm -r "$ref_fasta" | ||
| >>> | ||
|
|
||
| output { | ||
| File reference_index = bwa_db_out_name | ||
| } | ||
|
|
||
| requirements { | ||
| container: "ghcr.io/stjudecloud/bwamem2:branch-minimap2-2.3-0" | ||
| cpu: 1 | ||
| memory: "120 GB" | ||
| disks: "~{disk_size_gb} GB" | ||
| } | ||
| } |
Check failure
Code scanning / Snyk Container
Low severity - Allocation of Resources Without Limits or Throttling vulnerability in glibc High