-
Notifications
You must be signed in to change notification settings - Fork 37
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
Refactor #574
Merged
Merged
Refactor #574
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4d74baf
remove skip_eklipse
ramprasadn d425660
Merge branch 'dev' of github.com:nf-core/raredisease into change-down…
ramprasadn a58d5ef
remove skip_haplocheck
ramprasadn cd583e4
remove skip_qualimap
ramprasadn 38edf8a
remove skip_fastqc
ramprasadn 391f8c9
add skip_smncopynumbercaller
ramprasadn 8101033
add skip for repeat annotation
ramprasadn 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 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 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 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,41 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
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. | ||
ext.when = Conditional clause | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
// | ||
// Repeat expansion calling options | ||
// | ||
|
||
process { | ||
|
||
withName: '.*ANNOTATE_REPEAT_EXPANSIONS:STRANGER' { | ||
ext.prefix = { "${meta.id}_stranger" } | ||
} | ||
|
||
withName: '.*ANNOTATE_REPEAT_EXPANSIONS:COMPRESS_STRANGER' { | ||
ext.prefix = { "${meta.id}_repeat_expansion_stranger" } | ||
ext.args = '--output-type z' | ||
publishDir = [ | ||
path: { "${params.outdir}/repeat_expansions" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
] | ||
} | ||
|
||
withName: '.*ANNOTATE_REPEAT_EXPANSIONS:INDEX_STRANGER' { | ||
publishDir = [ | ||
path: { "${params.outdir}/repeat_expansions" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
] | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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,34 @@ | ||
// | ||
// Annotate repeat expansions | ||
// | ||
|
||
include { BCFTOOLS_VIEW as COMPRESS_STRANGER } from '../../modules/nf-core/bcftools/view/main' | ||
include { STRANGER } from '../../modules/nf-core/stranger/main' | ||
include { TABIX_TABIX as INDEX_STRANGER } from '../../modules/nf-core/tabix/tabix/main' | ||
|
||
workflow ANNOTATE_REPEAT_EXPANSIONS { | ||
take: | ||
ch_variant_catalog // channel: [mandatory] [ path(variant_catalog.json) ] | ||
ch_vcf // channel: [mandatory] [ val(meta), path(vcf) ] | ||
|
||
main: | ||
ch_versions = Channel.empty() | ||
|
||
// Annotate, compress and index | ||
STRANGER ( ch_vcf, ch_variant_catalog ) | ||
COMPRESS_STRANGER ( | ||
STRANGER.out.vcf.map{ meta, vcf -> [meta, vcf, [] ]}, | ||
[], [], [] | ||
) | ||
INDEX_STRANGER ( COMPRESS_STRANGER.out.vcf ) | ||
|
||
ch_vcf_idx = COMPRESS_STRANGER.out.vcf.join(INDEX_STRANGER.out.tbi, failOnMismatch:true, failOnDuplicate:true) | ||
|
||
ch_versions = ch_versions.mix(STRANGER.out.versions.first()) | ||
ch_versions = ch_versions.mix(COMPRESS_STRANGER.out.versions.first()) | ||
ch_versions = ch_versions.mix(INDEX_STRANGER.out.versions.first()) | ||
|
||
emit: | ||
vcf = ch_vcf_idx // channel: [ val(meta), path(vcf), path(tbi) ] | ||
versions = ch_versions // channel: [ path(versions.yml) ] | ||
} |
This file contains 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now neither the stub run nor the regular run of the downloaded pipeline is tested? As a user of an offline cluster, it's very nice to know that
nf-core download
works smoothly. But if there's no space maybe there's nothing to do.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's right. The downloaded pipeline is not tested anymore. I can make sure that the downloaded pipeline works locally before a release, but the github runners just don't have enough space for both the downloaded containers and the tests :(