-
Notifications
You must be signed in to change notification settings - Fork 102
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
e1b1d45
commit 36f6203
Showing
6 changed files
with
37 additions
and
43 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,20 @@ | ||
|
||
process FASTQC { | ||
tag "FASTQC on $sample.id" | ||
tag "FASTQC on $id" | ||
conda 'fastqc=0.12.1' | ||
|
||
input: | ||
Tuple2<String,List<Path>> sample | ||
id : String | ||
reads : List<Path> | ||
|
||
output: | ||
Path logs = path("fastqc_${sample.id}_logs") | ||
logs : Path = path("fastqc_${id}_logs") | ||
|
||
publish: | ||
logs >> 'fastqc' | ||
|
||
script: | ||
""" | ||
fastqc.sh "$sample.id" "$sample.reads" | ||
fastqc.sh "$id" "$reads" | ||
""" | ||
} |
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
|
||
process QUANT { | ||
tag "$pair.id" | ||
tag "$id" | ||
conda 'salmon=1.10.2' | ||
|
||
input: | ||
Path index | ||
Tuple2<String,List<Path>> pair | ||
index : Path | ||
id : String | ||
reads : List<Path> | ||
|
||
output: | ||
Path quant = path(pair.id) | ||
quant : Path = path(id) | ||
|
||
script: | ||
""" | ||
salmon quant \ | ||
--threads $task.cpus \ | ||
--libType=U \ | ||
-i $index \ | ||
-1 ${pair.reads[0]} \ | ||
-2 ${pair.reads[1]} \ | ||
-o $pair.id | ||
-1 ${reads[0]} \ | ||
-2 ${reads[1]} \ | ||
-o $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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
params.outdir = 'results' | ||
|
||
include { INDEX } from './index' | ||
include { QUANT } from './quant' | ||
include { FASTQC } from './fastqc' | ||
|
||
workflow RNASEQ { | ||
take: | ||
reads // Channel<Tuple2<String,List<Path>>> | ||
transcriptome // Path | ||
reads : Channel<Tuple2<String,List<Path>>> | ||
transcriptome : Path | ||
|
||
main: | ||
transcriptome // Path | ||
|> INDEX // Path | ||
|> set { index } // Path | ||
transcriptome // Path | ||
|> INDEX // Path | ||
|> set { index } // Path | ||
|
||
reads // Channel<Tuple2<String,List<Path>>> | ||
|> map { pair -> | ||
QUANT(index, pair) | ||
} // Channel<Path> | ||
|> set { quant } // Channel<Path> | ||
reads // Channel<Tuple2<String,List<Path>>> | ||
|> map { id, reads -> | ||
QUANT(index, id, reads) | ||
} // Channel<Path> | ||
|> set { quant } // Channel<Path> | ||
|
||
reads // Channel<Tuple2<String,List<Path>>> | ||
|> map(FASTQC) // Channel<Path> | ||
|> set { fastqc_logs } // Channel<Path> | ||
reads // Channel<Tuple2<String,List<Path>>> | ||
|> map { id, reads -> | ||
FASTQC( id, reads ) | ||
} // Channel<Path> | ||
|> set { fastqc_logs } // Channel<Path> | ||
|
||
emit: | ||
index | ||
quant | ||
fastqc_logs | ||
index | ||
quant | ||
fastqc_logs | ||
} |