-
Notifications
You must be signed in to change notification settings - Fork 0
Blast searches
gecko1990 edited this page Feb 21, 2018
·
2 revisions
If you want to run a local blast search to find a specific protein or nucleotide you have to do the following:
Blast against a sequence
- Get representatives sequences from the target feature that you are interested in
- Blast against your sequence
blastn -query YOUR_QUERY -subject YOUR_SUBJECT -out OUTPUT -outfmt "6 qseqid sseqid slen qstart qend length mismatch gapopen gaps qseq"
Like this you will get the output without the alignment but with the sequence at the end.
- Get representatives sequences from the target feature that you are interested in
- Make a blast database with these representatives sequences. For that:
makeblastdb -dbtype nucl -in INPUT_DATA -parse_seqids -out OUTPUT_DATABASE
-dbtype refers to the kind of molecule (nucleotide or protein). There are several more flags that you can add. Check them in the manual.
- Blast search
blastn -query YOUR_QUERY -db YOUR_DB -out OUTPUT