ezCombineReadDatasets | R Documentation |
Takes the union of the samples in multiple input datasets and generates a new dataset.
ezCombineReadDatasets(..., dataRoot = "/srv/gstore/projects", newDsDir = NULL)
... |
|
dataRoot |
a character specifying the file root of the datasets. |
newDsDir |
a character specifying the directory to save the new dataset in. |
ds1 |
a data.frame from the meta field of an EzDataset. |
ds2 |
a data.frame from the meta field of an EzDataset. |
If a sample is present in more than one datasets, the read files are concatenated and a new file is written.
If a sample is present in only one dataset it is simply copied.
The ‘Read Count’ column must be present and is updated if two files are combined.
A tibble
object of new dataset.
Ge Tan
library(readr)
ds1 <- read_tsv(system.file("extdata/yeast_10k/dataset.tsv",
package = "ezRun", mustWork = TRUE))
ds3 <- ds2 <- ds1
dataRoot <- path.package("ezRun")
newDsDir <- "scratch"
ds <- ezCombineReadDatasets(ds1, ds2, ds3, dataRoot=dataRoot,
newDsDir=newDsDir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.