geneToGR: geneToGR converts a gene symbol to genomic ranges coordinate

View source: R/split_bams.R

geneToGRR Documentation

geneToGR converts a gene symbol to genomic ranges coordinate

Description

geneToGR converts a gene symbol to genomic ranges coordinate

Usage

geneToGR(geneSymbol, gtf_gr)

Arguments

geneSymbol

: Gene symbol

gtf_gr

: Granges object of a gtf file

Examples

    library('Sierra')
    extdata_path <- system.file("extdata",package = "Sierra")
    gtf.file <- paste0(extdata_path,"/Vignette_cellranger_genes_subset.gtf")
    gtf.gr <- rtracklayer::import(gtf.file)
    
    geneGR  <- geneToGR(geneSymbol= "Dnajc19",gtf_gr=gtf.gr)

VCCRI/Sierra documentation built on July 3, 2023, 6:39 a.m.