An open API service indexing awesome lists of open source software.

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

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

![PreferencesPanel](https://raw.githubusercontent.com/lindenb/igvfox/master/doc/preferences.jpg)

## 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.

![Screenshot](https://raw.githubusercontent.com/lindenb/igvfox/master/doc/screenshot01.png)

## Compilation

if needed, you can compile and package the firefox add-on **igvfox.xpi** using make

```bash
$ make igvfox.xpi
```