Search genes within ClusterSet using a REGEXP.
grep_clust(object, regexp = NULL, val = TRUE)
a ClusterSet object.
The regular expression
if FALSE, a vector containing the (integer) indices of the matches determined by grep is returned, and if TRUE, a vector containing the matching elements themselves is returned.
# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
#> |-- INFO : Dataset 7871581/files/pbmc3k_medium_clusters was already loaded.
grep_clust(pbmc3k_medium_clusters, "[Kk][Rr][Tt]")
#> $`1`
#> character(0)
#>
#> $`2`
#> character(0)
#>
#> $`3`
#> character(0)
#>
#> $`4`
#> character(0)
#>
#> $`5`
#> character(0)
#>
#> $`6`
#> character(0)
#>
#> $`7`
#> character(0)
#>
#> $`8`
#> character(0)
#>
#> $`9`
#> character(0)
#>
#> $`10`
#> character(0)
#>
#> $`11`
#> character(0)
#>
#> $`12`
#> character(0)
#>
#> $`13`
#> character(0)
#>
#> $`14`
#> character(0)
#>
#> $`15`
#> character(0)
#>