Skip to content

Commit a856eac

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
fix for single species
1 parent eb81a17 commit a856eac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/funannotate-compare.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,11 @@ def __init__(self,prog):
705705
if not os.path.isdir(os.path.join(args.out, 'stats')):
706706
os.makedirs(os.path.join(args.out, 'stats'))
707707
summary = []
708-
#get stats, this is all single copy orthologs
709-
scoCount = len(sco_hits)
708+
#get stats, this is all single copy orthologs
709+
if len(args.input) > 1:
710+
scoCount = len(sco_hits)
711+
else:
712+
scoCount = 0
710713
for i in range(0, len(stats)):
711714
orthos = 0
712715
for index, row in orth_hits[scinames[i]].iteritems():

0 commit comments

Comments
 (0)