Skip to content

Commit

Permalink
Merge pull request #43 from DittmarLab/2.0b1
Browse files Browse the repository at this point in the history
fixed bug: empty attribute of protein
  • Loading branch information
qiyunzhu authored Nov 29, 2019
2 parents d98aa71 + 619ce60 commit 18c1466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hgtector/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def read_search_results(file, maxhits=None):
list of dict
search results
"""
p = re.compile(r'# (\S+): (.+)')
p = re.compile(r'# (\S+): (.*)')
data = []
with read_file(file) as f:
for line in f:
Expand Down Expand Up @@ -381,7 +381,7 @@ def infer_genome_tax(prots, taxdump, coverage):
# collect taxIds of best hits of all proteins
bestids = []
for prot in prots:
if (prot['hits'].shape[0]):
if prot['hits'].shape[0]:
bestids.append(prot['hits']['taxid'].iloc[0])

# count proteins that have at least one hit
Expand Down

0 comments on commit 18c1466

Please sign in to comment.