get_gene_synonyms: Retrieve gene synonyms

Description Usage Arguments Value Author(s) Examples

View source: R/get_gene_synonyms.R

Description

Given a list of genes (id, name, bnumber or gi), get the gene synonyms (name, bnumber of gi).

Usage

1
2
3
4
5
6
get_gene_synonyms(
  regulondb,
  genes,
  from = "name",
  to = c("id", "name", "bnumber", "gi")
)

Arguments

regulondb

A regulondb() object.

genes

Character vector of gene identifiers (id, name, bnumber or gi).

from

A character() specifying one of: id, name, bnumber of gi

to

A character() specifying one or more of: id, name, bnumber of gi

Value

A regulondb_result object.

Author(s)

Jesús Emiliano Sotelo Fonseca

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Connect to the RegulonDB database if necessary
if (!exists("regulondb_conn")) regulondb_conn <- connect_database()

## Build the regulon db object
e_coli_regulondb <-
    regulondb(
        database_conn = regulondb_conn,
        organism = "E.coli",
        database_version = "1",
        genome_version = "1"
    )

## Lists all available identifiers for "araC"
get_gene_synonyms(e_coli_regulondb, "araC", from = "name")

## Retrieve only the ID
get_gene_synonyms(e_coli_regulondb, "araC", from = "name", to = "id")

## Use an ID to retrieve the synonyms
get_gene_synonyms(e_coli_regulondb, "ECK120000998", from = "id")

regutools documentation built on Dec. 20, 2020, 2 a.m.