Skip to content

Commit

Permalink
Merge pull request #43 from Carreau/restaore-cwd
Browse files Browse the repository at this point in the history
Fix running multiple test with py.test
  • Loading branch information
mkandziora committed Dec 1, 2018
2 parents f5d0563 + 5dfe29c commit e5a06e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions physcraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2474,9 +2474,11 @@ def write_unpubl_blastdb(self, path_to_local_seq):
count = count + 1
seq = seq_l[i]
local_blast.write_filterblast_files(self.workdir, key, seq, db=True, fn="local_unpubl_seq")
old_cwd = os.getcwd()
os.chdir(os.path.join(self.workdir, "blast"))
cmd1 = "makeblastdb -in {}_db -dbtype nucl".format("local_unpubl_seq")
os.system(cmd1)
os.chdir(old_cwd)


class FilterBlast(PhyscraperScrape):
Expand Down

0 comments on commit e5a06e6

Please sign in to comment.