Skip to content

Commit

Permalink
Merge pull request #135 from ssi-dk/kriskiil-aggregation-patch1
Browse files Browse the repository at this point in the history
Update aggregation.py
  • Loading branch information
sjkp authored Dec 20, 2024
2 parents e981654 + a36d9b1 commit 3cd145c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions bifrost/bifrost_listener/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def agg_pipeline(changed_ids=None):
"sero_enterobase": "$categories.serotype.report.enterobase_serotype1",
"sero_seqsero": "$categories.serotype.report.seqsero_serotype",
"sero_antigen_seqsero": "$categories.serotype.summary.antigenic_profile",
"sero_serotype_finder": "$categories.bifrost_sp_ecoli.summary.OH",
"sero_d_tartrate": "$categories.serotype.summary.D-tartrate_pos10",
"mlst_schema": {"$arrayElemAt": ["$mlstlookup.schema", 0]},
# "siblings": "$siblings",
Expand Down Expand Up @@ -253,10 +254,16 @@ def agg_pipeline(changed_ids=None):
"trst": "$categories.bifrost_sp_cdiff.summary.TRST",
"tcda": "$categories.bifrost_sp_cdiff.summary.tcdA",
"tcdb": "$categories.bifrost_sp_cdiff.summary.tcdB",
"cdta_cdtb": "$categories.bifrost_sp_cdiff.summary.cdtA/B",
"del117": "$categories.bifrost_sp_cdiff.summary.117del",
"cdta_cdtb": {
"$concat": [
"$categories.bifrost_sp_cdiff.summary.cdtA",
"/",
"$categories.bifrost_sp_cdiff.summary.cdtB"
]
},
"del_117": "$categories.bifrost_sp_cdiff.summary.117del",
"a117t": "$categories.bifrost_sp_cdiff.summary.A117T",
"cdiff_details": "$categories.bifrost_sp_cdiff.summary.tcdA:tcdB:tcdC:cdtA:cdtB",
"cdiff_details": "$categories.bifrost_sp_cdiff.summary.cov_info",
"adhaesion": "$categories.bifrost_sp_ecoli.summary.eae",
"toxin": "$categories.bifrost_sp_ecoli.summary.stx",
"toxin_details": "$categories.bifrost_sp_ecoli.summary.verbose",
Expand All @@ -272,13 +279,9 @@ def agg_pipeline(changed_ids=None):
},
"virulence_genes": {
"$concat": [
"$categories.bifrost_sp_ecoli.summary.wzx",
",",
"$categories.bifrost_sp_ecoli.summary.wzy",
",",
"$categories.bifrost_sp_ecoli.summary.fliC",
",",
"$categories.bifrost_sp_ecoli.summary.ehx",
",",
"$categories.bifrost_sp_ecoli.summary.other",
]},
"bifrost_min_read_check": {
"$let": {
Expand Down

0 comments on commit 3cd145c

Please sign in to comment.