0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

IGVでGC%グラフを見る

Posted at

IGVでGC contentを見る方法を調べたが、調べたサイトでいくつか間違いがあったので、実際に動いたコードを以下にまとめておく。

$ samtools faidx ex.fasta

$ cut -f 1,2 ex.fasta.fai > ex.sizes

$ bedtools makewindows -g ex.sizes -w 1000 > ex_1000.bed

$ bedtools nuc -fi ex.fasta -bed ex_1000.bed > ex_num.txt

$ gawk -v w=1000 'BEGIN{FS="\t"; OFS="\t"} {if (FNR>1) {print $1,$2,$3,"GCpc_"w"bps",$5}}' ex_num.txt > ex_1000.igv

出力されたex_1000.igvファイルをIGVで開けば、GC contentを見ることができるはずである。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?