Mercurial > repos > pjbriggs > trimmomatic
annotate install_tool_deps.sh @ 3:f8a9a5eaca8a draft
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
author | pjbriggs |
---|---|
date | Wed, 23 Sep 2015 08:59:23 -0400 |
parents | |
children |
rev | line source |
---|---|
3
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
1 #!/bin/bash |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
2 # |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
3 # Install dependencies for Trimmomatic for testing from the command line |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
4 # |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
5 # Installation directory |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
6 TOP_DIR=$1 |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
7 if [ -z "$TOP_DIR" ] ; then |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
8 echo Usage: $(basename $0) DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
9 exit |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
10 fi |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
11 if [ -z "$(echo $TOP_DIR | grep ^/)" ] ; then |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
12 TOP_DIR=$(pwd)/$TOP_DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
13 fi |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
14 if [ ! -d "$TOP_DIR" ] ; then |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
15 mkdir -p $TOP_DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
16 fi |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
17 cd $TOP_DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
18 # Trimmomatic 0.32 |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
19 INSTALL_DIR=$TOP_DIR/trimmomatic/0.32 |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
20 mkdir -p $INSTALL_DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
21 wd=$(mktemp -d) |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
22 pushd $wd |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
23 wget -q http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.32.zip |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
24 unzip -qq Trimmomatic-0.32.zip |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
25 mv Trimmomatic-0.32/trimmomatic-0.32.jar $INSTALL_DIR/ |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
26 mv Trimmomatic-0.32/adapters/ $INSTALL_DIR/ |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
27 popd |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
28 rm -rf $wd/* |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
29 rmdir $wd |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
30 # Make setup file |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
31 cat > trimmomatic/0.32/env.sh <<EOF |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
32 #!/bin/sh |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
33 # Source this to setup trimmomatic/0.32 |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
34 echo Setting up Trimmomatic 0.32 |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
35 export TRIMMOMATIC_DIR=$INSTALL_DIR |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
36 export TRIMMOMATIC_ADAPTERS_DIR=$INSTALL_DIR/adapters |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
37 # |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
38 EOF |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
39 ## |
f8a9a5eaca8a
Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
pjbriggs
parents:
diff
changeset
|
40 # |