-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
e7dde22
commit 9e488be
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
micone/pipelines/modules/denoise_cluster/denoise_cluster/dada2.nf
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,11 +1,11 @@ | ||
// Step1: Denoise using dada2 | ||
process dada2 { | ||
label 'dada2' | ||
tag "${id}" | ||
publishDir "${output_dir}/${id}", mode: 'copy', overwrite: true | ||
input: | ||
tuple val(id), file(sequence_files), file(manifest_file) | ||
tuple val(id), file(sequence_files), file(manifest_file) | ||
output: | ||
tuple val(id), file("seq_table.tsv") | ||
tuple val(id), file("seq_table.tsv") | ||
script: | ||
template 'denoise_cluster/denoise_cluster/dada2.R' | ||
template 'denoise_cluster/denoise_cluster/dada2.R' | ||
} |
18 changes: 18 additions & 0 deletions
18
micone/pipelines/modules/denoise_cluster/denoise_cluster/dada2_workflow.nf
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,18 @@ | ||
include { dada2 } from './dada2.nf' | ||
include { make_biom_repseqs } from './make_biom_repseqs.nf' | ||
include { hashing3 } from './hashing3.nf' | ||
|
||
|
||
workflow dada2_workflow { | ||
take: | ||
// tuple val(id), file(sequence_files), file(manifest_file) | ||
input_channel | ||
main: | ||
input_channel \ | ||
| dada2 \ | ||
| make_biom_repseqs \ | ||
| hashing3 | ||
emit: | ||
// has `publishDir` -> ${params.output_dir}/${task.process}/${id} | ||
hashing3.out | ||
} |
8 changes: 4 additions & 4 deletions
8
micone/pipelines/modules/denoise_cluster/denoise_cluster/make_biom_repseqs.nf
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,11 +1,11 @@ | ||
// Step2: Make representative sequences and biom table | ||
process make_biom_repseqs { | ||
label 'dada2' | ||
tag "${id}" | ||
publishDir "${output_dir}/${id}", mode: 'copy', overwrite: true | ||
input: | ||
tuple val(id), file(seq_table_file) | ||
tuple val(id), file(seq_table_file) | ||
output: | ||
tuple val(id), file('*.biom'), file('*.fasta') | ||
tuple val(id), file('*.biom'), file('*.fasta') | ||
script: | ||
template 'denoise_cluster/denoise_cluster/make_biom_repseqs.py' | ||
template 'denoise_cluster/denoise_cluster/make_biom_repseqs.py' | ||
} |