-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
375 add spa type analysis to nanopore track (#395)
* add spa module to Makefile * add spatyper to S.aureus workflow * add spatyper to all configs * edit changelog * add spatyper module * inlude meatdata as input to spatyper * Add computational resources to spatyper * join input channels for spatyper * remove platform dependancy and add species dependancy --------- Co-authored-by: ryanjameskennedy <[email protected]> Co-authored-by: Ryan James Kennedy <[email protected]>
- Loading branch information
1 parent
22b1de0
commit 922fe79
Showing
8 changed files
with
75 additions
and
0 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
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,41 @@ | ||
process spatyper { | ||
tag "${sample_id}" | ||
scratch params.scratch | ||
|
||
input: | ||
tuple val(sample_id), path(assembly), val(platform) | ||
|
||
output: | ||
tuple val(sample_id), path(output), emit: tsv | ||
path "*versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
output = "${sample_id}_spatyper.tsv" | ||
""" | ||
spaTyper -f ${assembly} --output ${output} ${args} | ||
cat <<-END_VERSIONS > ${sample_id}_${task.process}_versions.yml | ||
${task.process}: | ||
spatyper: | ||
version: \$(echo \$(spaTyper --version 2>&1) | sed 's/spaTyper //p') | ||
container: ${task.container} | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
output = "${sample_id}_spatyper.tsv" | ||
""" | ||
touch ${output} | ||
cat <<-END_VERSIONS > ${sample_id}_${task.process}_versions.yml | ||
${task.process}: | ||
spatyper: | ||
version: \$(echo \$(spatyper --version 2>&1) | sed 's/spaTyper //p') | ||
container: ${task.container} | ||
END_VERSIONS | ||
""" | ||
} |
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