Learn R Programming

MARVEL (version 1.4.0)

SubsetSamples: Subset samples (cells)

Description

Subsets specific samples (cells) from sample metadata.

Usage

SubsetSamples(MarvelObject, sample.ids)

Value

An object of class S3 with updated slot MarvelObject$SplicePheno.

Arguments

MarvelObject

Marvel object. S3 object generated from CreateMarvelObject function.

sample.ids

Vector of character strings. Sample IDs to subset.

Examples

Run this code
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
                             )

Run the code above in your browser using DataLab