event_region_to_granges: Convert SpliceWiz's EventRegion column to GRanges object.

View source: R/splicewiz_wrappers.R

event_region_to_grangesR Documentation

Convert SpliceWiz's EventRegion column to GRanges object.

Description

Convert SpliceWiz's EventRegion column to GRanges object.

Usage

event_region_to_granges(event_region, prefix = "")

Arguments

event_region

a character vector denoting eventregion from spliceWiz out. Typically looks like this: "14:65968689-65971731/+"

prefix

a character string denoting a prefix to be added to chromosome names. Default none. Typically the string can be "chr" or "Chr"

Value

an object of class GenomicRanges::GRanges()

Examples

se <- SpliceWiz::SpliceWiz_example_NxtSE(novelSplicing = TRUE)
event_region <- se@elementMetadata$Event1a %>% sample(10)
event_region_to_granges(event_region = event_region)


cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.