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/15 23:56] – 38.20.199.40 | blast_protocol [2022/09/06 14:49] (current) – 134.190.232.106 | ||
|---|---|---|---|
| Line 88: | 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** | ||
blast_protocol.1631760993.txt.gz · Last modified: by 38.20.199.40
