Description Usage Arguments Value Examples
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.
1 | convert_gene_to_fbgn(genes, db)
|
genes |
a character vector containing gene names |
db |
a list from |
a character vector containing FlyBase gene numbers
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.