parseTCGAsampleTypes {psichomics} | R Documentation

## Parse sample information from TCGA sample identifiers

### Description

Parse sample information from TCGA sample identifiers

### Usage

    parseTCGAsampleTypes(
      samples,
      filename = system.file("extdata", "TCGAsampleType.RDS", package = "psichomics")
    )

    parseTCGAsampleInfo(samples, match = NULL)

### Arguments

`samples` | Character: sample identifiers
`filename` | Character: path to RDS file containing corresponding types
`match` | Integer: match between samples and subjects (`NULL` by default; performs the match)

### Value

Metadata associated with each TCGA sample

### See Also

Other functions associated with TCGA data retrieval: `getDownloadsFolder()`, `getTCGAdataTypes()`, `isFirebrowseUp()`, `loadTCGAdata()`

### Examples

    parseTCGAsampleTypes(c("TCGA-01A-Tumour", "TCGA-10B-Normal"))
    samples <- c("TCGA-3C-AAAU-01A-11R-A41B-07", "TCGA-3C-AALI-01A-11R-A41B-07",
                 "TCGA-3C-AALJ-01A-31R-A41B-07", "TCGA-3C-AALK-01A-11R-A41B-07",
                 "TCGA-4H-AAAK-01A-12R-A41B-07", "TCGA-5L-AAT0-01A-12R-A41B-07")

    parseTCGAsampleInfo(samples)

[Package psichomics version 1.18.6 Index]