View source: R/quality_control.R
mergeQCdataRDS | R Documentation |
This function merges QC data RDS objects. Useful for joining replicates and multiple samples
for downstream analysis. obj simple way to aggregate multiple samples into obj single socrates
object is to move all the samples of interest into obj directory and load the paths with
list.files. IMPORTANT - only merge RDS objects where the same bins/peaks were used for each of
the objects. The easiest way to ensure mergeable objects is to use the same window size (instead
of ACRs) for the function generateMatrix
. Use this function for rds objects saved from
QC analysis. The function mergeSocratesRDS
should be specifically used for objects produced
using convertSparseData
.
mergeQCdataRDS(filenames)
filenames |
Named vector of filepaths. |
input.files <- list.files(pattern="*.rds", path="/path/to/rds/directory")input.files1 "rep1.rds" "rep2.rds"
names(input.files) <- c("rep1", "rep2")input.filesrep1 rep2"rep1.rds" "rep2.rds"
merged.obj <- mergeQCdatRDS(filenames=input.files)
str(merged.obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.