get_region_cov {brainflowprobes} | R Documentation |
This utility function checks the user-provided region data.frame coverage
list (COVERAGE
) or computes a new one using brainflowprobes_cov.
This is used by four_panels and plot_coverage.
get_region_cov( REGION, COVERAGE = NULL, VERBOSE = TRUE, PD = brainflowprobes::pd )
REGION |
Either a single hg19 genomic sequence including the chromosome, start, end, and optionally strand separated by colons (e.g., 'chr20:10199446-10288068:+'), or a string of sequences. Must be character. Chromosome must be proceeded by 'chr'. |
COVERAGE |
The output of brainflowprobes_cov for the input
|
VERBOSE |
A logical value indicating whether to print updates from the process of loading the data from the BigWig files. |
PD |
A list of data.frames with the |
If COVERAGE
is provided and all checks pass, then this function
returns COVERAGE
. Otherwise, it computes a new region coverage data.frame
list using brainflowprobes_cov.
Leonardo Collado-Torres
## If all checks pass, then it returns the COVERAGE stopifnot(identical( get_region_cov(COVERAGE = four_panels_example_cov), four_panels_example_cov ))