add_marker_table_links | R Documentation |
Convert specified columns of a marker table to HTML links.
add_marker_table_links(
df,
links = list(list(colname_target = "ENSEMBL", colname_source = "ENSEMBL", template_url
= "https://www.ensembl.org/{ensembl_species}/Gene/Summary?g={id}"),
list(colname_target = "ENTREZID", colname_source = "ENTREZID", template_url =
"https://www.ncbi.nlm.nih.gov/gene/{id}"), list(colname_target = "SYMBOL",
colname_source = "SYMBOL", template_url =
"https://www.genecards.org/cgi-bin/carddisp.pl?gene={id}")),
ensembl_species = "Homo_sapiens"
)
df |
A dataframe-like object. |
links |
A list of named lists. Each named list has three items:
|
ensembl_species |
A character scalar: ID/name of ENSEMBL species. |
A modified df
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.