Entering edit mode
8.1 years ago
arya
▴
10
Hello I have a subject nucleotide sequence which I would like to align to various complete genomes. I am using standalone blastn for the same. Can someone pls tell me how I can retrieve the aligned regions in a separate file. Thanks
Check the formatting options
add
sseq
to output format.-outfmt '6 std sseq'
. for more details get the full help as mentioned by @5heikkiThank you! But from the above output format we will get the positions of the aligned regions alone in the genome. Is there any way to obtain the sequence in a separate file?
From the above you should get 13 column output where the last column displays aligned subject sequence. If you're on Windows, use
-outfmt "6 std sseq"
instead of-outfmt '6 std sseq'
Assuming your BLAST output goes into a file called blastout.tsv and you used
-outfmt '6 std sseq'
, thenshould do the trick (not on Windows, unless you're using Cygwin or something similar).