Skip to content

Commit

Permalink
Fix #149 by making regex specific and not matching multiple genes
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Aug 13, 2024
1 parent 4df6d80 commit c169d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microSALT/utils/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def scrape_blast(self, type="", file_list=[]):
].capitalize()
#Ignores reference name and finds relevant resFinder entry

padder = [x for x in locilengths.keys() if x.startswith('>{}'.format(partials[1]))]
padder = [x for x in locilengths.keys() if x.startswith('>{}_'.format(partials[1]))]
if len(padder) == 0:
padder = [x for x in locilengths.keys() if x.startswith('>{}'.format(partials[1][:-1]))]
padder = [x for x in locilengths.keys() if x.startswith('>{}_'.format(partials[1][:-1]))]
try:
padder = padder[0]
except IndexError as e:
Expand Down

0 comments on commit c169d29

Please sign in to comment.