Created
May 3, 2014 23:15
-
-
Save t-oginogin/11507815 to your computer and use it in GitHub Desktop.
Bowtie2を使って、参照塩基配列と一致した配列を抽出、一致しなかった配列を抽出する ref: http://qiita.com/t_oginogin/items/3a890fd3fceaeff8a2d3
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
| $ cd ~/research/ | |
| $ wget http://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.2.2/bowtie2-2.2.2-linux-x86_64.zip | |
| $ unzip bowtie2-2.2.2-linux-x86_64.zip |
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
| $ export PATH=~/research/bowtie2-2.2.2/:$PATH >> ~/.bashrc | |
| $ source ~/.bashrc |
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
| $ cd ~/research/ | |
| $ wget ftp://ftp.ccb.jhu.edu/pub/data/bowtie2_indexes/hg19.zip | |
| $ unzip hg19.zip -d indexes/ |
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
| $ bowtie2-build reference.fasta ~/research/indexes/reference.fasta |
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
| $ bowtie2 -p 2 --un-conc target_nohg19.fastq --al-conc target_hg19.fastq -x ~/research/indexes/hg19 -1 target_1.fastq -2 target_2.fastq > /dev/null 2> target.log | |
| $ cat target.log |
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
| $ bowtie2 -p 2 --un target_nohg19.fastq --al target_hg19.fastq -x ~/research/indexes/hg19 target.fastq > /dev/null 2> target.log | |
| $ cat target.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment