Skip to content

Commit

Permalink
Fix genome summary for rrnas
Browse files Browse the repository at this point in the history
  • Loading branch information
shafferm committed Aug 20, 2019
1 parent 9545c08 commit c873af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mag_annotator/summarize_genomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ def make_genome_stats(annotations, rrna_frame=None, trna_frame=None, group_colum
if rrna_frame is not None:
genome_rrnas = rrna_frame.loc[rrna_frame.fasta == genome]
for rrna in RRNA_TYPES:
sixteens = genome_rrnas.loc[rrna_frame.type == rrna]
sixteens = genome_rrnas.loc[genome_rrnas.type == rrna]
if sixteens.shape[0] == 0:
row.append('')
elif sixteens.shape[0] == 1:
row.append('%s, (%s, %s)' % (genome_rrnas.index[0], genome_rrnas.begin[0], genome_rrnas.end[0]))
row.append('%s, (%s, %s)' % (sixteens.index[0], sixteens.begin[0], sixteens.end[0]))
else:
row.append('%s present' % sixteens.shape[0])
if trna_frame is not None:
Expand Down

0 comments on commit c873af6

Please sign in to comment.