View source: R/filter_mapped.R
filter_segments | R Documentation |
After mapping data to segments, this function can be used to remove segments that are too short, or that have too few mapped RNA genes or ATAC peaks. A parameters allows to input a list of segments that will be retained no matter what.
The function requires and returns an (R)CONGAS+ object.
filter_segments(
x,
length = 0,
RNA_genes = 50,
ATAC_peaks = 50,
segments = list(),
RNA_nonzerocells = 0,
ATAC_nonzerocells = 0
)
x |
An |
length |
Mimium size in number of bases for each segment. This is |
RNA_genes |
Required number of RNA genes, if RNA is available. This is
|
ATAC_peaks |
Required number of ATAC peaks, if ATAC is available. This is
|
segments |
A list of segment ids to retain regardless of the filters. |
The object x
where segments have been identified and
removed.
data('example_object')
# Default
print(example_object)
example_object %>%
filter_segments() %>%
print()
# Minimum size
example_object %>%
filter_segments(length = 1e7) %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.