0.5.9 • Published 2 years ago

g-browser v0.5.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Usage

On our website

The genome browser is available online at https://exbio.wzw.tum.de/genome-browser

As npm package

The npm package including documentation can be found here.

As iframe

You can embed the genome browser as iframe in your website. The following example shows how to embed the genome browser

<iframe src="https://igv-proxy.epistasis-disease-atlas.com/genome-browser?genome=hg38"></iframe>

Controlling the iframe

The iframe can be controlled by sending messages to it. In general, messages can be sent like this:

const iframe = document.querySelector('iframe');
const message = {
  type: 'messageType',
  data: {
    // ...
  }
};
iframe.contentWindow.postMessage(message, '*');

Available message types

messageTypeDescriptionData format
fileAdds a file to the genome browser{ name: string; url: string; type: string; format?: string; color?: string;}
genomeSets the genome assembly for the genome browserstring
additionalLinkAllows to manually add a link to an external resource. Will appear next to the "Copy permalink" button.string
additionalLinkNameSets the button title for the "additionalLink" buttonstring
idTriggers the Genome browser to load a given state uidstring
saveTriggers the Genome browser to save its current state and copy the state uid to the user clipboard.No data required
genesAdds a list of gene symbols to the genome browserstring[]
snpsAdds a list of RS-IDs to the genome browserstring[]

Development

This project was generated with Angular CLI version 14.1.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

0.5.4

2 years ago

0.5.3

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.15

2 years ago

0.4.14

2 years ago

0.4.13

2 years ago

0.4.12

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.0

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago