sample_GRanges: Sample random positions from a GRanges object

Description Usage Arguments Value

View source: R/granges_tools.R

Description

Sample random positions from a GRanges object

Usage

1

Arguments

gr

A GRanges object

n

Number of positions to sample

Value

A GRanges object of n positions uniformly sampled from gr


nicolaroberts/nrmisc documentation built on Aug. 10, 2018, 2:22 p.m.