Skip to content

Commit

Permalink
updated mge report writer
Browse files Browse the repository at this point in the history
  • Loading branch information
jrober84 committed Aug 15, 2023
1 parent 5f65d9c commit afd22d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mob_suite/mob_typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,15 +548,13 @@ def main():
tmp[label] = mge_results[contig_id]

mge_results = tmp

contig_memberships = {'chromosome': {}, 'plasmid': {}}
for i in range(0, len(mobtyper_results)):
primary_cluster_id = mobtyper_results[i]['primary_cluster_id']
if not primary_cluster_id in contig_memberships['plasmid']:
contig_memberships['plasmid'][primary_cluster_id] = {}
contig_id = mobtyper_results[i]['sample_id']
mobtyper_results[i]['molecule_type'] = 'plasmid'

mobtyper_results[i]['contig_id'] = contig_id
contig_memberships['plasmid'][primary_cluster_id][contig_id] = mobtyper_results[i]

Expand Down

0 comments on commit afd22d8

Please sign in to comment.