Skip to content

Commit bec4ea6

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
bug fix for stats output in compare
1 parent 88c1962 commit bec4ea6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/funannotate-compare.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -729,10 +729,11 @@ def __init__(self,prog):
729729
scoCount = 0
730730
singletons = 0
731731
orthos = 0
732-
stats[i].append("{0:,}".format(singletons))
733-
stats[i].append("{0:,}".format(orthos))
734-
stats[i].append("{0:,}".format(scoCount))
735-
summary.append(stats[i])
732+
for i in range(0, len(stats)):
733+
stats[i].append("{0:,}".format(singletons))
734+
stats[i].append("{0:,}".format(orthos))
735+
stats[i].append("{0:,}".format(scoCount))
736+
summary.append(stats[i])
736737

737738
#convert to dataframe for easy output
738739
header = ['species', 'isolate', 'Assembly Size', 'Largest Scaffold', 'Average Scaffold', 'Num Scaffolds', 'Scaffold N50', 'Percent GC', 'Num Genes', 'Num Proteins', 'Num tRNA', 'Unique Proteins', 'Prots atleast 1 ortholog', 'Single-copy orthologs']

0 commit comments

Comments
 (0)