Mercurial > repos > galaxyp > openms_internalcalibration
annotate test-data.sh @ 15:2f8b5aa12c99 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
| author | galaxyp | 
|---|---|
| date | Wed, 23 Sep 2020 14:48:09 +0000 | 
| parents | 1774a8ba674d | 
| children | 03bec4747f9c | 
| rev | line source | 
|---|---|
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
1 #!/usr/bin/env bash | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
2 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
3 VERSION=2.5 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
4 FILETYPES="filetypes.txt" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
5 CONDAPKG="https://anaconda.org/bioconda/openms/2.5.0/download/linux-64/openms-2.5.0-h463af6b_1.tar.bz2" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
6 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
7 # import the magic | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
8 . ./generate-foo.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
9 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
10 # install conda | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
11 if [ -z "$tmp" ]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
12 tmp=$(mktemp -d) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
13 created="yes" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
14 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
15 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
16 export OPENMSGIT="$tmp/OpenMS$VERSION.0-git" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
17 export OPENMSPKG="$tmp/OpenMS$VERSION-pkg/" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
18 export OPENMSENV="$tmp/OpenMS$VERSION-env" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
19 export CTDCONVERTER="$tmp/CTDConverter" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
20 | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
21 if [[ -z "$1" ]]; then | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
22 autotests="/dev/null" | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
23 else | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
24 autotests="$1" | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
25 fi | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
26 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
27 if type conda > /dev/null; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
28 true | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
29 else | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
30 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
31 bash Miniconda3-latest-Linux-x86_64.sh -b -p "$tmp/miniconda" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
32 source "$tmp/miniconda/bin/activate" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
33 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
34 eval "$(conda shell.bash hook)" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
35 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
36 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
37 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
38 ## get | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
39 ## - conda environment (for executing the binaries) and | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
40 ## - the git clone of OpenMS (for generating the tests) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
41 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
42 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
43 echo "Clone OpenMS $VERSION sources" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
44 if [[ ! -d $OPENMSGIT ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
45 git clone -b release/$VERSION.0 https://github.com/OpenMS/OpenMS.git $OPENMSGIT | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
46 cd $OPENMSGIT | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
47 git submodule init | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
48 git submodule update | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
49 cd - | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
50 else | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
51 cd $OPENMSGIT | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
52 git pull origin release/$VERSION.0 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
53 cd - | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
54 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
55 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
56 echo "Create OpenMS $VERSION conda env" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
57 # TODO currently add lxml (needed by CTDConverter) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
58 # TODO for some reason a to recent openjdk is used | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
59 if conda env list | grep "$OPENMSENV"; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
60 true | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
61 else | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
62 conda create -y --quiet --override-channels --channel iuc --channel conda-forge --channel bioconda --channel defaults -p $OPENMSENV openms=$VERSION openms-thirdparty=$VERSION openjdk=8.0.192 ctdopts=1.4 lxml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
63 # chmod -R u-w $OPENMSENV | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
64 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
65 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
66 ## get the | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
67 ## - conda package (for easy access and listing of the OpenMS binaries), | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
68 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
69 echo "Download OpenMS $VERSION package $CONDAPKG" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
70 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
71 if [[ ! -d $OPENMSPKG ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
72 mkdir $OPENMSPKG | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
73 wget -q -P $OPENMSPKG/ "$CONDAPKG" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
74 tar -xf $OPENMSPKG/"$(basename $CONDAPKG)" -C $OPENMSPKG/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
75 rm $OPENMSPKG/"$(basename $CONDAPKG)" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
76 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
77 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
78 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
79 ## Get python libaries for CTD -> Galaxy conversion | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
80 ## TODO fix to main repo OR conda packkage if PRs are merged | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
81 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
82 echo "Clone CTDConverter" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
83 if [[ ! -d $CTDCONVERTER ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
84 #git clone https://github.com/WorkflowConversion/CTDConverter.git CTDConverter | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
85 git clone -b topic/cdata https://github.com/bernt-matthias/CTDConverter.git $CTDCONVERTER | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
86 else | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
87 cd $CTDCONVERTER | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
88 git pull origin topic/cdata | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
89 cd - | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
90 fi | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
91 # export PYTHONPATH=$(pwd)/CTDopts | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
92 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
93 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
94 ## copy all the test data files to test-data | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
95 ## most of it (outputs) will be overwritten later, but its needed for | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
96 ## prepare_test_data | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
97 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
98 echo "Get test data" | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
99 find test-data -type f,l,d ! -name "*fa" ! -name "*loc" -delete | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
100 | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
101 cp $(find $OPENMSGIT/src/tests/topp/ -type f | grep -Ev "third_party_tests.cmake|CMakeLists.txt|check_ini") test-data/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
102 cp -r $OPENMSGIT/share/OpenMS/MAPPING/ test-data/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
103 cp -r $OPENMSGIT/share/OpenMS/CHEMISTRY test-data/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
104 cp -r $OPENMSGIT/share/OpenMS/examples/ test-data/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
105 if [[ ! -f test-data/MetaboliteSpectralDB.mzML ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
106 wget -q https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Tutorials/Data/latest/Example_Data/Metabolomics/databases/MetaboliteSpectralDB.mzML && mv MetaboliteSpectralDB.mzML test-data/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
107 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
108 ln -fs TOFCalibration_ref_masses test-data/TOFCalibration_ref_masses.txt | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
109 ln -fs TOFCalibration_const test-data/TOFCalibration_const.csv | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
110 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
111 if [ ! -d test-data/pepnovo_models/ ]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
112 wget http://proteomics.ucsd.edu/Software/PepNovo/PepNovo.20120423.zip | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
113 unzip -e PepNovo.20120423.zip -d /tmp/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
114 mv /tmp/Models test-data/pepnovo_models/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
115 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
116 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
117 ## generate ctd files using the binaries in the conda package | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
118 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
119 echo "Create CTD files" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
120 conda activate $OPENMSENV | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
121 mkdir -p ctd | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
122 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
123 # TODO because of https://github.com/OpenMS/OpenMS/issues/4641 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
124 # this needs to be done from within test-data | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
125 cd test-data | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
126 for i in $OPENMSPKG/bin/* | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
127 do | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
128 b=$(basename $i) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
129 echo $b | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
130 $b -write_ctd ../ctd/ | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
131 sed -i -e 's/²/^2/' ../ctd/$b.ctd | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
132 done | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
133 cd - | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
134 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
135 ## fix ini files: OpenMS test data contains ini files with outdated ini files. | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
136 ## e.g. variables might be in different nodes, outdated variables present, new | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
137 ## variables missing, ... | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
138 ## OpenMS tools fix this on the fly (so its no problem for the OpenMS tests) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
139 ## but it is for the generation of the tests | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
140 ## see https://github.com/OpenMS/OpenMS/issues/4462 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
141 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
142 echo "Update test INI files" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
143 for ini in test-data/*ini | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
144 do | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
145 tool=$(cat $ini | grep 'NODE name="' | head -n 1 | sed 's/.*name="\([^"]\+\)".*/\1/') | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
146 bin=$(which $tool) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
147 if [[ -z $bin ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
148 >&2 echo "missing binary to convert $ini" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
149 continue | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
150 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
151 cp $ini $ini.backup | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
152 $bin -ini $ini -write_ini $ini > $ini.stdout 2> $ini.stderr | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
153 if [[ "$?" -ne "0" ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
154 >&2 echo "could not convert $ini" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
155 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
156 done | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
157 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
158 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
159 ## create script to create results for the tests and run it | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
160 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
161 echo "Create test shell script" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
162 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
163 echo -n "" > prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
164 echo 'export COMET_BINARY="comet"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
165 echo 'export CRUX_BINARY="crux"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
166 echo 'export FIDOCHOOSEPARAMS_BINARY="FidoChooseParameters"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
167 echo 'export FIDO_BINARY="Fido"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
168 echo 'export LUCIPHOR_BINARY="$(dirname $(realpath $(which luciphor2)))/luciphor2.jar"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
169 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
170 echo 'export MARACLUSTER_BINARY="'"$OPENMSGIT"'/THIRDPARTY/Linux/64bit/MaRaCluster/maracluster"'>> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
171 echo 'export MSFRAGGER_BINARY="/home/berntm/Downloads/MSFragger-20171106/MSFragger-20171106.jar"'>> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
172 echo 'export MSGFPLUS_BINARY="$(msgf_plus -get_jar_path)"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
173 echo 'export MYRIMATCH_BINARY="myrimatch"'>> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
174 echo 'export NOVOR_BINARY="/home/berntm/Downloads/novor/lib/novor.jar"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
175 echo 'export OMSSA_BINARY="$(dirname $(realpath $(which omssacl)))/omssacl"'>> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
176 echo 'export PERCOLATOR_BINARY="percolator"'>> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
177 echo 'export SIRIUS_BINARY="$(which sirius)"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
178 echo 'export SPECTRAST_BINARY="spectrast"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
179 echo 'export XTANDEM_BINARY="xtandem"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
180 echo 'export THERMORAWFILEPARSER_BINARY="ThermoRawFileParser.exe"' >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
181 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
182 prepare_test_data >> prepare_test_data.sh #tmp_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
183 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
184 # prepare_test_data > tmp_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
185 # # remove calls not needed for the tools listed in any .list file | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
186 # echo LIST $LIST | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
187 # if [ ! -z "$LIST" ]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
188 # REX=$(echo $LIST | sed 's/ /\n/g' | sed 's@.*/\([^/]\+\).xml$@\1@' | tr '\n' '|' | sed 's/|$//') | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
189 # else | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
190 # REX=".*" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
191 # fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
192 # echo REX $REX | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
193 # cat tmp_test_data.sh | egrep "($REX)" >> prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
194 # rm tmp_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
195 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
196 echo "Execute test shell script" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
197 chmod u+x prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
198 cd ./test-data || exit | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
199 ../prepare_test_data.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
200 cd - || exit | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
201 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
202 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
203 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
204 ## create/update test data for the manually generated tests | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
205 ## - run convert once with the manual tests only and | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
206 ## - update test-data (needs to run 2x) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
207 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
208 echo "Execute test shell script for manually curated tests" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
209 chmod u+x prepare_test_data_manual.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
210 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
211 cd ./test-data || exit | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
212 ../prepare_test_data_manual.sh | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
213 cd - || exit | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
214 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
215 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
216 ############################################################################### | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
217 ## auto generate tests | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
218 ############################################################################### | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
219 echo "Write test macros to $autotests" | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
220 echo "<macros>" > "$autotests" | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
221 for i in $(ls *xml |grep -v macros) | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
222 do | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
223 b=$(basename "$i" .xml) | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
224 get_tests2 "$b" >> "$autotests" | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
225 done | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
226 echo "</macros>" >> "$autotests" | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
227 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
228 echo "Create test data links" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
229 link_tmp_files | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
230 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
231 # tests for tools using output_prefix parameters can not be auto generated | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
232 # hence we output the tests for manual curation in macros_test.xml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
233 # and remove them from the autotests | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
234 # -> OpenSwathFileSplitter IDRipper MzMLSplitter | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
235 # | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
236 # Furthermore we remove tests for tools without binaries in conda | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
237 # -> MSFragger MaRaClusterAdapter NovorAdapter | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
238 # | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
239 # not able to specify composite test data | 
| 
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
240 # -> SpectraSTSearchAdapter | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
241 if [[ ! -z "$1" ]]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
242 echo "" > macros_discarded_auto.xml | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
243 for i in OpenSwathFileSplitter IDRipper MzMLSplitter MSFraggerAdapter MaRaClusterAdapter NovorAdapter SpectraSTSearchAdapter | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
244 do | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
245 echo "<xml name=\"manutest_$i\">" >> macros_discarded_auto.xml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
246 xmlstarlet sel -t -c "/macros/xml[@name='autotest_$i']/test" macros_autotest.xml >> macros_discarded_auto.xml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
247 echo "</xml>" >> macros_discarded_auto.xml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
248 xmlstarlet ed -d "/macros/xml[@name='autotest_$i']/test" macros_autotest.xml > tmp | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
249 mv tmp macros_autotest.xml | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
250 done | 
| 
15
 
2f8b5aa12c99
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
14 
diff
changeset
 | 
251 >&2 echo "discarded autogenerated macros for curation in macros_discarded_auto.xml" | 
| 
14
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
252 fi | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
253 conda deactivate | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
254 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
255 ## remove broken symlinks in test-data | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
256 find test-data/ -xtype l -delete | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
257 | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
258 # if [ ! -z "$created" ]; then | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
259 # echo "Removing temporary directory" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
260 # rm -rf "$tmp" | 
| 
 
1774a8ba674d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
261 # fi | 
