mapCells: Map input to cell identifiers

mapCellsR Documentation

Map input to cell identifiers

Description

Map input to cell identifiers

Usage

mapCells(object, ...)

## S4 method for signature 'Cellosaurus'
mapCells(
  object,
  cells,
  keyType = c("cellosaurusId", "depmapId", "sangerModelId", "atccId", "cellLineName"),
  strict = FALSE
)

Arguments

object

character. Cell names (or Cellosaurus accession identifiers).

cells

character. Cell identifiers.

keyType

character(1). Identifier format to return.

strict

logical(1).

  • FALSE, return NA for cell lines that fail to map.

  • TRUE: Error on mapping failure.

...

Additional arguments.

Details

This function is designed to take input from a spreadsheet, electronic laboratory notebook entry, or cell line provider, where the cell line names may be inconsistent.

If you notice any mapping errors, please file a bug report.

Value

Named character. User input in the names and Cellosaurus accession identifiers in the values.

Note

Updated 2023-09-22.

See Also

Examples

data(cello)

## Cellosaurus ====
object <- cello
cells <- head(cello[["cellLineName"]])
print(cells)
cells <- mapCells(object = object, cells = cells)
print(cells)

acidgenomics/r-cellosaurus documentation built on March 12, 2024, 2:37 p.m.