Entering edit mode
11 months ago
Bioinformatics_begginner
▴
20
Hello,
I have a protein sequence with format
record = SeqRecord(Seq(sequence), id=Protein_id, description=Protein_id, name=Protein_id)
And a .fasta file with different proteins and sequences (Bacteria.fasta)
I want to apply blastp record vs all the sequences in fasta and retrieve the most similiar sequence? (It is a local blastp against this local database)
How can I do this in python?
Best Regards and Thank you.
Why do you want to do it in python?
can be in shell commands too. I said python but not mandatory to be on python
Write the sequence you have in memory to a file (unless you read it from a file, in which case just use that file) and run blastp on the command line, with makeblastdb if required.
Thank you and sorry but could you detail more? I understand i build a local database
makeblastdb -in {bacteria_clusters} -dbtype prot -out Bacteria_db
then how can I run blastp with my file vs Bacteria_db and get the most similiarPlease read the blast manual. You're already halfway there, I'm confident you can figure this out yourself.