-
Notifications
You must be signed in to change notification settings - Fork 20
Add MINIMAC4 imputation tool
#211
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
Changes from 5 commits
4b810bc
ae9155d
3994cfe
9894b7d
3251eaa
389b340
16dcef4
4a759af
2e697b8
2f6678f
b0c9ace
6b1906f
1ae6004
6160b88
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,50 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 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 { | ||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_MINIMAC4:.*' { | ||
| publishDir = [enabled: false] | ||
| tag = { "${meta.id} ${meta.chr}" } | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_MINIMAC4:MINIMAC4_COMPRESSREF' { | ||
| ext.args = '' | ||
| ext.prefix = { "${meta.id}.${meta.chr}.minimac4" } | ||
| publishDir = [enabled: false] | ||
| tag = { "${meta.id} ${meta.chr}" } | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_MINIMAC4:MINIMAC4_IMPUTE' { | ||
| ext.args = { "--output-format vcf.gz" } | ||
| ext.prefix = { "${meta.id}.${meta.chr}.minimac4" } | ||
| tag = { "${meta.id} ${meta.chr}" } | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_MINIMAC4:BCFTOOLS_INDEX' { | ||
| ext.args = '' | ||
| publishDir = [enabled: false] | ||
| tag = { "${meta.id} ${meta.chr}" } | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:CONCAT_MINIMAC4:.*' { | ||
| publishDir = [ | ||
| path: { "${params.outdir}/imputation/minimac4/concat" }, | ||
| mode: params.publish_dir_mode, | ||
| saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
| ] | ||
| } | ||
|
|
||
| withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:CONCAT_MINIMAC4:BCFTOOLS_CONCAT' { | ||
| ext.args = ["--ligate", "--output-type z", "--write-index=tbi"].join(' ') | ||
| ext.prefix = { "${meta.id}.minimac4" } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Nextflow config file for running minimal tests | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| Defines input files and everything required to run a fast and simple pipeline test. | ||
|
|
||
| Use as follows: | ||
| nextflow run nf-core/phaseimpute -profile test_minimac4,<docker/singularity> --outdir <OUTDIR> | ||
|
|
||
| ---------------------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| process { | ||
| resourceLimits = [ | ||
| cpus: 4, | ||
| memory: '4.GB', | ||
| time: '1.h' | ||
| ] | ||
| } | ||
|
|
||
| params { | ||
| config_profile_name = 'Test profile' | ||
| config_profile_description = 'Minimal test dataset to check pipeline function with MINIMAC4' | ||
|
|
||
| // Input data | ||
| input = "${projectDir}/tests/csv/sample_vcf_snp.csv" | ||
|
|
||
| // Genome references | ||
| fasta = params.pipelines_testdata_base_path + "hum_data/reference_genome/GRCh38.s.fa.gz" | ||
| panel = "${projectDir}/tests/csv/panel.csv" | ||
|
|
||
| // Region file | ||
| input_region = "${projectDir}/tests/csv/region.csv" | ||
|
|
||
| // Map file | ||
| map = "${projectDir}/tests/csv/map_plink.csv" | ||
|
|
||
| // Position file | ||
| posfile = "${projectDir}/tests/csv/posfile.csv" | ||
|
|
||
| // Pipeline steps | ||
| steps = "impute" | ||
|
|
||
| // Impute tools | ||
| tools = "minimac4" | ||
| } |
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.