美文网首页
Extract DNA sequences by R bioco

Extract DNA sequences by R bioco

作者: 果蝇的小翅膀 | 来源:发表于2021-05-24 21:10 被阅读0次

    objects:

    How to extract the DNA sequences in the genomes within R.

    get sequences.

    #read data in GenomicRanges
    gr_muts = GenomicRanges::GRanges(mut$CHR, IRanges::IRanges(mut$POSITION,mut$POSITION))
    S4Vectors::mcols(gr_muts) = dplyr::select(mut, ids)
    
    #get sequences by BSgenome
    library(BSgenome.Hsapiens.UCSC.hg19)
    seqs = BSgenome::getSeq( Hsapiens , gr_muts)
    

    References:

    1. https://bioconductor.org/packages/release/bioc/vignettes/GenomicRanges/inst/doc/GenomicRangesHOWTOs.pdf

    相关文章

      网友评论

          本文标题:Extract DNA sequences by R bioco

          本文链接:https://www.haomeiwen.com/subject/mvrfsltx.html