Skip to content

Commit

Permalink
Merge pull request #759 from griffithlab/blast
Browse files Browse the repository at this point in the history
Use the user-specific database when running the reference proteome step with NCBI BLAST API
  • Loading branch information
susannasiebert committed Jan 20, 2022
2 parents 81de5b5 + 16d1572 commit 41a12d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvactools/lib/calculate_reference_proteome_similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _call_blast(self, full_peptide, p):
with p.lock: # stagger calls to qblast
if not os.environ.get('TEST_FLAG') or os.environ.get('TEST_FLAG') == '0': # we don't need to sleep during testing since this is mocked and not actually calling the API
sleep(10)
result_handle = NCBIWWW.qblast("blastp", "refseq_protein", full_peptide, entrez_query="{} [Organism]".format(self.species_to_organism[self.species]), word_size=min(self.match_length, 7), gapcosts='32767 32767')
result_handle = NCBIWWW.qblast("blastp", self.blastp_db, full_peptide, entrez_query="{} [Organism]".format(self.species_to_organism[self.species]), word_size=min(self.match_length, 7), gapcosts='32767 32767')

return result_handle

Expand Down

0 comments on commit 41a12d6

Please sign in to comment.