samplePairsByWeight: Sample pairs from the input gene pairs according to given...

Description Usage Arguments Value

View source: R/randomization.R

Description

Sample pairs from the input gene pairs according to given sampling weights.

Usage

1

Arguments

gp

a data.frame with gene pairs. Holds names or indices of ranges in an associated GRangs object in the first two columns.

weights

numeric vector of same length as rows in gp with sampling weights.

n

the number of pairs to sample.

Value

a data.frame object with sampled gene pairs.


ibn-salem/genepair documentation built on Aug. 7, 2017, 9:47 a.m.