Skip to content

Commit

Permalink
Add: naive_bayes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dileep-kishore committed May 11, 2021
1 parent a32a80a commit fe38050
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
include { naive_bayes } from './naive_bayes.nf'
include { add_md2biom } from './add_md2biom.nf'

// NOTE: We try to simplify the workflow by requiring the user to pre-train the classifier

workflow blast_workflow {
take:
// tuple val(id), file(rep_seqs)
rep_seqs_channel
// tuple val(id), file(sample_metadata)
otu_table_channel
// tuple val(id), file(sample_metadata)
sample_metadata_channel
// TODO: rep_seqs, otu_table and sample_metadata should ideally be in one channel
// otu_table and rep_seqs come out of the same channel but sample_metadata is input
main:
// TODO: The classifier object should be passed in as `${params.naive_bayes.classifier}`
rep_seqs_channel \
| naive_bayes \
| join(otu_table_channel) \
| join(sample_metadata_channel) \
| add_md2biom
emit:
// has `publishDir` -> ${params.output_dir}/${task.process}/${id}
add_md2biom.out
}

0 comments on commit fe38050

Please sign in to comment.