Singularity container for custom IGV webapp. Intended for HPC/server use where server-local files need to be accessed.
Usually container building is not possible inside cluster. In machine with sudo singularity access:
sudo singularity build hpcigv.sif hpcigv.defThen copy hpcigv.sif to your cluster.
git clone https://github.com/thakk/hpcigv- Edit hpcigv/launcher.sh. Modify variables CONTAINER and BINDPATHS to suit your cluster.
git clone https://github.com/thakk/hpcigv- Install Cygwin with ssh client. Configure ssh keys and enable non-interactive logging to your cluster.
- Edit hpcigv/hpcigv_cygwinlauncher.sh . Modify variable IGVLAUNCHER to match your cluster installation.
- (optional) Create desktop icon for IGV. For example copy Cygwin launcher icon and modify Properties->Shortcut->Target to something like
D:\cygwin64\bin\mintty.exe /bin/env /bin/bash --login /cygdrive/c/Users/WindowsUser/Desktop/bash/hpcigv_cygwinlauncher.sh -u myusername -s myclusterlogin.site.com -g /lustre/compbio/pub/apps/hpcigv-1.0/genomes.json
git clone https://github.com/thakk/hpcigv- Edit hpcigv/hpcigv_cygwinlauncher.sh . Modify variable IGVLAUNCHER to match your cluster installation. Replace 2 last lines so that web browser is opened automatically.
Easiest way to launch IGV on server is to use provided hpcigv_cygwinlauncher.sh . This script opens connection to server with ssh and starts IGV container within screen- session. Subsequently ssh tunnel is created and local default browser is opened.
By default launcher.sh loads IGV json files under custom/igv/ . These files define server- side files that are accessible from IGV. To generate json files use biosamplestojson.sh . If you wish to use server- side reference files edit genomes.json.
Edit custom/igv/igv.json and add your files in tracks- section.
Server side:
PORT=31337 # Some unused port in server
singularity exec --bind $HOME/hpcigv/custom:/igv-webapp/dist/custom --bind $HOME/data:/igv-webapp/dist/data hpcigv.sif npx http-server --port $PORT /igv-webapp/distFile hpcigv/custom/igv/igv.json defines custom samples. Samples must be bound to appropriate directory within container and igv-webapp.
From workstation:
ssh -N -L 8999:<serveraddress>:"${PORT}" <serveruser>@<serveraddress>
# Then open browser in address localhost:8999Select hg38 genome to see DemoProject in Tracks- menu.
- Use smaller base image