Biojs.ExpressionAtlasBaselineSummary showcase
PLEASE NOTE: the above example is being affected by the CSS rules of this site. Click on 'view in window' to see the component by using its own CSS stylesheet(s) only.
View in windowOverview
This is the ExpressionAtlas component for displaying baseline expression of genes
based on RNA-seq experiments in the ExpressionAtlas database.
Version
1.0.3.
To get the above Biojs.ExpressionAtlasBaselineSummary to work on your page, you need to do the following:
- Include the file Biojs.ExpressionAtlasBaselineSummary.js and its dependencies to your page header.
Biojs scripts
<script language="JavaScript" type="text/javascript" src="src/Biojs.js">
External script(s)
<script language="JavaScript" type="text/javascript" src="../biojs/dependencies/jquery/jquery-1.9.1.min.js">
- Create a div tag which holds an unique identifier.
<body> ... <div id="YourOwnDivId" /> ... </body> - Create a code snippet within a <script> tag and instance Biojs.ExpressionAtlasBaselineSummary into.
window.onload = function() { var instance = new Biojs.ExpressionAtlasBaselineSummary({ geneQuery:"ENSG00000187003+ENSG00000185264", propertyType:"bioentity_identifier", geneSetMatch:false, target : "YourOwnDivId" }); };
Required Parameters
-
geneQuery | {string}
ENSEMBL gene ids or UniProt ids. If more than one identifier follow this format "P00846+P99999"
-
target | {string}
Identifier of the DIV tag where the component should be displayed.
Optional Parameters
-
featuresUrl | {string}
The query URL pointing to the ExpressionAtlas for retrieving gene page results displayed as part of this widget. It is usually composed to include the identifier of the gene you are interested in, see example.
Default: 'http://www-test.ebi.ac.uk/gxa/widgets/heatmap/protein' -
propertyType | {string}
To narrow to search scope of a query term, please provide a type.
Default: '' -
geneSetMatch | {string}
If true collapse multiple returned gene profiles into one single line of average expression.
Default: false -
rootContext | {string}
Specifies the root context path to be used by the widget content, i.e. this is the location of the content proxy pointing to ExpressionAtlas
Default: '../biojs/dependencies/proxy/proxy.php?url%3dhttp://www-test.ebi.ac.uk/gxa' -
proxyUrl | {string}
This component needs to request data from a web service. To bypass the same origin policy (http://en.wikipedia.org/wiki/Same_origin_policy) this component needs a proxy. You could use your own proxy by modifying this value or one of the BioJS proxies: '../biojs/dependencies/proxy/proxy.php' or '../biojs/dependencies/proxy/proxy.jsp'
Default: '../biojs/dependencies/proxy/proxy.php'
setQuery
Set ENSEMBL gene ids or UniProt ids.
Parameters:
-
{string} geneQuery
ENSEMBL gene ids or UniProt ids. If more than one identifier follow this format "P00846+P99999". -
{string} propertyType
Property to narrow to search scope of a query term, please provide a type. -
{boolean} geneSetMatch
If true collapse multiple returned gene profiles into one single line of average expression.
Example 1:
instance.setQuery("ENSG00000187003+ENSG00000185264","bioentity_identifier",false);
Example 2:
instance.setQuery("Q61171","",false);
Example 3:
instance.setQuery("P37173+Q9UER7+P10600+P35243+Q93074+P16234","",false);
Example 4:
instance.setQuery("ENSG000000000000","bioentity_identifier",false);
onError
Parameters:
-
{function} actionPerformed
A function which receives a Biojs.Event object as argument.
Returned data in the Biojs.Event object:
-
{string}
message
Error message in case of result be 'failure'. -
{Object}
jqXHR
XMLHttpRequest object -
{string}
textStatus
It describes the type of error that occurred and an optional exception object, if one occurred -
{string}
errorThrown
When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error."
Example :
instance.onError(
function( error ) {
alert( error.message );
}
);

