summarylogtreecommitdiffstats
path: root/igv.sh
blob: be7678031e5286138735892e849b220f2a92108c (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
LANG=C phymem=$(free -m | awk '/^Mem:/{print $2}')
igvmem=$(($phymem / 3))
archlinux-java-run --min 11 --max 11 -- \
  -Xmx${igvmem}m \
  @"/usr/share/java/igv/igv.args" \
  -Dapple.laf.useScreenMenuBar=true \
  -Djava.net.preferIPv4Stack=true \
  --module-path=/usr/share/java/igv/lib \
  --module=org.igv/org.broad.igv.ui.Main "$@"