File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -708,23 +708,25 @@ def __init__(self,prog):
708708#get stats, this is all single copy orthologs
709709if len (args .input ) > 1 :
710710 scoCount = len (sco_hits )
711- else :
712- scoCount = 0
713- for i in range (0 , len (stats )):
714- orthos = 0
715- for index , row in orth_hits [scinames [i ]].iteritems ():
716- if row != '*' :
717- add = row .count (',' ) + 1
718- orthos += add
719- singletons = 0
720- for index , row in dftrim .iterrows ():
721- if row [scinames [i ]] != '*' :
722- others = []
723- for y in range (0 , len (row )):
724- others .append (row [y ])
725- others = set (others )
726- if len (others ) == 2 :
727- singletons += 1
711+ for i in range (0 , len (stats )):
712+ orthos = 0
713+ for index , row in orth_hits [scinames [i ]].iteritems ():
714+ if row != '*' :
715+ add = row .count (',' ) + 1
716+ orthos += add
717+ singletons = 0
718+ for index , row in dftrim .iterrows ():
719+ if row [scinames [i ]] != '*' :
720+ others = []
721+ for y in range (0 , len (row )):
722+ others .append (row [y ])
723+ others = set (others )
724+ if len (others ) == 2 :
725+ singletons += 1
726+ else :
727+ scoCount = 0
728+ singletons = 0
729+ orthos = 0
728730 stats [i ].append ("{0:,}" .format (singletons ))
729731 stats [i ].append ("{0:,}" .format (orthos ))
730732 stats [i ].append ("{0:,}" .format (scoCount ))
You can’t perform that action at this time.
0 commit comments