-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// True when a raw_long_reads secondary channel is connected to this component. | ||
has_raw_long_reads_{{pid}} = binding.hasVariable('raw_long_reads_{{pid}}') | ||
|
||
process porechop_{{pid}} { | ||
{% include "post.txt" ignore missing %} | ||
|
||
publishDir "results/porechop_{{pid}}", pattern: "*.fastq.gz" | ||
publishDir "reports/porechop_{{pid}}", pattern: "*.log" | ||
|
||
tag { sample_id } | ||
|
||
input: | ||
set sample_id, file(fastq_pair) from {{input_channel}} | ||
file raw_long_reads from has_raw_long_reads_{{pid}} ? raw_long_reads_{{pid}} : | ||
Channel.fromPath(params.long_reads{{param_id}}) | ||
|
||
output: | ||
set sample_id, file(fastq_pair) into {{output_channel}} | ||
file "${sample_id}.fastq.gz" into long_reads_{{pid}} | ||
{% with task_name="porechop" %} | ||
{%- include "compiler_channels.txt" ignore missing -%} | ||
{% endwith %} | ||
|
||
script: | ||
"time porechop -t $task.cpus --format fastq.gz -i ${raw_long_reads} -o ${sample_id}.fastq.gz >${sample_id}.log" | ||
} | ||
|
||
{{ forks }} |