-
Notifications
You must be signed in to change notification settings - Fork 24
Update index.txt #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SherineAwad
wants to merge
9
commits into
dib-lab:master
Choose a base branch
from
SherineAwad:update-index
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update index.txt #153
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0b4f825
remove addendum lines in 5-mapping
SherineAwad 8941989
update index.txt
SherineAwad d546acb
Update index.txt
SherineAwad 318e126
fix 8-installing-blastkit index
SherineAwad c71b420
Merge branch 'master' into update-index
SherineAwad 15edfd7
fix conflicts
SherineAwad e809e7d
remove redundant file in the directory
SherineAwad 7c3cc7b
remove redundant line
SherineAwad 944d634
fix conflicts
SherineAwad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| =============================== | ||
| 7. BLASTing your assembled data | ||
| =============================== | ||
|
|
||
| One thing everyone wants to do is BLAST sequence data, right? Here's a | ||
| simple way to set up a stylish little BLAST server that lets you search | ||
| your newly assembled sequences. | ||
|
|
||
| Installing blastkit | ||
| ------------------- | ||
|
|
||
| Installing some prerequisites:: | ||
|
|
||
| pip install pygr | ||
| pip install whoosh | ||
| pip install git+https://github.com/ctb/pygr-draw.git | ||
| pip install git+https://github.com/ged-lab/screed.git | ||
| apt-get -y install lighttpd | ||
|
|
||
| and configure them:: | ||
|
|
||
| cd /etc/lighttpd/conf-enabled | ||
| ln -fs ../conf-available/10-cgi.conf ./ | ||
| echo 'cgi.assign = ( ".cgi" => "" )' >> 10-cgi.conf | ||
| echo 'index-file.names += ( "index.cgi" ) ' >> 10-cgi.conf | ||
|
|
||
| /etc/init.d/lighttpd restart | ||
|
|
||
| Next, install BLAST:: | ||
|
|
||
| cd /root | ||
|
|
||
| curl -O ftp://ftp.ncbi.nih.gov/blast/executables/release/2.2.24/blast-2.2.24-x64-linux.tar.gz | ||
| tar xzf blast-2.2.24-x64-linux.tar.gz | ||
| cp blast-2.2.24/bin/* /usr/local/bin | ||
| cp -r blast-2.2.24/data /usr/local/blast-data | ||
|
|
||
| And put in blastkit:: | ||
|
|
||
| cd /root | ||
| git clone https://github.com/ctb/blastkit.git -b ec2 | ||
| cd blastkit/www | ||
| ln -fs $PWD /var/www/blastkit | ||
|
|
||
| mkdir files | ||
| chmod a+rxwt files | ||
| chmod +x /root | ||
|
|
||
| and run check.py:: | ||
|
|
||
| cd /root/blastkit | ||
| python ./check.py | ||
|
|
||
| It should say everything is OK. | ||
|
|
||
| Adding the data | ||
| --------------- | ||
|
|
||
| If you've just finished annotating a metagenome assembly | ||
| (:doc:`6-annotating`) then | ||
| you can do this to copy your newly generated assembly into the right place:: | ||
|
|
||
| cp /mnt/work/metag/testasm.faa /root/blastkit/db/db-prot.fa | ||
|
|
||
| Alternatively, you can grab our version of the assembly (from running this | ||
| tutorial):: | ||
|
|
||
| cd /root/blastkit | ||
| curl -O http://athyra.idyll.org/~t/testasm.faa | ||
| mv testasm.faa db/db-prot.fa | ||
|
|
||
| Formatting the database | ||
| ~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| After you've done either of the above, format and install the database | ||
| for blastkit:: | ||
|
|
||
| cd /root/blastkit | ||
| formatdb -i db/db-prot.fa -o T -p T | ||
| python index-db.py db/db-prot.fa | ||
|
|
||
| Done! | ||
|
|
||
| .. note:: | ||
|
|
||
| You can install any file of protein sequences you want this way; just copy | ||
| it into /root/blastkit/db/db-prot.fa and run the indexing commands, above. | ||
|
|
||
| Running blastkit | ||
| ---------------- | ||
|
|
||
| Figure out what your machine name is | ||
| (ec2-???-???-???-???.compute-1.amazonaws.com) and go to:: | ||
|
|
||
| http://machine-name/blastkit/ | ||
|
|
||
| Make sure you have enabled port 80 in your security settings on Amazon. | ||
|
|
||
| (If you're using the human data set, try this sequence:: | ||
|
|
||
| MYLYTSYGTYQFLNQIKLNHQERNLFQFSTNDSSIILEESEGKSILKHPSSYQVIDSTGE | ||
| FNEHHFYSAIFVPTSEDHRQQLEKKLLHVDVPLSNFGGFKSYRLLKPTEGSTYKIYFGFA | ||
| NRTAYEDFKASDIFNENFSKDALSQYFGASGQHSSYFERYLYPIEDH | ||
|
|
||
|
|
||
| It should match something in your assembly.) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change 7 -> 8!