SubsampleTxLoc: Subsample a 'txLoc' object.

Description Usage Arguments Value Author(s)

View source: R/helper.R

Description

Subsample a txLoc1 object based on a vector of fractions for every transcript region.

Usage

1
SubsampleTxLoc(txLoc, fractions, seed = NULL, replace = FALSE)

Arguments

txLoc

A txLoc object; this is the txLoc object from which the subsampled txLoc will be created.

fractions

A numeric vector, specifying the fraction of sites that will be sampled from every transcript region. Note that the length of fractions has to match the length of GetRegions(txLoc).

seed

A single value, interpreted as an integer, or NULL; this is to ensure reproducibility when subsampling txLoc2 sites; default is NULL.

replace

A logical scalar; should sampling be with replacement? Default is FALSE.

Value

A txLoc object.

Author(s)

Maurits Evers, maurits.evers@anu.edu.au


mevers/RNAModR documentation built on Nov. 17, 2019, 9:11 a.m.