Description Usage Arguments Value
View source: R/io_and_formats.R
Equally downsample a list of GenomicRanges objects
1 2 | downsample_fragments(fragment_list, downsample_n = 10000,
discard_if_too_few = TRUE, seed = 42)
|
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. |
A list object containing downsampled GenomicRanges objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.