rnb.execute.export.csv(rnb.set, output.location, region.types = rnb.getOption("export.types"))
RnBSet
.character
or Report
specifying the output directory. If this is a
report, the output directory is set to be a subdirectory named csv
of the report's data
directory. Set this parameter to the empty string (""
) or NA
to use the current
working directory. If the given path does not exist, this function attempts to create it.character
vector indicating region types to be exported.character
vector containing the names of the files to which data were exported; prepended by
output.location
. In case a certain region type could not be exported (see the Details section),
the corresponding element of this vector is NA
.
"betas_"
, followed by a number between
1 and length(region.types)
. The extension is .csv
or .csv.gz
, depending on the value of the
RnBeads option "gz.large.files"
. Any such files that already exist in the output directory, are
overwritten.There are several reasons why a certain output file cannot be (fully) generated. Examples for failures are listed below:
summarize.regions
method prior to calling this function,
in order to include the support of this region type in the dataset.
library(RnBeads.hg19)
data(small.example.object)
rnb.execute.export.csv(rnb.set.example, "", summarized.regions(rnb.set.example))
Run the code above in your browser using DataLab