removeData | R Documentation |
This function clears members of the recoup
output object that must be cleared in order to apply
a new set of parameters without completely rerunning
recoup
.
removeData(input, type = c("ranges", "coverage",
"profile", "reference"))
input |
a list object created from
|
type |
one of |
This function clears members of the recoup
output object which typically take some time to be
calculated but it is necessary to clean them if the
user wants to change input parameters that cause
recalculations of these members. For example, if the
user changes the binParams
, the profile matrices
("profile"
object member) have to be
recalculated.
type
controls what data will be removed.
"ranges"
removes the reads imported from BAM/BED
files. This is useful when for example the normalization
method is changed. "coverage"
removes the
calculated coverages over the reference genomic regions.
This is required again when the normalization method
changes. "profile"
removes the profile matrices
derived from coverages. This is required for example
when the binParams
main argument changes. Finally,
"reference"
removes the genomic loci over which
the calculations are taking place. This is required when
the genome
, refdb
or version
main
arguments change.
A list which is normally the output of
recoup
without the members that have
been removed from it.
Panagiotis Moulos
# Load some data
data("recoup_test_data",package="recoup")
# Before removing
names(test.input)
# Remove a member
test.input <- removeData(test.input,"ranges")
# Removed
names(test.input)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.