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/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.