Learn R Programming

IDConverter (version 0.3.4)

convert_tcga: 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)

Value

A character vector.

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.

Examples

Run this code
# \donttest{
x <- convert_tcga("TCGA-02-0001-10")
x
# }
if (FALSE) {
convert_tcga("TCGA-02-0001-10A-01W-0188-10")
}

Run the code above in your browser using DataLab