-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,3 +90,4 @@ ENV/ | |
IGV_Snapshots* | ||
bin* | ||
test.py | ||
target.bed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BootStrap: docker | ||
From: ubuntu:16.04 | ||
|
||
%post | ||
apt-get update && \ | ||
apt-get install -y wget \ | ||
unzip \ | ||
default-jdk \ | ||
xvfb \ | ||
xorg \ | ||
python | ||
|
||
wget http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_2.4.10.zip && \ | ||
unzip IGV_2.4.10.zip && \ | ||
rm -f unzip IGV_2.4.10.zip | ||
|
||
export PATH="/IGV_2.4.10/:${PATH}" | ||
|
||
# make a dummy batch script in order to load the hg19 genome into the container | ||
# https://software.broadinstitute.org/software/igv/PortCommands | ||
printf 'new\ngenome hg19\nexit\n' > /genome.bat | ||
xvfb-run --auto-servernum --server-num=1 igv.sh -b /genome.bat | ||
|
||
%test | ||
which igv.sh | ||
|
||
%environment | ||
export PATH="/IGV_2.4.10/:${PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# example wrapper script to launch the snapshot script inside a Singularity container (needed if xvfb is not installed) | ||
|
||
# default path to Singularity container file | ||
container="${1:-IGV.simg}" | ||
|
||
# need to load Singularity if running on Big Purple HPC | ||
if [ "$(hostname | grep -q 'bigpurple' ; echo $?)" -eq 0 ]; then | ||
module load singularity/2.5.2 | ||
|
||
# command to launch Singularity container and run commands inside the container | ||
# NOTE: you may need to make sure that the directory filesystem root and the current dir are bound to the container with `-B` | ||
singularity exec \ | ||
-B /gpfs \ | ||
-B "${PWD}" \ | ||
"${container}" \ | ||
/bin/bash -c " \ | ||
cd ${PWD} | ||
python make_IGV_snapshots.py test_data/test_alignments.bam test_data/test_alignments2.bam | ||
" | ||
fi |