rebin_peaks | R Documentation |
Standardise a list of peak files by rebinning them into fixd-width tiles across the genome.
rebin_peaks(
peakfiles,
genome_build,
intensity_cols = c("total_signal", "qValue", "Peak Score", "score"),
bin_size = 5000,
keep_chr = NULL,
sep = c(":", "-"),
drop_empty_chr = FALSE,
as_sparse = TRUE,
workers = check_workers(),
verbose = TRUE,
...
)
peakfiles |
A list of peak files as GRanges object and/or as paths to
BED files. If paths are provided, EpiCompare imports the file as GRanges
object. EpiCompare also accepts a list containing a mix of GRanges objects
and paths.Files must be listed and named using |
genome_build |
The build of **all** peak and reference files to calculate the correlation matrix on. If all peak and reference files are not of the same build use liftover_grlist to convert them all before running. Genome build should be one of hg19, hg38, mm9, mm10. |
intensity_cols |
Depending on which columns are present, this value will be used to get quantiles and ultimately calculate the correlations:
|
bin_size |
Default of 100. Base-pair size of the bins created to measure correlation. Use smaller value for higher resolution but longer run time and larger memory usage. |
keep_chr |
Which chromosomes to keep. |
sep |
Separator to be used after chromosome name (first item) and between start/end genomic coordinates (second item). |
drop_empty_chr |
Drop chromosomes that are not present in any of the
|
as_sparse |
Return the rebinned peaks as a sparse matrix
(default: |
workers |
Number of threads to parallelize across. |
verbose |
Print messages. |
... |
Arguments passed on to
|
Binned peaks matrix
data("CnR_H3K27ac")
data("CnT_H3K27ac")
peakfiles <- list(CnR_H3K27ac=CnR_H3K27ac, CnT_H3K27ac=CnT_H3K27ac)
#increasing bin_size for speed
peakfiles_rebinned <- rebin_peaks(peakfiles = peakfiles,
genome_build = "hg19",
bin_size = 5000,
workers = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.