-
Notifications
You must be signed in to change notification settings - Fork 20
Add Beagle5 imputation tool
#210
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
16 commits
Select commit
Hold shift + click to select a range
be63b35
Add Beagle5
LouisLeNezet 48696c4
Update PR number
LouisLeNezet 5526dc6
Fix linting
LouisLeNezet 8e1724f
Fix linting
LouisLeNezet 583a08b
Fix linting
LouisLeNezet 8397a98
Fix linting
LouisLeNezet d56bbdb
Update output
LouisLeNezet a21aef8
Fix rocrate
LouisLeNezet 5576def
Patch beagle5
LouisLeNezet 81d33e0
Fix beagle5 test
LouisLeNezet fcd45d8
Fix linting
LouisLeNezet 7a71c76
Fix region usage in beagle5
LouisLeNezet 3358d2d
Update docs/usage.md
LouisLeNezet 44210ba
Update beagle5
1eced20
Add warning for bam cram with beagle5
575e573
Update snapshot
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 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" } | ||
| } | ||
| } |
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,44 @@ | ||
| /* | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 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_snp.csv" | ||
| input_region = "${projectDir}/tests/csv/region.csv" | ||
| panel = "${projectDir}/tests/csv/panel.csv" | ||
|
|
||
| // Map file | ||
| map = "${projectDir}/tests/csv/map_plink.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' | ||
| } |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.