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 | |
---|
3 | if [ -z "$TrimmomaticJAR" ]; then |
---|
4 | TrimmomaticJAR=/usr/local/packages/trimmomatic/0.32/trimmomatic-0.32.jar |
---|
5 | fi |
---|
6 | |
---|
7 | if [ -z "$TrimmomaticMemory" ]; then |
---|
8 | TrimmomaticMemory=16g |
---|
9 | fi |
---|
10 | |
---|
11 | NumThreads=`nproc` |
---|
12 | |
---|
13 | cmd=$1 |
---|
14 | shift |
---|
15 | |
---|
16 | java -Xmx${TrimmomaticMemory} -jar ${TrimmomaticJAR} ${cmd} -threads ${NumThreads} $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.