dot-get_intron_annotations: Get intron annotations

.get_intron_annotationsR Documentation

Get intron annotations

Description

Get intron annotations

Usage

.get_intron_annotations(x, intron_ids)

Arguments

x

an object of class irFinderSdata

intron_ids

a character vector of intron ids for which annotations to be retrieved.

Value

a dataframe with columns chr, start, end, intron_id, null, strand, gene_id, gene_symbol

Examples

example_dir <- system.file("extdata" ,"ir_data" , package="parcutils")
example_files <- fs::dir_ls(example_dir, glob = "*-IR-nondir*.txt")
names(example_files) <- stringr::str_replace(example_files , pattern = ".*/", replacement = "") %>%
stringr::str_replace(pattern = "-IR-nondir.txt", replacement = "")
x <- read_irfinderS_output(files = example_files,  add_prefix_chr = FALSE)
.get_intron_annotations(x, intron_ids = paste("intron", sample(1:100, 10),sep ="_"))

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