top_by_go-ClusterSet-method: Select top_genes based on go terms

top_by_go,ClusterSet-methodR Documentation

Select top_genes based on go terms

Description

The clusterSet object contains a top_genes slot that can be used to display genes in heatmaps (see plot_heatmap function). Here the function select top_genes based on GO terms.

Usage

## S4 method for signature 'ClusterSet'
top_by_go(
  object,
  go_id = "GO:0003677",
  species = "hsapiens",
  gene_id = "hgnc_symbol",
  host = "https://www.ensembl.org"
)

Arguments

object

A ClusterSet object.

go_id

A GO ID.

species

The target species according to biomaRt::listDatasets(mart = ensembl)$dataset (e.g hsapiens, mmusculus, rnorvegicus...).

gene_id

The type of gene identifier in the clusterSet object (default hgnc_symbol). use biomaRt::listFilters() to get the vailable list.

host

Host to connect to. Defaults to www.ensembl.org.

Value

A ClusterSet object.

Examples

# Set verbosity to 1 to display info messages only.
set_verbosity(1)

# Load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')

# DNA Binding: "GO:0003677"
#' # DNA Binding: "GO:0003677"
pbmc3k_medium_clusters <- top_by_go(pbmc3k_medium_clusters[1:2, ], go_id = "GO:0003677")
pbmc3k_medium_clusters@top_genes


dputhier/scigenex documentation built on Dec. 20, 2024, 2:22 a.m.