How to run local BLAST (Standalone NCBI BLAST+) with Python?

How to run local BLAST (Standalone NCBI BLAST+) with Python?

1

Hello, I’m new here, but I can’t find answer in other topics.

I want to run blast nucelotide, align two sequences using blast (megablast, all options default) amd check their % ident.
I have installed locally – Standalone NCBI BLAST+ (2.6).
I’ve got Python 2.7, and installed BioPython, but after reading Biopython Tutorial (www.biopython.org/DIST/docs/tutorial/Tutorial.html) I still can’t handle with this.

Could anyone show me example of using BioPython with local blast?


blast


python


biopython

• 3.5k views

My solution is to not use biopython, but directly use python function subprocess:

simply using subprocess.call(command, shell=True), where command is any blast command you want to run locally.

Hope it helps.

4.4 years ago by


Chen

★

1.0k


Login
before adding your answer.

Read more here: Source link