downsample_fragments: Equally downsample a list of GenomicRanges objects

Description Usage Arguments Value

View source: R/io_and_formats.R

Description

Equally downsample a list of GenomicRanges objects

Usage

1
2
downsample_fragments(fragment_list, downsample_n = 10000,
  discard_if_too_few = TRUE, seed = 42)

Arguments

fragment_list

The list object containing GenomicRanges objects

downsample_n

The number of fragments to retain. Default is 1e4.

discard_if_too_few

Logical to determine if samples with fewer than downsample_n regions should be discarded. If FALSE, samples with < downample_n regions will be retained without sampling. Default is TRUE.

seed

A seed value for sampling for reproducibility. Default is 42.

Value

A list object containing downsampled GenomicRanges objects.


AllenInstitute/lowcat documentation built on Oct. 30, 2019, 4:45 a.m.