-
Notifications
You must be signed in to change notification settings - Fork 20
All params to entry workflow #276
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
27 commits
Select commit
Hold shift + click to select a range
ba9a5ae
Fix vcf_concordance_glimpse2
LouisLeNezet 4b21ed2
Fix vcf_normalize_bcftools
LouisLeNezet 68bebbd
Remove params outside entry workflow
LouisLeNezet 2e3901c
Split prepare genome
LouisLeNezet 2a99923
Migrate all params
LouisLeNezet bc7066e
Update changelog
LouisLeNezet 0a88830
Merge branch 'dev' into params_main
LouisLeNezet aa92e99
Fix initialisation sbwf
LouisLeNezet f08f60f
Add nf-core-utils plugin
LouisLeNezet 72e5569
Update snapshot
LouisLeNezet 12aaca0
Update to sheets given
LouisLeNezet 1468d55
Use params map for each step
LouisLeNezet 5336302
Update nextflow version
LouisLeNezet da67318
Fix min_val_dp
LouisLeNezet b93fdcf
Update snapshot
LouisLeNezet 8c8cf28
Simplify version
LouisLeNezet d387965
Pass outdir
LouisLeNezet 31055fd
Update version to string
LouisLeNezet a1ac41e
Fix remaining versions
LouisLeNezet 1d5f23b
Fix lint
LouisLeNezet f476826
Revert changes
LouisLeNezet 357f10b
Revert changes
LouisLeNezet 224c66b
Revert changes
LouisLeNezet d9276c8
Revert changes
LouisLeNezet 1a8055a
Merge branch 'dev' into params_main
LouisLeNezet c01c229
Merge branch 'dev' into params_main
LouisLeNezet eb11ace
Update snapshots
LouisLeNezet 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
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
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,50 @@ | ||
| // | ||
| // Prepare reference genome files | ||
| // | ||
|
|
||
| include { SAMTOOLS_FAIDX } from '../../../modules/nf-core/samtools/faidx' | ||
|
|
||
| workflow PREPARE_GENOME { | ||
| take: | ||
| genome // genome name | ||
| fasta_path // path to fasta | ||
| fasta_fai_path // path to fasta_fai | ||
| fasta_gzi_path // path to fasta_gzi | ||
|
|
||
| main: | ||
|
|
||
| def is_compressed = fasta_path.toString().endsWith('.gz') || fasta_path.toString().endsWith('.bgz') | ||
| ch_fasta = channel.of([ | ||
| [genome: genome], | ||
| file(fasta_path, checkIfExists:true), | ||
| [] | ||
| ]) | ||
|
|
||
| if (fasta_fai_path) { | ||
| ch_fai = channel.of(file(fasta_fai_path, checkIfExists:true)) | ||
| } else { | ||
| SAMTOOLS_FAIDX(ch_fasta, false) | ||
| ch_fai = SAMTOOLS_FAIDX.out.fai.map{ _meta, fasta_fai -> fasta_fai } | ||
| } | ||
| if (is_compressed) { | ||
| if (fasta_gzi_path) { | ||
| ch_gzi = channel.of(file(fasta_gzi_path, checkIfExists:true)) | ||
| } else if (!fasta_fai_path) { | ||
| ch_gzi = SAMTOOLS_FAIDX.out.gzi.map{ _meta, gzi -> gzi } | ||
| } else { | ||
| SAMTOOLS_FAIDX(ch_fasta, false) | ||
| ch_gzi = SAMTOOLS_FAIDX.out.gzi.map{ _meta, gzi -> gzi } | ||
| } | ||
| } else { | ||
| ch_gzi = channel.of([]) | ||
| } | ||
|
|
||
| ch_fasta_fai_gzi = ch_fasta | ||
| .map{ meta, fasta, _fai -> [meta, fasta] } | ||
| .combine(ch_fai) | ||
| .combine(ch_gzi) | ||
| .collect() | ||
|
|
||
| emit: | ||
| ch_fasta_fai_gzi | ||
| } |
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.