Description Usage Arguments Value Examples
Convert coverages to matrix
1 | coverage_2_matrix(coverage, gr, ncol = 100)
|
coverage |
A single coverage obtained with the import_bedgraphs function. |
gr |
A GRanges corresponding to the regions to subset the coverages. All the regions must have the same width (see ?GenomicRanges::resize to resize regions). |
ncol |
The number of columns in the result matrix. (Default = 100). |
A matrix with ncol columns and length(gr) rows.
1 2 3 4 5 | filenames <- get_demo_bedGraph_files()
cov <- import_bedgraphs(filenames)
gr <- import_peaks(get_demo_peaks_file())
m <- coverage_2_matrix(cov[[1]], gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.