subset_voom: Subset voom object

View source: R/subset_voom.R

subset_voomR Documentation

Subset voom object

Description

Subset voom object

Usage

subset_voom(
  dat,
  lib_keep = NULL,
  lib_remove = NULL,
  lib_filter = NULL,
  gene_keep = NULL,
  libraryID = "libID"
)

Arguments

dat

limma EList object to subset

lib_keep

Character vector of library IDs to keep (Default NULL)

lib_remove

Character vector of library IDs to remove (Default NULL)

lib_filter

Character string to use for filtering libraries to keep (Default NULL)

gene_keep

Character vector of genes to keep (Default NULL)

libraryID

Character string specifying the name of the column with library IDs (Default "libID")

Value

limma EList object

Examples

dat.voom <- RNAetc::example.voom

subset_voom(dat.voom, lib_keep = c("lib1","lib2"))
subset_voom(dat.voom, lib_remove = c("lib1","lib2"))
subset_voom(dat.voom, lib_filter = "asthma == 'healthy' & virus == 'none'")
subset_voom(dat.voom, gene_keep = c("ENSG00000000460", "ENSG00000001460"))
subset_voom(dat.voom, lib_keep = c("lib1","lib2"),
           gene_keep = c("ENSG00000000460", "ENSG00000001460"))

BIGslu/RNAetc documentation built on Feb. 13, 2025, 7:42 a.m.