DownsampleTxLoc: Downsample a 'txLoc' object.

Description Usage Arguments Value Author(s)

View source: R/helper.R

Description

Downsample a txLoc1 object based on the number of sites per region from a txLoc2 object.

Usage

1
DownsampleTxLoc(txLoc1, txLoc2, seed = NULL, replace = FALSE)

Arguments

txLoc1

A txLoc object; this is the txLoc object that will be downsampled.

txLoc2

A txLoc object; this is the txLoc object that will be used as a target for the downsampling.

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.