get_frequency {segmenter}R Documentation

Get the frequency of the segments in each cell type

Description

Get the frequency of the segments in each cell type

Usage

get_frequency(segments, normalize = FALSE, tidy = FALSE, plot = FALSE, ...)

Arguments

segments

A GRanges object. Usually the output of calling segment on the the output object of lean_model.

normalize

A logical. Whether the frequency should be normalized by the total number of segments

tidy

A logical.

plot

A logical.

...

Other arguments passed to barplot

Value

A data.frame when tidy is TRUE otherwise a matrix or a plot

Examples

get_frequency(segment(test_obj))
get_frequency(segment(test_obj), normalize = TRUE)


[Package segmenter version 0.99.14 Index]