add_ids: Append new column containing DepMap IDs

View source: R/fct_add_ids.R

add_idsR Documentation

Append new column containing DepMap IDs

Description

Matches cell line names from the given column to unique DepMap IDs. Matching is performed using only alpha-numeric characters from the provided names. NA will be produced when the cell line cannot be found in the data_annotations data set or when there is non-unique cell <-> ID mapping.

Usage

add_ids(data, cell)

Arguments

data

A tibble.

cell

Name of column containing cell line names

Value

Provided data tibble with a new depmap_id' column

Examples

data <- tibble::tibble(
  CellLine = c("MCF7", "293T", "K562"),
  viability = c(0.96, 0.58, 0.70)
)

add_ids(data, cell = "CellLine")

dwassarman/cellpanelr documentation built on Jan. 3, 2023, 8:27 a.m.