wb_tx2g | R Documentation |
Convert between transcript ID and gene ID
wb_tx2g(tx, tx2g_tab, warn_missing = FALSE)
wb_g2tx(gene_id, tx2g_tab, warn_missing = FALSE, simplify = FALSE)
tx |
transcript IDs (e.g. MTCE.10). |
tx2g_tab |
Translation table generated with 'wb_load_tx2gene()'. |
warn_missing |
If TRUE, a warning is issued when an ID was not found. |
gene_id |
Wormbase gene ID (e.g. WBGene00000001). |
simplify |
If TRUE, attempts to simplify the results into a vector. |
These functions convert between different transcript and gene identifiers using a preloaded translation table.
Note that a gene can have several matching transcripts.
The corresponding IDs, as a character vector for wb_tx2g
, as a list for wb_g2tx
. If 'simplify = TRUE',
attempts to cast the result into a vector. This is not possible if the input genes do not have the same number of transcripts.
## Not run:
wb_tx2g(c("Y37A1A.28", "W10C8.12", "Y4C6A.2c", "F56D6.15", "D1086.11a.1"), tx2g_tab)
wb_g2tx(c("WBGene00017981", "WBGene00045419", "mistake"), tx2g_tab, warn_missing = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.