This page was last updated on Friday, 11-Nov-2016 09:52:47 CST
java
#!/bin/bash # memory for Java in gigabytes defaultjmem=8 jmem=$defaultjmem if [[ $1 =~ ^[0-9]+$ ]] ; then jmem=$1 shift echo "Will allocate $jmem gigabytes of memory for Picard" fi if [[ "$1" == "" ]]; then echo "This is a Java wrapper for Picard programs" echo "Pass in the name of the picard program to run, followed by any parameters" echo "e.g. picard BamIndexStats INPUT=bogus.bam" echo "Default memory allocation is $defaultjmem gigabytes" echo "To specify an alternate amount, e.g. 16 gigabytes, pass in \"16\" before any other parameters" echo "e.g. picard 16 BamIndexStats INPUT=bogus.bam" exit 1 else program=$1 shift java -Xmx${jmem}g -jar /usr/local/bin/picard.jar $program $@ r=$?; if [ $r != 0 ]; then echo "Picard returned error code $r"; fi exit $r fi
#!/bin/bash # memory for Java in gigabytes defaultjmem=8 jmem=$defaultjmem if [[ $1 =~ ^[0-9]+$ ]] ; then jmem=$1 shift echo "Will allocate $jmem gigabytes of memory for Picard" fi if [[ "$1" == "" ]]; then echo "This is a Java wrapper for Picard programs" echo "Pass in the name of the picard program to run, followed by any parameters" echo "e.g. picard BamIndexStats INPUT=bogus.bam" echo "Default memory allocation is $defaultjmem gigabytes" echo "To specify an alternate amount, e.g. 16 gigabytes, pass in \"16\" before any other parameters" echo "e.g. picard 16 BamIndexStats INPUT=bogus.bam" exit 1 else program=$1 shift java -Xmx${jmem}g -jar /usr/local/bin/picard-tools/picard.jar $program $@ r=$?; if [ $r != 0 ]; then echo "Picard returned error code $r"; fi exit $r fi