Skip to content

Commit

Permalink
Updating mlst workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marchoeppner committed Sep 17, 2024
1 parent 4dc846b commit 98309ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
3 changes: 2 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ process {
]
}
withName: 'CHEWBBACA_ALLELECALL_SINGLE' {
ext.args = "--no-inferred"
publishDir = [
path: { "${params.outdir}/samples/${meta.sample_id}/chewbbaca" },
mode: params.publish_dir_mode,
Expand All @@ -446,7 +447,7 @@ process {
]
}
withName: 'CHEWBBACA_ALLELECALL' {

ext.args = "--no-inferred"
publishDir = [
path: { "${params.outdir}/cgMLST/chewbbaca/${meta.sample_id}" },
mode: params.publish_dir_mode,
Expand Down
3 changes: 2 additions & 1 deletion modules/chewbbaca/allelecall/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ process CHEWBBACA_ALLELECALL {

def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: meta.sample_id
results = "results_${prefix}"
def db_name = file(db).getSimpleName()
results = "results_${prefix}_${db_name}"

"""
chewBBACA.py AlleleCall \\
Expand Down
16 changes: 1 addition & 15 deletions subworkflows/mlst/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,7 @@ workflow MLST_TYPING {
)
ch_versions = ch_versions.mix(CHEWBBACA_ALLELECALL_SINGLE.out.versions)

ch_profiles = CHEWBBACA_ALLELECALL_SINGLE.out.profile.map { m, r ->
def meta = [:]
meta.db_name = m.db_name
meta.sample_id = m.db_name
tuple(meta, r)
}.groupTuple()

/*
Join profiles, assuming we have more than one
*/
//CHEWBBACA_JOINPROFILES(
// ch_profiles.filter{ m,reports -> reports.size() > 1 }
//)
//ch_versions = ch_versions.mix(CHEWBBACA_JOINPROFILES.out.versions)


/* Join assemblies and databases to generate
[ meta, [ assemblies ], db ] and filter out all
cases where # assemblies is < 3 (no point to compute relationships)
Expand Down

0 comments on commit 98309ab

Please sign in to comment.