grep_clust: Search gene module using a regular expression.

grep_clustR Documentation

Search gene module using a regular expression.

Description

Search gene module using a regular expression.

Search genes within ClusterSet using a REGEXP.

Usage

grep_clust(object, regexp = NULL, val = TRUE)

grep_clust(object, regexp = NULL, val = TRUE)

Arguments

object

a ClusterSet object.

regexp

The regular expression

val

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.

reg_exp

The regular expression indicating the genes to be found.

as_list

Whether to return the result as a list.

Examples

# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
hit <- grep_clust(pbmc3k_medium_clusters, reg_exp="^T.*[0-9]$")
# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
grep_clust(pbmc3k_medium_clusters, "[Kk][Rr][Tt]")

dputhier/dbfmcl documentation built on April 17, 2025, 4:41 a.m.