go2cell: Get cell types from GO ids

View source: R/main.R

go2cellR Documentation

Get cell types from GO ids

Description

Return cell type information for specific Gene Ontology identifiers

Usage

go2cell(go_ids, species = "Homo sapiens")

Arguments

go_ids

A character vector of Gene Ontology identifiers.

species

A character of a species, can either be Homo sapiens (default) or Mus musculus.

Details

This function takes in a character vector of Gene Ontology (GO) identifiers, queries Wikidata (https://www.wikidata.org/) for genes related to said identifiers, and crosses this data with a local RDF database of cell type-marker correspondence, returning, at last, a dataframe of cell type information related to the given GO identifiers.

Value

A dataframe of 5 columns: The first two correspond to cell types, that is, their Wikidata Identifier and their name. The two following columns correspond to the Gene Ontology IDs given, and the last column corresponds to the cell type's marker that led to the result.

See Also

https://www.wikidata.org/ for information regarding Wikidata and https://panglaodb.se/index.html for the original database this information was adapted from.

Examples

# Return cell types related to 'muscle contraction' and 'metabolism'
go2cell(c("GO:0006936", "GO:0008152"))

# Return cell types related to 'response to zinc ion'
go2cell("GO:0010043")
## Not run: 
# IDs should use ':' not '_'
go2cell("GO_0010043")

## End(Not run)

jvfe/go2cell documentation built on Sept. 11, 2023, 4:18 a.m.