blast_protocol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blast_protocol [2021/09/02 16:44] – 38.20.199.40 | blast_protocol [2022/09/06 14:49] (current) – 134.190.232.106 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| - __tblastx__: | - __tblastx__: | ||
| - | //Note: blastp | + | {{: |
| + | |||
| + | //**blastp** can usually provide better hit alignments than blastn, especially for distantly related species.This is partially | ||
| + | |||
| + | // | ||
| + | |||
| + | // | ||
| + | Courtesy of the web source: https:// | ||
| **General bugs** | **General bugs** | ||
| Line 81: | Line 88: | ||
| > python blastxml_to_tabular.py -o output.tabular -c qseqid, | > python blastxml_to_tabular.py -o output.tabular -c qseqid, | ||
| </ | </ | ||
| + | |||
| + | #This is another way to parse BLAST outputs via using -outfmt '6 qseqid sseqid ...' | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | #$ -S /bin/bash | ||
| + | . / | ||
| + | #$ -pe threaded 2 | ||
| + | #$ -cwd | ||
| + | source activate blast | ||
| + | export BLASTDB= / | ||
| + | DB=nr | ||
| + | query=ATCG00670.1.fasta | ||
| + | blastp -db $DB -query $query -out / | ||
| + | source deactivate | ||
| + | </ | ||
| + | |||
| + | Sep 6th,2022 Since Diamond is faster on BLASTP and BLASTx, this is another way using Diamond | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | #$ -S /bin/bash | ||
| + | . / | ||
| + | #$ -pe threaded 40 | ||
| + | #$ -cwd | ||
| + | source activate / | ||
| + | #DB=nr | ||
| + | while read line | ||
| + | do | ||
| + | |||
| + | diamond blastp -p 40 -k 5 -e 1e-10 -f 6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore stitle salltitles --header -d / | ||
| + | |||
| + | done <$1 | ||
| + | |||
| + | conda deactivate | ||
| + | |||
| + | </ | ||
| + | |||
| **V5 NCBI database** | **V5 NCBI database** | ||
| Line 91: | Line 136: | ||
| In order to limit your BLAST+ search by taxonomy, you’ll need to obtain the taxid(s) for your organism(s). Two options can be used here: " | In order to limit your BLAST+ search by taxonomy, you’ll need to obtain the taxid(s) for your organism(s). Two options can be used here: " | ||
| + | This is to acquire the taxid list for your interested organism e.g., | ||
| < | < | ||
| - | #This is to acquire the taxid list for your interested organism e.g., | ||
| ./ | ./ | ||
| - | # get_species_taxids.sh script is from the blast+ package under the bin directory. | ||
| - | Taxid for bacteria is 2 | ||
| </ | </ | ||
| + | get_species_taxids.sh script is from the blast+ package under the bin directory. | ||
| + | Taxid for bacteria is 2. Then acquire a list of taxonomy ids from bacteria species. | ||
| < | < | ||
| - | # Then acquire a list of taxonomy ids from bacteria species. | ||
| ./ | ./ | ||
| </ | </ | ||
| Line 107: | Line 151: | ||
| < | < | ||
| ./blastp –db nr –query QUERY –taxidlist 2.txids –outfmt 5 –out OUTPUT.tab | ./blastp –db nr –query QUERY –taxidlist 2.txids –outfmt 5 –out OUTPUT.tab | ||
| - | |||
| - | # if use " | ||
| ./blastp –db nr –query QUERY –taxids 1117, | ./blastp –db nr –query QUERY –taxids 1117, | ||
| </ | </ | ||
| + | |||
| + | If use " | ||
| Line 116: | Line 160: | ||
| {{: | {{: | ||
| + | |||
| + | <Last updated by Xi Zhang on Sep 3rd, | ||
blast_protocol.1630611871.txt.gz · Last modified: by 38.20.199.40 · Currently locked by: 216.73.216.59
