-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GENERATE_GENOME subworkflow to main
- Loading branch information
1 parent
69c56ff
commit 3630fbb
Showing
6 changed files
with
128 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
process GENERATE_GENOME_FILE { | ||
tag "${meta}" | ||
label "process_small" | ||
|
||
input: | ||
tuple val( meta ), path( fai ) | ||
|
||
output: | ||
tuple val( meta ), file( "my.genome" ), emit: dotgenome | ||
|
||
script: | ||
""" | ||
cut -f1,2 $fai | sort -k2,2 -nr > my.genome | ||
""" | ||
} |
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.
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,19 @@ | ||
include { SAMTOOLS_FAIDX } from '../../modules/nf-core/modules/samtools/faidx/main' | ||
include { GENERATE_GENOME_FILE } from '../../modules/local/genome_file_generator' | ||
|
||
workflow GENERATE_GENOME { | ||
|
||
main: | ||
ch_versions = Channel.empty() | ||
|
||
SAMTOOLS_FAIDX ( [[params.assembly.sample], params.reference] ) | ||
ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions) | ||
|
||
GENERATE_GENOME_FILE ( SAMTOOLS_FAIDX.out.fai ) | ||
|
||
emit: | ||
dot_genome = GENERATE_GENOME_FILE.out.dotgenome | ||
|
||
versions = ch_versions.ifEmpty(null) | ||
|
||
} |
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