Skip to content

Instantly share code, notes, and snippets.

@MADscientist314
Created June 12, 2020 19:30
Show Gist options
  • Save MADscientist314/7a92df036381ea54090146daa99c101a to your computer and use it in GitHub Desktop.
Save MADscientist314/7a92df036381ea54090146daa99c101a to your computer and use it in GitHub Desktop.
docker blastn
docker run -it -v $PWD:$PWD --name blast_nt ncbi/blast
update_blastdb.pl --showall [*]
#cd /media/jochum00/Aagaard_Raid/reference_datasets/ncbi_db
#mkdir nt
#cd nt
update_blastdb.pl --decompress --source gcp --verbose --verbose nt
export BLASTDB=/media/jochum00/Aagaard_Raid/reference_datasets/ncbi_db/nt
blastn \
-task megablast \
-max_target_seqs 1 \
-num_threads 32 \
-db_soft_mask 30 \
-outfmt 7 \
-query # put your query fasta here
-db nt \
-out #.blastn
@MADscientist314
Copy link
Author

this script will launch a docker container for ncbi blast+ and build the prebuilt nt database, then blast a query against it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment