simulate_abundances: Simulate abundance values

Description Usage Arguments Value

View source: R/transcript_archetypes.R

Description

Take a GRanges-class of transcript annotations and return it annotated with abundance values of reach transcript

Usage

1
simulate_abundances(annotations, sampling_dist = rgtex, seed = NULL, ...)

Arguments

annotations

a GRanges-class of transcript annotations

sampling_dist

a function that generates a vector of random numbers greater than or equal to zero. It also must have as an argument n which specifies the number of observations to draw. (A number of the random number generators from the stats package fits all these requirements; eg. rlnorm, rpois, rgamma, etc.). Additionally, you may design your own custom function to pass here as long as it meets these criteria.

seed

random seed for reproducible sampling

...

any arguments to be passed to the sampling_dist function

Value

A GRanges-class with a score column that holds abundances


CshlSiepelLab/nascentRNASim documentation built on Dec. 17, 2021, 3:08 p.m.