convert_gene_to_fbgn: Convert Gene Names to FlyBase Gene Numbers

Description Usage Arguments Value Examples

Description

convert_gene_to_fbgn() takes a vector of gene names and query the synonym table from FlyBase to convert them to a vector of FlyBase gene numbers. Due to potential multiple mapping (one alias corresponding to many FlyBase gene numbers, like Cha can be ChAT or Charaff), it's important to note that when there's warning message, the vector /codeconvert_gene_to_fbgn() returns will not retain the same order as the input vector of gene names.

Usage

1

Arguments

genes

a character vector containing gene names

db

a list from make_database()

Value

a character vector containing FlyBase gene numbers

Examples

1
2
3
4
5
6
7
8
9
# Prepare the database (using dummy local data)
dummypath <- system.file("extdata", "dummy.gtf",
package = "genofeatutil")
testdb <- make_database(species = "test",
gtf.path = dummypath)

# Convert gene names
query <- c("gene_1", "alias_2.1", "mt:dummy", "alias_3.3", "gene_21")
convert_gene_to_fbgn(query[1:4], db = testdb)

chenyenchung/genofeatutil documentation built on May 15, 2019, 10:38 p.m.