map_aliquot_ID_to_SP_ID: Translate aliquot IDs (e.g....

Description Usage Arguments Details Value Note Examples

View source: R/map_aliquot_ID_to_SP_ID.R

Description

Translate aliquot IDs (e.g. e0fccaf5-925a-41f9-b87c-cd5ee4aecb59) to "SP" IDs (e.g. SP1682)

Usage

1

Arguments

aliquot.ids

Character vector of aliquot IDs.

Details

If there are aliquot IDs that cannot be matched to any "SP" IDs, return NA with a warning.

Value

Character vector of corresponding "SP" IDs. If a corresponding aliquot ID cannot be found, then return return NA with a warning.

Note

This function is mainly designed to translate the file names of PCAWG consensus callsets for SNV/Indel (https://dcc.icgc.org/api/v1/download?fn=/PCAWG/consensus_snv_indel/final_consensus_snv_indel_passonly_icgc.public.tgz)

Examples

1
2
aliquot.ids <- c("e0fccaf5-925a-41f9-b87c-cd5ee4aecb59", "foo")
SP.ids <- map_aliquot_ID_to_SP_ID(aliquot.ids)

steverozen/PCAWG7 documentation built on Feb. 2, 2022, 5:40 a.m.