Blast Result Matching Both Of Two Query Sequences?
3
2
Entering edit mode
12.8 years ago

If two short sequences (A and B) come from the same gene, but I don't know the name of the gene or the organism, can I perform a BLAST (or similar) search to find the gene which has best similarity with BOTH A and B? That is, only return results where A and B align to the same full length sequence.

I realise I can do a BLAST/BLAT search for each and look for the matching entries, but I wondered if there was an automated way already in existence.

blast alignment nucleotide sequence • 3.6k views
ADD COMMENT
2
Entering edit mode

"which has best homology with BOTH A and B" is wrong, should be "best similarity" ! Homology is qualitative, yes or no, cannot be higher or lower.

ADD REPLY
0
Entering edit mode

Good point, thanks. Question updated.

ADD REPLY
8
Entering edit mode
12.8 years ago

One thing you can try is to concatenate A and B together and insert a '-' character between them. '-' will be considered as a gap of indeterminate length to blast.

You will have to try blasting A + '-' + B and also B + '-' + A.

ADD COMMENT
2
Entering edit mode

Inferring that your sequences are DNA, I would suggest that you also run anti-sense A + - + B and A + - + anti-B, because you may not know the orientation of these 2 queries. In general, concatenation is a neat trick in BLAST.

ADD REPLY
0
Entering edit mode

Thanks - this worked. @Larry_Parnell good point about including anti-sense.

ADD REPLY
4
Entering edit mode
12.8 years ago
Eric Fournier ★ 1.4k

Try Blasting for a dummy sequence containing SeqA, a string of N, then SeqB. IE, SeqANNNNNNNSeqB or SeqBNNNNNNNNSeqA. The Blast program will automatically extend the string of Ns to any arbitrary length, so you'll get results who have matches to both your sequences anywhere in the gene.

ADD COMMENT
0
Entering edit mode

Thanks - this also worked. Great tip!

ADD REPLY
1
Entering edit mode
12.8 years ago

Another possibility was to make a blastdb from the query A blast result, and then run blast on the new blastdb with the query B.

ADD COMMENT

Login before adding your answer.

Traffic: 2546 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