
Web Server displaying SAM/BAM/VCF file and using the IGV.js API.
This program is now part of the main jvarkit tool. See jvarkit for compiling.
Usage: java -jar dist/jvarkit.jar igvserver [options] Files
Usage: igvserver [options] Files
Options:
--bed, --roi
Optional Bed of regions of interest displated as a html 'select' item
-h, --help
print help and exit
--helpFormat
What kind of help. One of [usage,markdown,xml].
--igv-js-url
Where to download IGV js
Default: https://cdn.jsdelivr.net/npm/igv@3.8.10/dist/igv.min.js
-P, --port, -port
Server listening port
Default: 8080
--shutdown-after
Stop the server after 'x' seconds.
Default: -1
--version
print version and exit
20261104
The project is licensed under the MIT license.
Should you cite igvserver ? https://github.com/mr-c/shouldacite/blob/master/should-I-cite-this-software.md
The current reference is:
http://dx.doi.org/10.6084/m9.figshare.1425030
Lindenbaum, Pierre (2015): JVarkit: java-based utilities for Bioinformatics. figshare. http://dx.doi.org/10.6084/m9.figshare.1425030
creates a IGV.js browser that is able to visualize multiple BAM/vcf files
input is a set of bam/vcf/cram/fasta file. A fasta file compatible with the bam/vcf is required.
$ java -jar dist/jvarkit.jar igvserver --bed roi.bed src/test/resources/rotavirus_rf.fa src/test/resources/S*.bam src/test/resources/rotavirus_rf.vcf.gz
$ java -jar dist/jvarkit.jar igvserver igv_sessions1.xml igv_sessions2.xml
$ find /path/to -type f -name "*.cram" -o -name "*.fa" > input.list
$ java -jar dist/jvarkit.jar igvserver input.list