-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben Sherman <[email protected]>
- Loading branch information
1 parent
267981b
commit 642dbad
Showing
5 changed files
with
43 additions
and
33 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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
|
||
process FASTQC { | ||
tag "FASTQC on $sample_id" | ||
tag "$sample_id" | ||
conda 'fastqc=0.12.1' | ||
|
||
input: | ||
tuple val(sample_id), path(reads) | ||
tuple val(sample_id), path(fastq_1), path(fastq_2) | ||
|
||
output: | ||
path "fastqc_${sample_id}_logs", emit: logs | ||
|
||
publish: | ||
logs >> 'fastqc' | ||
tuple val(sample_id), path("fastqc_${sample_id}_logs"), emit: logs | ||
|
||
script: | ||
""" | ||
fastqc.sh "$sample_id" "$reads" | ||
fastqc.sh "$sample_id" "$fastq_1 $fastq_2" | ||
""" | ||
} |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
|
||
process QUANT { | ||
tag "$pair_id" | ||
tag "$sample_id" | ||
conda 'salmon=1.10.2' | ||
|
||
input: | ||
path index | ||
tuple val(pair_id), path(reads) | ||
path index | ||
tuple val(sample_id), path(fastq_1), path(fastq_2) | ||
|
||
output: | ||
path pair_id | ||
tuple val(sample_id), path(sample_id) | ||
|
||
script: | ||
""" | ||
salmon quant --threads $task.cpus --libType=U -i $index -1 ${reads[0]} -2 ${reads[1]} -o $pair_id | ||
salmon quant --threads $task.cpus --libType=U -i $index -1 ${fastq_1} -2 ${fastq_2} -o $sample_id | ||
""" | ||
} |
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