対象遺伝子

Rで始めるBioconductor入門

Paula Andrea Martinez, PhD.

Data Scientist

ゲノム区間の例

  • リファレンスにアライメントされたリード
  • 対象遺伝子
  • エクソン領域
  • 一塩基多型(SNP)
  • 転写・結合部位(RNA-seq、ChIP-seq)
Rで始めるBioconductor入門

Genomic Ranges

library(GenomicRanges)
(myGR <- GRanges("chr1:200-300"))
 GRanges object with 1 range and 0 metadata columns:
  seqnames     ranges strand
     <Rle>  <IRanges>  <Rle>
[1]     chr1 [200, 300]    *
 -----
seqinfo: 1 sequence from an unspecified genome; no seqlengths
  • GRangesクラスは染色体別にゲノム区間を格納するコンテナ
  • 最小引数は chr1:200-300
  • GRangesの seqnames と seqinfo
Rで始めるBioconductor入門
# df a data.frame like structure
   seqnames start end strand score  GC
1     chrX    50 120      +     1 0.25 
2     chrX   130 140      +     2 0.25 
3     chrX   153 154      +     3 0.25 
4     chrY    30  40      *     4 0.25 
5     chrY    50  55      -     5 0.25 
(myGR <- as(df, "GRanges")) # transform df into GRanges
GRanges object with 5 ranges and 2 metadata columns:
      seqnames     ranges strand |     score        GC     
         <Rle>  <IRanges>  <Rle> | <integer> <numeric>
  [1]     chrX [ 50, 120]      + |         1      0.25   
  [2]     chrX [130, 140]      + |         2      0.25   
  [3]     chrX [153, 154]      + |         3      0.25   
  [4]     chrY [ 30,  40]      * |         4      0.25   
  [5]     chrY [ 50,  55]      - |         5      0.25   
 -----
 seqinfo: 2 sequences from an unspecified genome; no seqlengths
Rで始めるBioconductor入門

Genomic Rangesのアクセサ

methods(class = "GRanges") # to check available accessors

# used for chromosome names seqnames(gr)
# returns an IRanges object for ranges ranges(gr)
# stores metadata columns mcols(gr)
# generic function to store sequence information seqinfo(gr)
# stores the genome name genome(gr)
  • アクセサはセッターとゲッターの両方の機能を持つ
  • アクセサはS4定義により継承可能
Rで始めるBioconductor入門

対象遺伝子:ABCD1

  • ABCD1はX染色体長腕末端に位置する
  • 哺乳類の脳・肺細胞の正常機能に関わるタンパク質をコードする
  • chrXは約156 Mbp
  • chrX上の位置は約153.70 Mbp

https://www.ncbi.nlm.nih.gov/gene/215

ChrX-ABCD1

Rで始めるBioconductor入門

X染色体のGRanges

library(TxDb.Hsapiens.UCSC.hg38.knownGene)
hg <- TxDb.Hsapiens.UCSC.hg38.knownGene

X染色体の遺伝子を選択する

hg_chrXg <- genes(hg, filter = list(tx_chrom = c("chrX")))
GRanges object with 1192 ranges and 1 metadata column:
            seqnames              ranges strand |     gene_id
               <Rle>           <IRanges>  <Rle> | <character>
  100008586     chrX   49551278-49568218      + |   100008586
      10009     chrX 120250752-120258398      + |       10009
  100093698     chrX   13310652-13319933      + |   100093698
        ...      ...                 ...    ... .         ...
  -------
  seqinfo: 640 sequences (1 circular) from hg38 genome
Rで始めるBioconductor入門

ヒトゲノムで対象遺伝子を探してみましょう!

Rで始めるBioconductor入門

Preparing Video For Download...