knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
We demonstrate these associations which correspond to tabs from Monarch Initiative website that result from a search at the website for the human gene NCBIGene:8314.
(DT is the datatables package which we use to display the results. knitr includes kable, another way to generate tables.)
library(monarchr) library(DT) library(knitr) gene <- "NCBIGene:8314"
Homologs of gene, displayed using DataTable.
homs <- bioentity_homologs(gene) datatable(homs$homologs)
Diseases associated with gene, displayed using kable.
Note, the publications look clickable, but are not. This is a bug in the formatting. They are meant to be raw text.
dis <- bioentity_diseases_assoc_w_gene(gene) kable(dis$diseases)
Phenotypes associated with gene, displayed using kable.
Note, the publications look clickable, but are not. This is a bug in the formatting. They are meant to be raw text.
phe <- bioentity_phenotypes_assoc_w_gene(gene) kable(head(phe$phenotypes))
Anatomy associated with gene, displayed using kable.
Molecularly defined by expression data?
anat <- bioentity_exp_anatomy_assoc_w_gene(gene) kable(head(anat$anatomy))
Pathways associated with gene, displayed using kable.
pth <- bioentity_pathways_assoc_w_gene(gene) kable(pth$pathways)
Interactions associated with gene, displayed using kable.
Note, the publications look clickable, but are not. This is a bug in the formatting. They are meant to be raw text.
intx <- bioentity_interactions_assoc_w_gene(gene) kable(head(intx$interactions))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.