SubsetSamples {MARVEL} | R Documentation |
Subset samples (cells)
Description
Subsets specific samples (cells) from sample metadata.
Usage
SubsetSamples(MarvelObject, sample.ids)
Arguments
MarvelObject |
Marvel object. S3 object generated from |
sample.ids |
Vector of character strings. Sample IDs to subset. |
Value
An object of class S3 with updated slot MarvelObject$SplicePheno
.
Examples
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL"))
sample.ids <- sample(marvel.demo$SplicePheno$sample.id, size=10)
marvel.demo <- SubsetSamples(MarvelObject=marvel.demo,
sample.ids=sample.ids
)
[Package MARVEL version 1.4.0 Index]