LoginSignup
3
1

More than 5 years have passed since last update.

fasta fileから特定の領域のみ抜き出す

Last updated at Posted at 2015-12-16

samtoolsのfaidxを使用する

samtools faidx <genome>  # まずはindexを付ける
samtools faidx <genome> <chromosome name>:<start>:<end>

常染色体のみ抜き出す

samtools faidx humanhg19.fa chr{1..23} > humanhg19_longcontigs_only.fa

1番染色体と2番染色体の一部のみ抜き出す

samtools faidx humanhg19.fa chr1 chr2:10000:20000 
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1