assignSubtypes: Assign Sample Subtypes to an S4 Object

Description Usage Arguments Value Examples

Description

Assign Sample Subtypes to an S4 Object

Usage

1
assignSubtypes(object, subtypes, ...)

Arguments

object

An S4 object containing a slot representing samples or patients.

subtypes

A mapping to assign subtypes to the samples or patients in the object.

...

Allow new parameters to be defined for this generic.

Value

object with subtypes assigned to the sample metadata and the isSubtyped metadata item set to TRUE.

Examples

1
2
3
4
5
6
7
data(sampleICGCmicro)
data(cohortSubtypeDFs)

cohortList <- assignSubtypes(sampleICGCmicro,
  subtypes=cohortSubtypeDFs$ICGCMICRO,
  sampleCol='sample_name',
  subtypeCol='subtype')

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.