Finding upstream or downstream sequences on BLAST on linux
Hi all,
I got a WG assembly sequence of an organism which is not on the online BLAST, so I'm using Linux. After creating a DB of it, I start searching for different genes and it works just fine - now I want to see the sequences upstream and downstream to my hit - but I didn't find out how to do it.
Please help! Thanks :-)
• 2,209 views
•
link
0 answers
No answers yet.
Log in to answer this question.
https://www.ncbi.nlm.nih.gov/books/NBK279684/
See the option sstart in
outfmtYou could do as @gb suggests by parsing the
-outfmt 6output ofblastnforsstart(column 9) andsend(column 10), convert to BED file but add however many bases upstream and downstream you want, and intersect the BED file to the annotations in GFF or GTF format withBedtools.Hopefully you created your custom database with
--parse_seqidsoption.If you did then you can use
blastdbcmdutility includes inblast+to retrieve any sequences using the following option.Combine it with
sstartandsendas suggested by others.