blast_protocol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blast_protocol [2022/03/31 11:26] – 134.190.232.106 | blast_protocol [2022/09/06 14:49] (current) – 134.190.232.106 | ||
|---|---|---|---|
| Line 89: | Line 89: | ||
| </ | </ | ||
| - | #This is another way to parse BLAST outputs via using -outfmt | + | #This is another way to parse BLAST outputs via using -outfmt |
| < | < | ||
| #!/bin/bash | #!/bin/bash | ||
| Line 97: | Line 98: | ||
| #$ -cwd | #$ -cwd | ||
| source activate blast | source activate blast | ||
| - | export BLASTDB=/db1/blastdb-sep1-2021/ | + | export BLASTDB= /misc/scratch3/rogerlab_databases/ |
| DB=nr | DB=nr | ||
| query=ATCG00670.1.fasta | query=ATCG00670.1.fasta | ||
| - | blastp -db $DB -query $query -out / | + | blastp -db $DB -query $query -out / |
| source deactivate | 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** | ||
blast_protocol.1648736796.txt.gz · Last modified: by 134.190.232.106
