getRandomBSJunctions: Retrieve random back-spliced junctions

View source: R/getRandomBSJunctions.R

getRandomBSJunctionsR Documentation

Retrieve random back-spliced junctions

Description

The function getRandomBSJunctions() retrieves random back-spliced junctions from the user genome annotation.

Usage

getRandomBSJunctions(gtf, n = 100, f = 10, setSeed = NULL)

Arguments

gtf

A dataframe containing genome annotation information This can be generated with formatGTF.

n

Integer specifying the number of randomly selected transcripts from which random back-spliced junctions are extracted. Default value = 100.

f

An integer specifying the fraction of single exon circRNAs that have to be present in the output data frame. Default value is 10.

setSeed

An integer which is used for selecting random back-spliced junctions. Default values is set to NULL.

Value

A data frame.

Examples

# Load short version of the gencode v19 annotation file
data("gtf")

# Get 10 random back-spliced junctions
randomBSJunctions <- getRandomBSJunctions(gtf, n = 10, f = 10)


Aufiero/circRNAprofiler documentation built on Oct. 31, 2023, 1:18 a.m.