BioPython : BLAST comparision and parsing output in particular format
1
0
Entering edit mode
10.1 years ago
sukeshssk ▴ 10

I have query sequence, Suppose query: NNNNNNNNNNNNNNNNNN

  • Database 1: Homo sapien
  • Database 2: Mycobacterium tuberculosis

I compared query sequence with above two Databases using Standalone BLAST individually and I got result as ex. Result1.txt and Result 2.txt. Now, I wanted to write a python programme which will store first 10 results of BLAST result from both files (Result1.txt and Result2.txt) in following format.

Query     Homo sapien                    Mycobacterium tuberculosis
gi ID     gi ID  (1st compared seq.)     gi ID (1st compared seq.)
Length    Length                         Length
          E-value                        E-value
          Score                          Score

Somebody have any suggestions to store this information in above format.

Thank you

blast • 2.9k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode
10.1 years ago

You can have an output in tabular format, that would simplify your work.

ADD COMMENT
0
Entering edit mode

Sir, I don't have output in tabular format but i wanted to convert in a tabular format......

ADD REPLY
0
Entering edit mode

You have an option in BLAST to have the output in tabular format. The parameter is -outfmt and you can set it to:

  • 6 = tabular,
  • 7 = tabular with comment lines,

In this way you would have the output in tabular format.

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2775 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6