assignSubtypes {PDATK} | R Documentation

## Assign Sample Subtypes to an S4 Object

### Description

Assign Sample Subtypes to an S4 Object

### Usage

    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

    data(sampleICGCmicro)
    data(cohortSubtypeDFs)

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

[Package PDATK version 1.0.2 Index]