![]() |
Reciprocal Blast & Parse and Collect best hits
Hi everyone,
I'm novice doing reciprocal blast and I have spent a lot of time trying it. I don't know how to do a reciprocal blast and how to parse the best hits and compare & find matches. So, an advice would be a big help to me. I need to do a reciprocal Blast in Python (Jupyter) to identify same/ortholougs proteins bewteen two strains. - For that, first I make a db with the respective FASTA with the coding sequences. Code:
!makeblastdb -in $fastap_1 -dbtype 'prot' Code:
blastp_ab = !blastp -query $fastap_1 -db $fastap_2 -out ab.txt If I pass as argument the file "ab.txt", the function "collect_best_hits" returns me an empty dictionary. And if I pass the handle "blastp_ab" as argument, "collect_best_hits" functions return me and advice of "blastall" and the empty dictionary: > no BLAST output. Check that blastall is in your PATH > > { } (Options) Code:
#filename = "ab.txt" The function contains: Code:
import os What I'm doing wrong? All help is welcome! |
All times are GMT -8. The time now is 05:34 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.