source: other/pipeline/trunk/trimmomatic @ 2495

Last change on this file since 2495 was 2495, checked in by Nicklas Nordborg, 9 years ago

Adding wrapper for calling trimmomatic. Includes default settings for memory and path to JAR file. Can be overridden by setting environment variables before calling the script. First parameter is the command (PE/SE), rest of parameters are forwarded to trimmomatic.

File size: 307 bytes
Line 
1#!/bin/sh
2
3if [ -z "$TrimmomaticJAR" ]; then
4  TrimmomaticJAR=/usr/local/packages/trimmomatic/0.32/trimmomatic-0.32.jar
5fi
6
7if [ -z "$TrimmomaticMemory" ]; then
8  TrimmomaticMemory=16g
9fi
10
11NumThreads=`nproc`
12
13cmd=$1
14shift
15
16java -Xmx${TrimmomaticMemory} -jar ${TrimmomaticJAR} ${cmd} -threads ${NumThreads} $@
Note: See TracBrowser for help on using the repository browser.