cell_line_names: Find names from cell-lines

Description Usage Arguments Value Examples

View source: R/cell_line-details.R

Description

Expected values for type are c("identifier", "synonym").

Usage

1
cell_line_names(cell_line, type = NULL)

Arguments

cell_line

A node or nodeset referring to a cell-line or multiple cell-lines.

type

A character vector specifying which types to output. If NULL, the function returns all values (i.e., unfiltered).

Value

The name(s) associated with the cell-line.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
cellosaurus <- read_cellosaurus_xml(system.file("extdata",
                                                "cellosaurus.xml",
                                                package = "rcellosaurus"))
a_line <- cell_line_find_first(cellosaurus, "CVCL_E548")

# If type is not set, returns all names
cell_line_names(a_line)

# The expected values of type are "identifier" or "synonym":
cell_line_names(a_line, type = "identifier")
cell_line_names(a_line, type = "synonym")

# Can provide multiple type values as a character vector.
# This should be the same as the unfiltered version:
cell_line_names(a_line, type = c("identifier", "synonym"))

jimvine/rcellosaurus documentation built on May 14, 2019, 8:04 a.m.