rm_unmatched_samples: rm unmatched/singleton samples

View source: R/6_transform.R

rm_unmatched_samplesR Documentation

rm unmatched/singleton samples

Description

rm unmatched/singleton samples

Usage

rm_unmatched_samples(
  object,
  subgroupvar = "subgroup",
  subgroupctr = slevels(object, subgroupvar)[1],
  block,
  verbose = TRUE
)

rm_singleton_samples(object, subgroupvar = "subgroup", verbose = TRUE)

Arguments

object

SummarizedExperiment

subgroupvar

subgroup variable (string)

subgroupctr

control subgroup (string)

block

block variable (string)

verbose

TRUE/FALSE

Value

SummarizedExperiment

Examples

file <- system.file('extdata/atkin.somascan.adat', package = 'autonomics')
object <- read_somascan(file)
object %<>% filter_samples(subgroup %in% c('t1', 't2'), verbose = TRUE)
rm_singleton_samples(object, subgroupvar = 'Subject')
rm_unmatched_samples(object, subgroupvar = 'subgroup', block = 'Subject')

bhagwataditya/importomics documentation built on Oct. 29, 2024, 3:19 p.m.