Install a Blast and download a database in Ubuntu!

Friday, August 8, 2014
First install Blast
sudo apt-get install blast2
Make a blast Directory
mkdir /home/username/blast/db
cd /home/username/blast/db
connect to blast FTP

Connected to
Warning Notice!
[ ... Extra warning message removed for brevity ... ]
Name ( anonymous
331 Anonymous login ok, send your complete email address as your password.
Password: [note: enter your email address at this prompt]
230-Anonymous access granted, restrictions apply.
Please read the file README.ftp
230    it was last modified on Fri Mar 28 14:05:45 2008 - 716 days ago
Remote system type is UNIX.
Using binary mode to transfer files.
Enter Blast database directory
ftp> cd blast/db
Get a database. Below is an example and exit ftp
ftp> get 16SMicrobial.tar.gz
ftp> bye
221 Goodbye. 
Extract the database
tar zxvpf 16SMicrobial.tar.gz
Enter your query sequence in a file (q16s.txt) and execute the command below.
blastall -p blastn -i q16s.txt -d 16SMicrobial -T -o output.html
If you want to perform a specific organism you need to know the taxonomy id. $2 is taxonomy in below command. DB enlist the gi of of specific taxonomy to a file and the blastn is performed on specific gi list.
blastdbcmd -db 16SMicrobial -entry all -outfmt "%g %T" | \
   awk ' { if ($2 == 521007) { print $1 } } ' >

blastn -db 16SMicrobial  -query q16sF.txt -gilist -html -out output.html

1 comment:

Anonymous said...

Still, it’s greatest 1xbet way|one of the simplest ways|the best way} discover out} your probability of beating the house when playing in} the sport. Believe it or not, casinos nonetheless offer video poker video games that return greater than one hundred pc. Yes, you learn that appropriately.If you know how how|you know the way} to find out|to search out} them , you can to|you probably can} beat the house.