assignSubtypes {PDATK} | R Documentation |
Assign Sample Subtypes to an S4 Object
assignSubtypes(object, subtypes, ...)
object |
An |
subtypes |
A mapping to assign subtypes to the samples or patients in the object. |
... |
Allow new parameters to be defined for this generic. |
object with subtypes assigned to the sample metadata and the isSubtyped metadata item set to TRUE.
data(sampleICGCmicro) data(cohortSubtypeDFs) cohortList <- assignSubtypes(sampleICGCmicro, subtypes=cohortSubtypeDFs$ICGCMICRO, sampleCol='sample_name', subtypeCol='subtype')