Skip to content

Varlociraptor integration #1940

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

Open
wants to merge 36 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
570f780
First steps to varlociraptor integration
famosab Jul 15, 2025
4fb5e31
Add test file
famosab Jul 15, 2025
da21a7f
update more files
famosab Jul 16, 2025
5d9ff5e
Finalize varlociraptor
famosab Jul 18, 2025
ec86ee4
test
famosab Jul 18, 2025
8b4326f
snap
famosab Jul 18, 2025
dc3cc16
streamline testing and config
famosab Jul 21, 2025
c77fca8
Update tests/.nftignore
famosab Jul 21, 2025
c1f1924
check vcf
famosab Jul 23, 2025
ed80520
Merge branch 'add-varlociraptor' of github.com:nf-core/sarek into add…
famosab Jul 23, 2025
ef56ae8
pre-commit
famosab Jul 23, 2025
61332da
params
famosab Jul 23, 2025
5c34d9a
Add docs
famosab Jul 23, 2025
4cc42f5
update schema
famosab Jul 23, 2025
93fc212
update config
famosab Jul 23, 2025
bd62161
add projectDir
famosab Jul 23, 2025
010997d
simplify collection
famosab Jul 24, 2025
0da0616
change finding of scenario_file
famosab Jul 24, 2025
34d6447
precommit
famosab Jul 24, 2025
0974a76
add germline and tumor_only
famosab Jul 24, 2025
b0dc41d
Merge branch 'add-varlociraptor' of github.com:nf-core/sarek into add…
famosab Jul 24, 2025
2ab8afb
still need to fix the somatic case again
famosab Jul 24, 2025
126ee95
for some reason the VCFSPLIT is not started anymore
famosab Jul 24, 2025
5f9c321
pre-commit
famosab Jul 24, 2025
c8b301e
revert changes to config
famosab Jul 24, 2025
ee3952a
Update usage and output docs
famosab Jul 25, 2025
d568f37
subway and changelog
famosab Jul 25, 2025
59aff8b
Add tools to dependencies
famosab Jul 28, 2025
00d0764
add params
famosab Jul 28, 2025
eec67c9
Correct subway
famosab Jul 28, 2025
e027c32
Merge branch 'dev' into add-varlociraptor
famosab Jul 30, 2025
eaa4971
Merge branch 'dev' into add-varlociraptor
famosab Aug 11, 2025
917ea0e
Merge branch 'dev' into add-varlociraptor
famosab Aug 19, 2025
5eda561
Apply suggestions from code review
famosab Aug 19, 2025
6dbf490
Changelog
famosab Aug 19, 2025
873b57c
Move varlociraptor into its own config
famosab Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions assets/varlociraptor_somatic_with_priors.yte.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
species:
heterozygosity: 0.001
germline-mutation-rate: 1e-3
ploidy:
male:
all: 2
X: 1
Y: 1
female:
all: 2
X: 2
Y: 0
genome-size: 3.5e9

samples:
tumor:
sex: ?sex_string
somatic-effective-mutation-rate: 1e-6
inheritance:
clonal:
from: normal
somatic: true
contamination:
by: normal
fraction: 0.1
normal:
sex: ?sex_string
somatic-effective-mutation-rate: 1e-10

events:
somatic_tumor_high: "normal:0.0 & tumor:[0.1,1.0]"
somatic_tumor_low: "normal:0.0 & tumor:]0.0,0.1["
somatic_normal: "normal:]0.0,0.5["
germline: "normal:0.5 | normal:1.0"
81 changes: 81 additions & 0 deletions conf/modules/post_variant_calling.config
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,85 @@ process {
pattern: "*.tbi"
]
}

withName: 'FILL_SCENARIO_FILE' {
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.id}/" },
]
}

withName: 'ALIGNMENTPROPERTIES_NORMAL' {
ext.prefix = { "${meta.normal_id}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.normal_id}/" },
]
}

withName: 'VCFSPLIT_NORMAL' {
ext.prefix = { "${meta.normal_id}.${meta.variantcaller}.split" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.normal_id}/" },
]
}

withName: 'PREPROCESS_NORMAL' {
ext.prefix = { "${meta.normal_id}.${meta.variantcaller}.preprocess.${meta.chunk}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.normal_id}/" },
]
}

withName: 'ALIGNMENTPROPERTIES_TUMOR' {
ext.prefix = { "${meta.tumor_id}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.tumor_id}/" },
]
}

withName: 'VCFSPLIT_TUMOR' {
ext.prefix = { "${meta.tumor_id}.${meta.variantcaller}.split" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.tumor_id}/" },
]
}

withName: 'PREPROCESS_TUMOR' {
ext.prefix = { "${meta.tumor_id}.${meta.variantcaller}.preprocess.${meta.chunk}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.tumor_id}/" },
]
}

withName: 'VARLOCIRAPTOR_CALLVARIANTS' {
ext.prefix = { "${meta.id}.${meta.variantcaller}.call.${meta.chunk}" }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.id}/" },
]
}

withName: 'SORT_CALLED_CHUNKS' {
ext.prefix = { "${meta.id}.${meta.variantcaller}.sort.${meta.chunk}" }
ext.args = { '--output-type z --write-index=tbi' }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/${meta.id}/" },
]
}

withName: 'MERGE_CALLED_CHUNKS' {
ext.prefix = { "${meta.id}.${meta.variantcaller}.varlociraptor" }
ext.args = { '--allow-overlaps --output-type z --write-index=tbi' }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/variant_calling/varlociraptor/" },
]
}
}
25 changes: 25 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@
"git_sha": "083667c2f0d3b57aa373ffa8891d04b3c839b0b4",
"installed_by": ["modules"]
},
"rbt/vcfsplit": {
"branch": "master",
"git_sha": "3e5034548e2398b006a9e01fb82673ffa5c83d9f",
"installed_by": ["modules"]
},
"samblaster": {
"branch": "master",
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
Expand Down Expand Up @@ -527,10 +532,30 @@
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
"installed_by": ["modules"]
},
"varlociraptor/callvariants": {
"branch": "master",
"git_sha": "b0a35d996f6140f18e040099c94ffc0c0f005187",
"installed_by": ["modules"]
},
"varlociraptor/estimatealignmentproperties": {
"branch": "master",
"git_sha": "b0a35d996f6140f18e040099c94ffc0c0f005187",
"installed_by": ["modules"]
},
"varlociraptor/preprocess": {
"branch": "master",
"git_sha": "b0a35d996f6140f18e040099c94ffc0c0f005187",
"installed_by": ["modules"]
},
"vcftools": {
"branch": "master",
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
"installed_by": ["modules"]
},
"yte": {
"branch": "master",
"git_sha": "87169022c82b7ad5357302ad5b438fc586c3d471",
"installed_by": ["modules"]
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions modules/nf-core/rbt/vcfsplit/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions modules/nf-core/rbt/vcfsplit/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions modules/nf-core/rbt/vcfsplit/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions modules/nf-core/varlociraptor/callvariants/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions modules/nf-core/varlociraptor/callvariants/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading