Skip to content

Commit

Permalink
add explicit skip
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Sep 11, 2024
1 parent 66c2650 commit ba53fc3
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions workflows/bacannot.nf
Original file line number Diff line number Diff line change
Expand Up @@ -258,29 +258,40 @@ workflow BACANNOT {

// species identification
REFSEQ_MASHER( annotation_out_ch.genome )
SOURMASH_LCA(
dbs_ch,
annotation_out_ch.genome,
params.sourmash_scale,
params.sourmash_kmer
)

// mashing against samples and close related genomes
GET_NCBI_GENOME(
REFSEQ_MASHER.out.results
.map { it[1] }
.splitCsv( sep: '\t', header: true )
.map{ "${it.biosample}" }
.unique()
)
SOURMASH_ALL(
annotation_out_ch.genome
.map{ it[1] }
.mix( GET_NCBI_GENOME.out.genomes.collect() )
.collect(),
params.sourmash_scale,
params.sourmash_kmer
)
//
// BEGIN: sourmash-related modules
//
if (!params.skip_sourmash) {
SOURMASH_LCA(
dbs_ch,
annotation_out_ch.genome,
params.sourmash_scale,
params.sourmash_kmer
)

// mashing against samples and close related genomes
GET_NCBI_GENOME(
REFSEQ_MASHER.out.results
.map { it[1] }
.splitCsv( sep: '\t', header: true )
.map{ "${it.biosample}" }
.unique()
)

SOURMASH_ALL(
annotation_out_ch.genome
.map{ it[1] }
.mix( GET_NCBI_GENOME.out.genomes.collect() )
.collect(),
params.sourmash_scale,
params.sourmash_kmer
)
}

//
// END: sourmash related modules
//

// IS identification
DIGIS( annotation_out_ch.genome.join(annotation_out_ch.gbk) )
Expand Down

0 comments on commit ba53fc3

Please sign in to comment.