guess_id: Guess gene id type

Description Usage Arguments Value Author(s) Examples

View source: R/guess_id.R

Description

Given a gene identifier, return the most likely gene_id type.

Usage

1

Arguments

gene

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

regulondb

A regulondb() object.

Value

A character(1) vector with the name column guessed value.

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
21
## 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"
## Guess name
guess_id("araC", e_coli_regulondb)

## Guess id
guess_id("ECK120000050", e_coli_regulondb)

## Guess bnumber
guess_id("b0064", e_coli_regulondb)

regutools documentation built on May 2, 2020, 2:01 a.m.