The expression browser is integrated with Deriva through the Knowledge Base, a Markdown-based facility that allows
arbitrary content to be associated with controlled vocabulary terms (e.g., genes and anatomical sites.)
To facilitate this integration the expression browser provides URLs/endpoints suitable for inclusion within an
HTML <iframe>
in the Knowledge base Markdown. The main iframe endpoints, intended to be used in the Markdown
for genes and anatomical sites, respectively, are:
In the following screenshot the GeneTissues iframe endpoint displays expression data for ENSG00000000003/TSPAN6 (tetraspanin 6), using the Broad Institute's GTEx-Viz violin plot and the GTEx Portal's public API:
gencodeId
: Ensembl id (e.g,. "ENSG00000000003") of the gene for which to display expression data. (required)width
: Width in pixels of the containing iframe. (required)height
: Height in pixels of the containing iframe. (required)numTopTissues
: Number of top tissues to display (default = 10)hideTitle
: 0 or 1. Whether to hide the title bar at the top of the widget. (default = 0)uberonIds
: Comma-delimited list of ids from the Uberon multi-species anatomy ontology (e.g,. "UBERON:0002037,UBERON:0002369")tissueSiteDetailIds
: Comma-delimited list of GTEx tissueSiteDetailIds. (e.g., "Liver,Lung")
-
Basic usage.
gencodeId
,width
, andheight
are all required parameters:/gene_tissues?gencode_id=ENSG00000000003&width=1200&height=450
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003&width=1200&height=450'></iframe>
-
The version component of the
gencodeId
is optional but may be supplied:gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450'></iframe>
-
Change
numTopTissues
from the default of 10 to 15:gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&numTopTissues=15
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&numTopTissues=15'></iframe>
-
Set
hideTitle=1
to suppress the title bar at the top:gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&hideTitle=1
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&hideTitle=1'></iframe>
-
Use
tissueSiteDetailIds
to initialize the iframe with a comparison of Liver and Lung, instead of the top 10 tissues. Note that anatomical sites are color-coded and the numbers indicate the ranking of each anatomical site for this particular gene (i.e., 25 = anatomical site with the 25th highest median TPM value):gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&tissueSiteDetailIds=Liver,Lung
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&tissueSiteDetailIds=Liver,Lung'></iframe>
-
Use
tissueSiteDetailIds
anduberonIds
to compare Liver, Lung, and Adrenal Gland (referenced via UBERON:0002369):gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&tissueSiteDetailIds=Liver,Lung&uberonIds=UBERON:0002369
<iframe style='width: 1200px; height: 450px; border: 1px solid black;' src='https://<hostname>/gene_tissues?gencode_id=ENSG00000000003.14&width=1200&height=450&tissueSiteDetailIds=Liver,Lung&uberonIds=UBERON:0002369'></iframe>
-
Click on "Specific site(s) only" to select anatomical sites for comparison instead of displaying the top N:
-
Enter a term (e.g., "brain") to search for anatomical sites:
-
Hover over an anatomical site to see the full description:
-
Select "Log scale" to use a logarithmic scale for the violin plots:
-
Toggle the display of outliers with the "Show outliers" slider:
-
Select "Subset by sex" to compare expression between male and female subjects:
-
Hover over the violin plots to see the anatomical site and median TPM:
In the following screenshot the Anatomy iframe endpoint displays the 25 most highly-expressed genes in the adrenal gland (UBERON:0002369) and compares the expression in adrenal gland with that in two brain regions. It makes use of the Broad Institute's GTEx-Viz Expression Map and the GTEx Portal's public API:
uberonIds
: Comma-delimited list of ids from the Uberon multi-species anatomy ontology (e.g,. "UBERON:0002037,UBERON:0002369")width
: Width in pixels of the containing iframe. (required)height
: Height in pixels of the containing iframe. (required)numTopGenes
: Number of top-expressed genes to display (default = 10)
-
Basic usage.
uberonIds
,width
, andheight
are all required parameters:anatomy?uberon_ids=UBERON%3A0002369,UBERON%3A0002037&width=1400&height=550
<iframe style='width: 1400px; height: 550px; border: 1px solid black;' src='https://<hostname>/anatomy?uberon_ids=UBERON%3A0002369,UBERON%3A0002037&width=1400&height=550'></iframe>
-
Change
numTopGenes
from the default of 10 to 25:anatomy?uberon_ids=UBERON%3A0002369,UBERON%3A0002037&width=1400&height=550&numTopGenes=25
<iframe style='width: 1400px; height: 550px; border: 1px solid black;' src='https://<hostname>/anatomy?uberon_ids=UBERON%3A0002369,UBERON%3A0002037&width=1400&height=550&numTopGenes=25'></iframe>
-
Toggle the inclusion of mitochondrial genes (in the top N expressed genes only) with the "Include mitochondrial genes" option:
-
Click on "Add Anatomical Site(s)" to add/remove anatomical sites from the comparison:
-
Enter a term (e.g., "blood") to search for anatomical sites:
-
Click on "Specific gene(s)" to select specific genes of interest for comparison instead of displaying the top N:
-
Add specific genes using a keyword search/partial match on gene name:
-
Add specific genes by cutting and pasting gencode ids into the provided text area:
-
Any user-selected genes that also appear in the top 25 are highlighted (ACTB and CYP17A1 in this example):
-
Hover over the 2D expression plot to see the median TPM values:
A variant of the /anatomy
iframe that can display expression data from multiple data sources
(not yet publicly available due to data use restrictions.)
uberonIds
: Comma-delimited list of ids from the Uberon multi-species anatomy ontology (e.g,. "UBERON:0002037,UBERON:0002369")width
: Width in pixels of the containing iframe. (required)height
: Height in pixels of the containing iframe. (required)numTopGenes
: Number of top-expressed genes to display (default = 10)
A Vue.js project
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test