Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created May 3, 2014 23:15
Show Gist options
  • Select an option

  • Save t-oginogin/11507815 to your computer and use it in GitHub Desktop.

Select an option

Save t-oginogin/11507815 to your computer and use it in GitHub Desktop.
Bowtie2を使って、参照塩基配列と一致した配列を抽出、一致しなかった配列を抽出する ref: http://qiita.com/t_oginogin/items/3a890fd3fceaeff8a2d3
$ 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
$ export PATH=~/research/bowtie2-2.2.2/:$PATH >> ~/.bashrc
$ source ~/.bashrc
$ cd ~/research/
$ wget ftp://ftp.ccb.jhu.edu/pub/data/bowtie2_indexes/hg19.zip
$ unzip hg19.zip -d indexes/
$ bowtie2-build reference.fasta ~/research/indexes/reference.fasta
$ 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
$ 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