You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-6
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# IGV Snapshot Automator
2
-
A script to automatically create and run [IGV snapshot batchscripts](http://software.broadinstitute.org/software/igv/batch). This script will first write an IGV batch script for the supplied input files, then load all supplied files for visualization (.bam, etc) in a headless IGV session and take snapshots at the locations defined in the `regions.bed` file.
2
+
A script to automatically create and run [IGV snapshot batchscripts](http://software.broadinstitute.org/software/igv/batch). This script will first write an IGV batch script for the supplied input files, then load all supplied files for visualization (.bam, etc) in a headless IGV session and take snapshots at the locations defined in the `regions.bed` file.
3
3
4
-
Designed for use on Linux systems, and intended to be used as a component of sequencing analysis pipelines.
4
+
Designed for use on Linux systems, and intended to be used as a component of sequencing analysis pipelines.
-`-o`: Name of the output directory to save the snapshots in.
57
-
-`-bin`: Path to the IGV jar binary to run
57
+
-`-bin`: Path to the IGV jar binary to run
58
58
-`-mem`: Memory to allocate to IGV (MB)
59
59
-`-suffix`: Filename suffix to place before '.png' in the snapshots
60
60
-`-onlysnap`: Skip batchscript creation and only run IGV using the supplied batchscript file
61
-
-`-nf4`: "Name field 4" mode, uses values saved in 4th field of the `regions.bed` file as the output filename of the PNG snapshot. Use this when you have pre-made filenames you wish to use for each snapshot.
61
+
-`-nf4`: "Name field 4" mode, uses values saved in 4th field of the `regions.bed` file as the output filename of the PNG snapshot. Use this when you have pre-made filenames you wish to use for each snapshot.
62
62
-`-s` or `-group_by_strand`: Group alignment(s) by read strand with forward on top and reverse on the bottom.
Default memory allotment is set at 4GB; this can be changed with the `-mem` argument (e.g. `-mem 1000` sets memory to 1GB).
72
+
Default memory allotment is set at 4GB; this can be changed with the `-mem` argument (e.g. `-mem 1000` sets memory to 1GB).
73
73
74
-
IGV may take several minutes to run, depending on the number of input files and regions to snapshot. Stdout messages from the program may not appear immediately in the console.
74
+
IGV may take several minutes to run, depending on the number of input files and regions to snapshot. Stdout messages from the program may not appear immediately in the console.
75
+
76
+
# Singularity Container
77
+
78
+
An example Singularity container recipe file to run the IGV Snapshot Automator script is included (`Singularity`). If you have Singularity installed, it can be built with a command such as:
79
+
80
+
```
81
+
sudo singularity build IGV.simg Singularity
82
+
```
83
+
84
+
If you do not have root access or do not have Singularity installed on your system, you can refer to the repo [here](https://github.com/NYU-Molecular-Pathology/containers) for some examples of how to build Singularity containers using Vagrant or Docker.
85
+
86
+
An example wrapper script that can be used to launch the Singularity container and run the IGV Snapshot Automator can be found in `run.Singularity.sh`. You should update this with the commands you wish to use and make necessary changes to it in order to run on your system.
0 commit comments