Given a Seurat object and the names of specific clusters (corresponding
to identities in seurat@ident
), return the names of cells
in those clusters.
whichCells(seurat, clusters)
seurat | Seurat object |
---|---|
clusters | Vector specifying clusters for which cells should be retrieved.
Elements should correspond to levels in |
Character vector of cell names
#> [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" "GATAGAGAAGGGTG" "TAGGGACTGAACTC" #> [33] "GCTCCATGAGAAGT" "TACAATGATGCTAG" "CTTCATGACCGAAT" "CTGCCAACAGGAGC" #> [37] "TTGCATTGAGCTAC" "CGGCACGAACTCAG" "GGCCGATGTACTCT" "CGTAGCCTGTATGC" #> [41] "TGAGCTGAATGCTG" "CCTATAACGAGACG" "ATAAGTTGGTACGT" "AAGCGACTTTGACG" #> [45] "ACCAGTGAATACCG" "CTAGGTGATGGTTG" "GCACTAGACCTTTA" "CATGCGCTAGTCAC" #> [49] "TTGAGGACTACGCA" "ATACCACTCTAAGC" "CATATAGACTAAGC" "TTTAGCTGTACTCT" #> [53] "GACATTCTCCACCT" "ACGTGATGCCATGA" "ATTGTAGATTCCCG" "GATAGAGATCACGA" #> [57] "AATGCGTGGACGGA" "GCGTAAACACGGTT"