Skip to content

BioAnalyticResource/ePlant_Plant_eFP

ePlant Plant eFP

The ePlant Plant eFP is a tissue expression API provided by the Bio-Analytic Resource for Plant Biology (BAR) from the University of Toronto. This tool will provide visualized tissue expression data corresponding for Arabidopsis thaliana with one of the listed compendiums.

Maintainability Follow on Twitter GitHub repo size GitHub Website

Getting Started

To use the ePlant Plant eFP, you will be required to either call the tissueExpressionBAR.js from our hosted location (https://raw.githubusercontent.com/BioAnalyticResource/ePlant_Plant_eFP/master/tissueExpressionBAR.min.js) or download the files locally (including the tissueExpressionBAR.js, compendiums and data) which can be done using the following:

git clone https://github.com/BioAnalyticResource/ePlant_Plant_eFP.git

Just an important note, the ePlant Plant eFP tissue expression API requires an online connection to run and display data correctly.

You can also view the ePlant Plant eFP widget in action at https://bar.utoronto.ca/~asullivan/ePlant_Plant_eFP/ (or index.html).

How to use

For the ePlant Plant eFP to work correctly, you need to call the CreateSVGExpressionData's generateSVG. For generateSVG, you will need the desired compendium you wish to call, the gene/locus input as formatted by AGI ID (example: AT3G24650) and the ID of the desired location for this information to be printed to (example: a div with ID 'desiredDOM'):

// A variable already exists called createSVGExpressionData for CreateSVGExpressionData
// but if you wish to create your own function, just instantiate a new one
// through variableName = new CreateSVGExpressionData();

// To create your own visualized tissue expression, call generateSVG(). Documentation below:
// /**
//  * Create and generate an SVG based on the desired tissue expression locus
//  * @param {String} locus The AGI ID (example: AT3G24650)
//  * @param {String} desiredDOMid The desired DOM location or if kept empty, would not replace any DOM elements and just create the related HTML DOM elements within appendSVG
//  * @param {String} svgName Name of the SVG file without the .svg at the end. Default is set to "default", when left this value, the highest expression value (if any) is chosen and if not, then Abiotic Stress is.
//  * @param {Boolean} includeDropdownAll true = include a html dropdown/select of all available SVGs/samples, false = don't
//  * @param {String | Number} containerHeight The height of the SVG container, default is 100vh
//  * @returns {String} If no desiredDOMid is given, returns the string version of the output instead
//  */
createSVGExpressionData.generateSVG("AT3G24650", "desiredDOM", "default");
// or
window.createSVGExpressionData.generateSVG("AT3G24650", "desiredDOM", "default");

This will display the visualized and coloured tissue expression data within the desired location.

Browser Compatibilities

Chrome Firefox Edge Safari Opera Tor Mobile

Known issues

We aim to make the ePlant Plant eFP as perfect as possible but unfortunately, there may be some unforeseen bugs. If you manage to find one that is not here, feel free to create a bug report so we can fix it.

  • None at the moment... Help us find some!

Contributing

Please read CONTRIBUTING.md for more details.

License

GPL-2.0

Authors