cell_line_sex: Sex of a cell-line

Description Usage Arguments Value Examples

View source: R/cell_line-details.R

Description

Sex of a cell-line

Usage

1
cell_line_sex(cell_line)

Arguments

cell_line

A node or nodeset referring to a cell-line.

Value

The sex attribute associated with the cell-line. NA if no sex attribute is present.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# First read the dataset in.
cellosaurus <- read_cellosaurus_xml(system.file("extdata",
                                                "cellosaurus.xml",
                                                package = "rcellosaurus"))

# Can call on a nodeset that's already been found. E.g.:
a_line <- cell_line_find_first(cellosaurus, "CVCL_E548")
cell_line_sex(a_line)

# Works with nodesets containing multiple cell-lines:
mice_lines <- cell_line_find_all(cellosaurus, "Mus musculus")
cell_line_sex(mice_lines)

# Can nest the sex function around the the finder function:
cell_line_sex(cell_line_find_first(cellosaurus, "CVCL_3449"))

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