assignSubtypes,CohortList,list-method {PDATK} | R Documentation |
Assign Subtype Annotations to a SurvivalExperiment Object
## S4 method for signature 'CohortList,list' assignSubtypes( object, subtypes, ..., sampleCol = "sample_name", subtypeCol = "subtype" )
object |
A |
subtypes |
A |
... |
Catch unnamed parameters. Not used. |
sampleCol |
A |
subtypeCol |
A |
The CohortList
with the subtypes in the subtypes
column
of the colData slot and a metadata item, hasSubtypes
, set to TRUE for
each SurvivalExperiment
.
data(sampleCohortList) data(cohortSubtypeDFs) cohortList <- assignSubtypes(sampleCohortList, subtypes=cohortSubtypeDFs[names(sampleCohortList)], sampleCol='sample_name', subtypeCol='subtype')