-
Notifications
You must be signed in to change notification settings - Fork 20
Adding Beagle v5.2 #200
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
Adding Beagle v5.2 #200
Changes from all commits
41d5c92
9f2e115
bbde3c4
6e9e654
23081a8
b55df83
6999c60
06fa701
8d6785e
ab01b1b
2554639
5d3e10f
27a7346
062e5f1
33d78b8
6ac5316
2dca88a
e92448e
6cf5d52
c89561a
d8c4663
853c90e
addfcb1
bc1cf4f
a8a8536
eca2408
73a7fb7
de73247
28cff03
ef14b6b
590d301
ae2d04b
294d83d
4487311
ad47858
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,56 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Config file for defining DSL2 per module options and publishing paths | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Available keys to override module options: | ||
| ext.args = Additional arguments appended to command in module. | ||
| ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
| ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
| ext.prefix = File name prefix for output files. | ||
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| process { | ||
| // Configuration for the BEAGLE5 imputation subworkflow | ||
|
|
||
| // Impute the variants with BEAGLE5 | ||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_BEAGLE5:.*' { | ||
| publishDir = [ enabled: false ] | ||
| tag = {"${meta.id} ${meta.chr}"} | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_BEAGLE5:BEAGLE5_BEAGLE' { | ||
| ext.args = { "gp=true ap=true chrom=${meta.chr}" } | ||
| ext.prefix = { "${meta.id}.${meta.chr}.beagle5" } | ||
| publishDir = [ enabled: false ] | ||
| } | ||
|
|
||
| // Convert BCF to VCF if necessary | ||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_BEAGLE5:BCFTOOLS_VIEW' { | ||
| ext.args = ["--output-type z", "--write-index=csi"].join(' ') | ||
| ext.prefix = { "${meta.id}.${meta.chr}.converted" } | ||
| publishDir = [ enabled: false ] | ||
| } | ||
|
|
||
| // Index the imputed VCF files | ||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_BEAGLE5:BCFTOOLS_INDEX_BEAGLE' { | ||
| ext.args = '' | ||
| publishDir = [ enabled: false ] | ||
| } | ||
|
|
||
| // Concatenate the imputed chromosomes | ||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:CONCAT_BEAGLE5:.*' { | ||
| publishDir = [ | ||
| path: { "${params.outdir}/imputation/beagle5/concat" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:CONCAT_BEAGLE5:BCFTOOLS_CONCAT' { | ||
| ext.args = ["--output-type z", "--write-index=tbi"].join(' ') | ||
| ext.prefix = { "${meta.id}.beagle5" } | ||
| } | ||
|
|
||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Nextflow config file for running minimal tests with BEAGLE5 | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Defines input files and everything required to run a fast and simple pipeline test. | ||
|
|
||
| Use as follows: | ||
| nextflow run nf-core/phaseimpute -profile test_beagle5,<docker/singularity> --outdir <OUTDIR> | ||
|
|
||
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| process { | ||
| resourceLimits = [ | ||
| cpus: 4, | ||
| memory: '8.GB', | ||
| time: '1.h' | ||
| ] | ||
| } | ||
|
|
||
| params { | ||
| config_profile_name = 'Test profile for BEAGLE5' | ||
| config_profile_description = 'Minimal test dataset to check BEAGLE5 imputation function' | ||
|
|
||
| // Input data | ||
| input = "${projectDir}/tests/csv/sample_vcf.csv" | ||
| input_region = "${projectDir}/tests/csv/region.csv" | ||
| panel = "${projectDir}/tests/csv/panel.csv" | ||
|
|
||
| // Map file | ||
| map = "${projectDir}/tests/csv/map_plink.csv" | ||
|
|
||
| // Region file | ||
| input_region = "${projectDir}/tests/csv/region.csv" | ||
|
|
||
| // Genome references | ||
| fasta = params.pipelines_testdata_base_path + "hum_data/reference_genome/GRCh38.s.fa.gz" | ||
|
|
||
| // Pipeline steps | ||
| steps = 'impute' | ||
|
|
||
| // Imputation tools | ||
| tools = 'beagle5' | ||
|
|
||
| // Main options | ||
| outdir = 'results' | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -218,4 +218,4 @@ | |
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.