Skip to content

Commit

Permalink
Update annotate.nf
Browse files Browse the repository at this point in the history
Backed out previous revision. It was a work in progress.
  • Loading branch information
droeatumn committed Aug 14, 2023
1 parent fc9951a commit 1abc356
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions annotate.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /usr/bin/env nextflow
nextflow.enable.dsl=2
// todo hangs on KP420444.fasta

/*
* Annotates strings in fasta files.
*
Expand Down Expand Up @@ -37,10 +36,8 @@ if(params.sbt == null) {

raw = "${params.raw}/*{fasta,fa,fasta.gz,fa.gz}"
reads = Channel.fromPath(raw).ifEmpty { error "cannot find any reads matching ${raw}" }.map { path -> tuple(sample(path), path) }
annotateReads = Channel.fromPath(annotateFile)
//readTap = reads.tap(annotateReads).filter{ it[1] != params.sbt }
//readTap = reads.tap(annotateReads)
readTap = annotateReads
annotateReads = Channel.create()
readTap = reads.tap(annotateReads).filter{ it[1] != params.sbt }

/*
* Use the capture probes to orient the input sequences.
Expand Down

0 comments on commit 1abc356

Please sign in to comment.