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