Get the cell and feature names of an object

Cells(x, ...)

Features(x, ...)

# S3 method for default
Cells(x, ...)

# S3 method for Assay5
Cells(x, layer = NULL, simplify = TRUE, ...)

# S3 method for Assay5
Features(x, layer = NULL, simplify = TRUE, ...)

# S3 method for DimReduc
Cells(x, ...)

# S3 method for Neighbor
Cells(x, ...)

Arguments

x

An object

...

Arguments passed to other methods

layer

Layer to pull cells/features for; defaults to default layer; if NA, returns all cells for the assay

simplify

Simplify the cell/feature names into a single vector; if FALSE, separates each cell/feature names by layer

Value

Cell: A vector of cell names

Features: A vector of feature names

Examples

Cells(x = pbmc_small)
#>  [1] "ATGCCAGAACGACT" "CATGGCCTGTGCAT" "GAACCTGATGAACC" "TGACTGGATTCTCA"
#>  [5] "AGTCAGACTGCACA" "TCTGATACACGTGT" "TGGTATCTAAACAG" "GCAGCTCTGTTTCT"
#>  [9] "GATATAACACGCAT" "AATGTTGACAGTCA" "AGGTCATGAGTGTC" "AGAGATGATCTCGC"
#> [13] "GGGTAACTCTAGTG" "CATGAGACACGGGA" "TACGCCACTCCGAA" "CTAAACCTGTGCAT"
#> [17] "GTAAGCACTCATTC" "TTGGTACTGAATCC" "CATCATACGGAGCA" "TACATCACGCTAAC"
#> [21] "TTACCATGAATCGC" "ATAGGAGAAACAGA" "GCGCACGACTTTAC" "ACTCGCACGAAAGT"
#> [25] "ATTACCTGCCTTAT" "CCCAACTGCAATCG" "AAATTCGAATCACG" "CCATCCGATTCGCC"
#> [29] "TCCACTCTGAGCTT" "CATCAGGATGCACA" "CTAAACCTCTGACA" "GATAGAGAAGGGTG"
#> [33] "CTAACGGAACCGAT" "AGATATACCCGTAA" "TACTCTGAATCGAC" "GCGCATCTTGCTCC"
#> [37] "GTTGACGATATCGG" "ACAGGTACTGGTGT" "GGCATATGCTTATC" "CATTACACCAACTG"
#> [41] "TAGGGACTGAACTC" "GCTCCATGAGAAGT" "TACAATGATGCTAG" "CTTCATGACCGAAT"
#> [45] "CTGCCAACAGGAGC" "TTGCATTGAGCTAC" "AAGCAAGAGCTTAG" "CGGCACGAACTCAG"
#> [49] "GGTGGAGATTACTC" "GGCCGATGTACTCT" "CGTAGCCTGTATGC" "TGAGCTGAATGCTG"
#> [53] "CCTATAACGAGACG" "ATAAGTTGGTACGT" "AAGCGACTTTGACG" "ACCAGTGAATACCG"
#> [57] "ATTGCACTTGCTTT" "CTAGGTGATGGTTG" "GCACTAGACCTTTA" "CATGCGCTAGTCAC"
#> [61] "TTGAGGACTACGCA" "ATACCACTCTAAGC" "CATATAGACTAAGC" "TTTAGCTGTACTCT"
#> [65] "GACATTCTCCACCT" "ACGTGATGCCATGA" "ATTGTAGATTCCCG" "GATAGAGATCACGA"
#> [69] "AATGCGTGGACGGA" "GCGTAAACACGGTT" "ATTCAGCTCATTGG" "GGCATATGGGGAGT"
#> [73] "ATCATCTGACACCA" "GTCATACTTCGCCT" "TTACGTACGTTCAG" "GAGTTGTGGTAGCT"
#> [77] "GACGCTCTCTCTCG" "AGTCTTACTTCGGA" "GGAACACTTCAGAC" "CTTGATTGATCTTC"