Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Embeddable genomic visualization component based on the Integrative Genomics Viewer
igv.js is an embeddable interactive genome visualization component developed by the Integrative Genomics Viewer (IGV) team.
igv.js consists of a single javascript file with no external dependencies. To link directly to the current release copy this snippet
<script src="https://igv.org/web/release/2.0.0/dist/igv.min.js"></script>
Pre-built expanded and minified js files for ES5 (igv.js, igv.min.js) and ES6 (igv.esm.js, igv.esm.min.js) can be downloaded from http://igv.org/web/release/2.0.0/dist.
Alternatively you can install with npm
npm install igv
and source one of the files in node_modules/igv/dist.
To use igv.js include it with a script tag
<script src="igv.min.js/>
or import it as a requirejs module
requirejs(['igv.min'], function (igv) {...}
(see examples/igv-require.html)
or import it as an es6 module
import igv from 'igv.esm.min.js'
(see examples/igv-esm.html)
To create an igv.js browser supply a container div
and an initial configuration defining the reference genome, initial tracks, and other state to the
function igv.createBrowser(div, config)
.
This function returns a promise for an igv.Browser object which can used to control the browser. An example of a browser on a single alignment track opened at a specific locus:
var igvDiv = document.getElementById("igv-div");
var options =
{
genome: "hg19",
locus: "chr8:128,747,267-128,754,546",
tracks: [
{
type: 'alignment',
format: 'bam',
url: 'https://data.broadinstitute.org/igvdata/1KG/b37/data/HG02450/alignment/HG02450.mapped.ILLUMINA.bwa.ACB.low_coverage.20120522.bam',
name: 'HG02450'
}
]
};
igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})
For more details see the Wiki for full documentation of the API.
Building igv.js and running the examples require Linux or MacOS. Other Unix environments will probably work but have not been tested.
Windows users can use Cygwin or Windows Subsystem for Linux.
Building igv.js and running the examples requires node.js.
git clone https://github.com/igvteam/igv.js.git
cd igv.js
npm install
npm run grunt
This creates a dist folder with the following files
To run the tests from the command line
grunt test
To run the tests in a browser start an http-server
npm run http-server
Then open http://localhost:8080/test/runTests.html.
To run the examples start an http-server
npm run http-server
Then open http://localhost:8080/index.html.
igv.js is MIT licensed.
FAQs
Embeddable genomic visualization component based on the Integrative Genomics Viewer
The npm package igv receives a total of 4,855 weekly downloads. As such, igv popularity was classified as popular.
We found that igv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.