convert_tcga: Convert TCGA Identifiers

View source: R/convert_tcga.R

convert_tcgaR Documentation

Convert TCGA Identifiers

Description

Run data("tcga") to see detail database for conversion.

Usage

convert_tcga(x, from = "sample_id", to = "submitter_id", multiple = FALSE)

Arguments

x

A character vector to convert.

from

Which identifier type to be converted. One of .

to

Identifier type convert to. Same as parameter from.

multiple

if TRUE, return a data.table instead of a string vector, so multiple identifier mappings can be kept.

Value

A character vector.

Examples


x <- convert_tcga("TCGA-02-0001-10")
x

## Not run: 
convert_tcga("TCGA-02-0001-10A-01W-0188-10")

## End(Not run)

IDConverter documentation built on March 31, 2023, 10:25 p.m.