User Tools

Site Tools


blast_and_plast

This is an old revision of the document!


Here is a shell to run PLAST:

#!/bin/bash
#$ -S /bin/bash
. /etc/profile
#$ -o logo
#$ -cwd
#$ -pe threaded 10
cd $PWD
CPUs=10
DB=/db1/blast-may-2024/nt.nal
QF=yourquery.fasta
plast -e 1e-10 -max-hit-per-query 1 -outfmt 1 -a $CPUs -p plastn -max-database-size 10000000000 -i $QF -d $DB -o $QF.plout -force-query-order 1000

to parse the output see https://perun.biochem.dal.ca/user-wiki/doku.php?id=taxonomy_recovery

Here is a shell example to run BLAST:

#!/bin/bash
#$ -S /bin/bash
. /etc/profile
#$ -pe threaded 1
#$ -cwd
source activate blast
export BLASTDB=/db1/blast-may-2024/
DB=nt
query=your_query.fasta
blastn -db $DB -query $query -out yourqueryresults.blout -num_threads 1 -outfmt "6 qseqid sseqid evalue pident qcovs length slen qlen qstart qend sstart send stitle"
source deactivate

Both shells using NCBI nt database (/db1/blast-may-2024/nt.nal), but the formats for specifying DB are different for BLAST and PLAST.

<Last updated by Dandan Zhao on Jun 11, 2024>

blast_and_plast.1718113131.txt.gz · Last modified: by 129.173.94.151