https://github.com/lindenb/igvfox
firefox addon : IGV (Integrative Genomics Viewer) control through mozilla Firefox
https://github.com/lindenb/igvfox
addon bam bioinformatics firefox genomics igv javascript mozilla-firefox plugin socket visualization xpi
Last synced: 17 days ago
JSON representation
firefox addon : IGV (Integrative Genomics Viewer) control through mozilla Firefox
- Host: GitHub
- URL: https://github.com/lindenb/igvfox
- Owner: lindenb
- License: other
- Created: 2014-10-16T10:30:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-17T12:50:55.000Z (over 11 years ago)
- Last Synced: 2026-02-12T07:52:51.809Z (4 months ago)
- Topics: addon, bam, bioinformatics, firefox, genomics, igv, javascript, mozilla-firefox, plugin, socket, visualization, xpi
- Language: JavaScript
- Size: 352 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Controlling **IGV** through mozilla **Firefox**
## Motivation
An add-on for Firefox Controlling IGV, the **Integrative Genomics Viewer** ( http://www.broadinstitute.org/igv/ ) , through mozilla Firefox .
Tested with Firefox 32.0.3 and IGV 2.2.4 .
## Author
Pierre Lindenbaum PhD @yokofakun
Institut-du-thorax UMR1087, Nantes, France.
## Installation
download the latest release: https://github.com/lindenb/igvfox/releases/latest
( or compile **igvfox.xpi** (see below ) and open-it from a firefox window )
## Setting preferences
in menu 'Add-ons', select the IGVfox plugin and set the host:port of IGV

## Example
The two files below must be downloaded:
There is an example under `test/test01.html` ( https://github.com/lindenb/igvfox/blob/master/test/test01.html )
The html page loads a small javascript code: ( https://github.com/lindenb/igvfox/blob/master/test/igvfox.js )
```javascript
(...)
IGVFox._dipatchEvent = function(param)
{
var event = document.createEvent('CustomEvent');
event.initCustomEvent("igvfox@univ-nantes.fr", true, true, param );
document.documentElement.dispatchEvent(event);
};
IGVFox.goTo = function(position)
{
IGVFox._dipatchEvent(position);
};
(...)
```
this code is called from a HTML page:
```html
rs2229482
chr1:22071832
```
Open IGV, open **test01.html** in your browser , clicking on a hyperlink should invoke 'goto' in IGV.

## Compilation
if needed, you can compile and package the firefox add-on **igvfox.xpi** using make
```bash
$ make igvfox.xpi
```