GIVE (Genomic Interactive Visualization Engine) is a HTML5 library that lets you embed genomic visualization panels like you work with standard HTML elements, to build a customized genome browser to visualize data from public deposits (such as ENCODE) and/or in-house data.
GIVE uses Web Components, specifically Polymer Library for user interface and Scaled Vector Graphics (SVG) 1.1 for graphics. These components are supported by all major browsers.
<!-- Polyfill Web Components for browsers without native support -->
<script src="https://give.genemo.org/components/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<!-- Import GIVE component -->
<link rel="import" href="https://give.genemo.org/components/bower_components/genemo-visual-components/chart-controller/chart-controller.html">
<!-- Embed the browser in your web page -->
<chart-controller ref="mm10" title-text="My GIVE Browser"
coordinates='["chr17:35504032-35512777"]'
group-id-list='["genes", "singleCell", "customTracks"]'></chart-controller>
Installation of GIVE is optional and not required to use any of the Web Components of GIVE. By installing GIVE components, you can serve codes and/or data sources directly from your own server.
GIVE consists of two major parts: GIVE Web Components, the client-side codes running in browsers, implemented by HTML5; and GIVE server, including bare server codes, implemented by PHP, and data sources.
To install any part of GIVE, a web-hosting environment is needed on your server. Please see GIVE Manual 1. Installation for installation guides.
To use GIVE components, just use HTML import
to import Web Components polyfill and the required Web Components.
All components, including Web Component polyfill, is available on our web site for direct HTML import.
<script src="https://give.genemo.org/components/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="https://give.genemo.org/components/bower_components/genemo-visual-components/chart-controller/chart-controller.html">
Please use your own path if you already installed GIVE Web Components on your server.
<script src="/give/html/components/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="/give/html/components/bower_components/genemo-visual-components/chart-controller/chart-controller.html">
After you have imported the components in your HTML page, you can use them in several ways. The most straightforward way is to use them as if you are using common HTML tags (like <div>
or <video>
):
<chart-controller ref="mm10" title-text="My First GIVE Browser"
group-id-list='["genes", "singleCell", "customTracks"]'></chart-controller>
Or to use Document.createElement()
to create the element in your JavaScript code:
var myChart = document.createElement('chart-controller')
myChart.titleText = "My First GIVE Browser"
myChart.groupIdList = ["genes", "singleCell", "customTracks"]
Or to use the built-in JavaScript constructors:
var myChart = new GIVE.ChartController({
titleText: "My First GIVE Browser",
groupIdList: ["genes", "singleCell", "customTracks"]
})
Please visit the following tutorial pages to see how to use the engine:
- Use GIVE to build a customized genome browser with existing code and data source
- Populating a reference genome with a few data tracks on a MySQL compatible data source
GIVE is developed by Xiaoyi Cao, Alvin Zheng from Dr. Sheng Zhong's lab at University of California, San Diego.
Copyright 2017 GIVe Authors
This project is licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.