Mercurial > repos > galaxyp > openms_xfdr
annotate test-data.sh @ 9:cf9b51c0b15e draft default tip
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
| author | galaxyp | 
|---|---|
| date | Fri, 14 Jun 2024 21:30:46 +0000 | 
| parents | 87dda030bc92 | 
| children | 
| rev | line source | 
|---|---|
| 
4
 
81402a5e4173
"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 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
2 | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
3 # set -x | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
4 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
5 VERSION=3.1 | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
6 FILETYPES="aux/filetypes.txt" | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
7 CONDAPKG="https://anaconda.org/bioconda/openms/3.1.0/download/linux-64/openms-3.1.0-h8964181_1.tar.bz2" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
8 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
9 # install conda | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
10 if [ -z "$tmp" ]; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
11 tmp=$(mktemp -d) | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
12 created="yes" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
13 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
14 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
15 export OPENMSGIT="$tmp/OpenMS$VERSION.0-git" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
16 export OPENMSPKG="$tmp/OpenMS$VERSION-pkg/" | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
17 export OPENMSENV="OpenMS$VERSION-env" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
18 | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
19 if [ -z "$CTDCONVERTER" ]; then | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
20 export CTDCONVERTER="$tmp/CTDConverter" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
21 fi | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
22 | 
| 
5
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
23 if [[ -z "$1" ]]; then | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
24 autotests="/dev/null" | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
25 else | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
26 autotests="$1" | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
27 fi | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
28 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
29 if type conda > /dev/null; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
30 true | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
31 else | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
32 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
33 bash Miniconda3-latest-Linux-x86_64.sh -b -p "$tmp/miniconda" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
34 source "$tmp/miniconda/bin/activate" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
35 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
36 eval "$(conda shell.bash hook)" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
37 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
38 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
39 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
40 ## get | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
41 ## - conda environment (for executing the binaries) and | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
42 ## - the git clone of OpenMS (for generating the tests) | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
43 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
44 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
45 echo "Clone OpenMS $VERSION sources" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
46 if [[ ! -d $OPENMSGIT ]]; then | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
47 if [[ "$created" == "yes" ]]; then | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
48 GIT_DIR=$(mktemp -d --dry-run) | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
49 GIT_EXTRA_OPTS="--separate-git-dir=$GIT_DIR" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
50 fi | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
51 git clone -b release/$VERSION.0 --depth 1 --recurse-submodules=THIRDPARTY --shallow-submodules $GIT_EXTRA_OPTS https://github.com/OpenMS/OpenMS.git $OPENMSGIT | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
52 ## save some space by just keeping the needed binaries | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
53 find $OPENMSGIT/THIRDPARTY/ -type f -not \( -name maracluster -o -name spectrast \) -delete | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
54 find $OPENMSGIT/THIRDPARTY/ -empty -type d -delete | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
55 if [[ "$created" == "yes" ]]; then | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
56 rm -rf $GIT_DIR | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
57 fi | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
58 else | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
59 cd $OPENMSGIT | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
60 git pull origin release/$VERSION.0 | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
61 cd - | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
62 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
63 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
64 echo "Create OpenMS $VERSION conda env" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
65 # TODO currently add lxml (needed by CTDConverter) | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
66 # TODO for some reason a to recent openjdk is used | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
67 if conda env list | grep "$OPENMSENV"; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
68 true | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
69 else | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
70 conda create -y --quiet --solver libmamba --override-channels --strict-channel-priority --channel conda-forge --channel bioconda -n $OPENMSENV openms=$VERSION openms-thirdparty=$VERSION ctdopts=1.5 lxml | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
71 # chmod -R u-w $OPENMSENV | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
72 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
73 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
74 ## get the | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
75 ## - conda package (for easy access and listing of the OpenMS binaries), | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
76 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
77 echo "Download OpenMS $VERSION package $CONDAPKG" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
78 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
79 if [[ ! -d $OPENMSPKG ]]; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
80 mkdir $OPENMSPKG | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
81 wget -q -P $OPENMSPKG/ "$CONDAPKG" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
82 tar -xf $OPENMSPKG/"$(basename $CONDAPKG)" -C $OPENMSPKG/ | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
83 rm $OPENMSPKG/"$(basename $CONDAPKG)" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
84 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
85 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
86 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
87 ## Get python libaries for CTD -> Galaxy conversion | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
88 ## TODO fix to main repo OR conda packkage if PRs are merged | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
89 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
90 echo "Clone CTDConverter" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
91 if [[ ! -d $CTDCONVERTER ]]; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
92 #git clone https://github.com/WorkflowConversion/CTDConverter.git CTDConverter | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
93 git clone -b topic/fix-selects2 https://github.com/bernt-matthias/CTDConverter.git $CTDCONVERTER | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
94 else | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
95 cd $CTDCONVERTER | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
96 git pull origin topic/fix-selects2 | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
97 cd - | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
98 fi | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
99 conda activate $OPENMSENV | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
100 cd $CTDCONVERTER | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
101 python -m pip install . --no-deps | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
102 cd - | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
103 conda deactivate | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
104 | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
105 | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
106 # # ############################################################################### | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
107 # # ## copy all the test data files to test-data | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
108 # # ## most of it (outputs) will be overwritten later, but its needed for | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
109 # # ## prepare_test_data | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
110 # # ############################################################################### | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
111 echo "Get test data" | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
112 find test-data -type f,l,d ! -name "*fa" ! -name "*loc" ! -name "test-data" ! -name MetaboliteSpectralDB.mzML -delete | 
| 
5
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
113 | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
114 cp $(find $OPENMSGIT/src/tests/topp/ -type f | grep -Ev "third_party_tests.cmake|CMakeLists.txt|check_ini") test-data/ | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
115 cp -r $OPENMSGIT/share/OpenMS/MAPPING/ test-data/ | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
116 cp -r $OPENMSGIT/share/OpenMS/CHEMISTRY test-data/ | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
117 cp -r $OPENMSGIT/share/OpenMS/examples/ test-data/ | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
118 if [ ! -f test-data/MetaboliteSpectralDB.mzML ]; then | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
119 wget -nc https://raw.githubusercontent.com/sneumann/OpenMS/master/share/OpenMS/CHEMISTRY/MetaboliteSpectralDB.mzML | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
120 # wget -nc https://abibuilder.cs.uni-tuebingen.de/archive/openms/Tutorials/Data/latest/Example_Data/Metabolomics/databases/MetaboliteSpectralDB.mzML | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
121 mv MetaboliteSpectralDB.mzML test-data/ | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
122 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
123 ln -fs TOFCalibration_ref_masses test-data/TOFCalibration_ref_masses.txt | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
124 ln -fs TOFCalibration_const test-data/TOFCalibration_const.csv | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
125 | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
126 # if [ ! -d test-data/pepnovo_models/ ]; then | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
127 # mkdir -p /tmp/pepnovo | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
128 # wget -nc http://proteomics.ucsd.edu/Software/PepNovo/PepNovo.20120423.zip | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
129 # unzip PepNovo.20120423.zip -d /tmp/pepnovo/ | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
130 # mv /tmp/pepnovo/Models test-data/pepnovo_models/ | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
131 # rm PepNovo.20120423.zip | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
132 # rm -rf /tmp/pepnovo | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
133 # fi | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
134 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
135 ## generate ctd files using the binaries in the conda package | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
136 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
137 echo "Create CTD files" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
138 conda activate $OPENMSENV | 
| 
6
 
9a6e3bb0f358
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
5 
diff
changeset
 | 
139 rm -rf ctd | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
140 mkdir -p ctd | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
141 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
142 for i in $OPENMSPKG/bin/* | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
143 do | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
144 b=$(basename $i) | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
145 echo $b | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
146 $b -write_ctd ctd/ | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
147 sed -i -e 's/²/^2/' ctd/$b.ctd | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
148 done | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
149 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
150 ## fix ini files: OpenMS test data contains ini files with outdated ini files. | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
151 ## e.g. variables might be in different nodes, outdated variables present, new | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
152 ## variables missing, ... | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
153 ## OpenMS tools fix this on the fly (so its no problem for the OpenMS tests) | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
154 ## but it is for the generation of the tests | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
155 ## see https://github.com/OpenMS/OpenMS/issues/4462 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
156 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
157 echo "Update test INI files" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
158 for ini in test-data/*ini | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
159 do | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
160 tool=$(cat $ini | grep 'NODE name="' | head -n 1 | sed 's/.*name="\([^"]\+\)".*/\1/') | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
161 bin=$(which $tool) | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
162 if [[ -z $bin ]]; then | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
163 >&2 echo "missing binary to convert $ini" | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
164 continue | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
165 fi | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
166 cp $ini $ini.backup | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
167 $bin -ini $ini -write_ini $ini > $ini.stdout 2> $ini.stderr | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
168 if [[ "$?" -ne "0" ]]; then | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
169 >&2 echo "could not convert $ini" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
170 fi | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
171 done | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
172 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
173 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
174 ## create script to create results for the tests and run it | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
175 ############################################################################### | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
176 # parse data preparation calls from OpenMS sources for a tool with a given id | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
177 function prepare_test_data { | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
178 # id=$1 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
179 # | egrep -i "$id\_.*[0-9]+(_prepare\"|_convert)?" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
180 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
181 OLD_OSW_PARAM=$(cat $OPENMSGIT/src/tests/topp/CMakeLists.txt |sed 's/#.*$//'| sed 's/^\s*//; s/\s*$//' |awk '{printf("%s@NEWLINE@", $0)}' | sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | grep OLD_OSW_PARAM | head -n 1 | sed 's/^[^"]\+//; s/)$//; s/"//g') | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
182 # TODO SiriusAdapter depends on online service which may timeout .. so keep disabled https://github.com/OpenMS/OpenMS/pull/5010 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
183 cat $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
184 sed "s/\${OLD_OSW_PARAM}/$OLD_OSW_PARAM/" | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
185 grep -v "\.ini\.json" | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
186 sed 's/.ini.json /ini /' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
187 sed 's/#.*$//'| | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
188 sed 's/^\s*//; s/\s*$//' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
189 grep -v "^$" | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
190 awk '{printf("%s@NEWLINE@", $0)}' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
191 sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
192 sed 's/degenerate_cases\///' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
193 egrep -v "WRITEINI|WRITECTD|INVALIDVALUE|DIFF" | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
194 grep add_test | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
195 egrep "TOPP|UTILS" | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
196 sed 's@${DATA_DIR_SHARE}/@@g;'| | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
197 sed 's@${TMP_RIP_PATH}@./@g'| | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
198 sed 's@TOFCalibration_ref_masses @TOFCalibration_ref_masses.txt @g; s@TOFCalibration_const @TOFCalibration_const.csv @'| | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
199 sed 's/\("TOPP_SiriusAdapter_4".*\)-sirius:database all\(.*\)/\1-sirius:database pubchem\2/' | | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
200 while read line | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
201 do | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
202 test_id=$(echo "$line" | sed 's/add_test(//; s/"//g; s/)[^)]*$//; s/\${TOPP_BIN_PATH}\///g;s/\${DATA_DIR_TOPP}\///g; s#THIRDPARTY/##g' | cut -d" " -f1) | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
203 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
204 if grep -lq "$test_id"'\".* PROPERTIES WILL_FAIL 1' $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake; then | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
205 >&2 echo " skip failing "$test_id | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
206 continue | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
207 fi | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
208 | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
209 line=$(echo "$line" | sed 's/add_test("//; s/)[^)]*$//; s/\${TOPP_BIN_PATH}\///g;s/\${DATA_DIR_TOPP}\///g; s#THIRDPARTY/##g' | cut -d" " -f2-) | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
210 # line="$(fix_tmp_files $line)" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
211 echo 'echo executing "'$test_id'"' | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
212 echo "$line > $test_id.stdout 2> $test_id.stderr" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
213 echo "if [[ \"\$?\" -ne \"0\" ]]; then >&2 echo '$test_id failed'; >&2 echo -e \"stderr:\n\$(cat $test_id.stderr | sed 's/^/ /')\"; echo -e \"stdout:\n\$(cat $test_id.stdout)\";fi" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
214 done | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
215 } | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
216 | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
217 echo "Create test shell script" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
218 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
219 echo -n "" > prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
220 echo 'export COMET_BINARY="comet"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
221 echo 'export CRUX_BINARY="crux"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
222 echo 'export FIDOCHOOSEPARAMS_BINARY="FidoChooseParameters"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
223 echo 'export FIDO_BINARY="Fido"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
224 echo 'export LUCIPHOR_BINARY="$(dirname $(realpath $(which luciphor2)))/luciphor2.jar"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
225 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
226 echo 'export MARACLUSTER_BINARY="'"$OPENMSGIT"'/THIRDPARTY/Linux/64bit/MaRaCluster/maracluster"'>> prepare_test_data.sh | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
227 echo 'export MSFRAGGER_BINARY="/home/berntm/Downloads/MSFragger-3.5/MSFragger-3.5.jar"'>> prepare_test_data.sh | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
228 echo 'export MSGFPLUS_BINARY="$(msgf_plus -get_jar_path)"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
229 echo 'export MYRIMATCH_BINARY="myrimatch"'>> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
230 echo 'export NOVOR_BINARY="/home/berntm/Downloads/novor/lib/novor.jar"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
231 echo 'export PERCOLATOR_BINARY="percolator"'>> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
232 echo 'export SIRIUS_BINARY="$(which sirius)"' >> prepare_test_data.sh | 
| 
6
 
9a6e3bb0f358
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
5 
diff
changeset
 | 
233 echo 'export SPECTRAST_BINARY="'"$OPENMSGIT"'/THIRDPARTY/Linux/64bit/SpectraST/spectrast"' >> prepare_test_data.sh | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
234 echo 'export XTANDEM_BINARY="xtandem"' >> prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
235 echo 'export THERMORAWFILEPARSER_BINARY="ThermoRawFileParser.exe"' >> prepare_test_data.sh | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
236 echo 'export SAGE_BINARY=sage' >> prepare_test_data.sh | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
237 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
238 prepare_test_data >> prepare_test_data.sh #tmp_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
239 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
240 echo "Execute test shell script" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
241 chmod u+x prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
242 cd ./test-data || exit | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
243 ../prepare_test_data.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
244 cd - || exit | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
245 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
246 | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
247 # ############################################################################### | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
248 # ## create/update test data for the manually generated tests | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
249 # ## - run convert once with the manual tests only and | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
250 # ## - update test-data (needs to run 2x) | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
251 # ############################################################################### | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
252 echo "Execute test shell script for manually curated tests" | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
253 chmod u+x prepare_test_data_manual.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
254 cd ./test-data || exit | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
255 ../prepare_test_data_manual.sh | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
256 cd - || exit | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
257 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
258 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
259 ############################################################################### | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
260 ## auto generate tests | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
261 ############################################################################### | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
262 | 
| 
5
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
263 echo "Write test macros to $autotests" | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
264 echo "<macros>" > "$autotests" | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
265 | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
266 for i in $(ls ctd/*ctd) | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
267 do | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
268 b=$(basename "$i" .ctd) | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
269 ./get_tests.py --id "$b" --cmake "$OPENMSGIT"/src/tests/topp/CMakeLists.txt "$OPENMSGIT"/src/tests/topp/THIRDPARTY/third_party_tests.cmake >> "$autotests" | 
| 
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
270 wc -l "$autotests" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
271 done | 
| 
5
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
272 echo "</macros>" >> "$autotests" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
273 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
274 # tests for tools using output_prefix parameters can not be auto generated | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
275 # hence we output the tests for manual curation in macros_test.xml | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
276 # and remove them from the autotests | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
277 # -> OpenSwathFileSplitter IDRipper MzMLSplitter SeedListGenerator | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
278 # TODO reevaluate in >2.8 | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
279 # - https://github.com/OpenMS/OpenMS/pull/5873 | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
280 # - https://github.com/OpenMS/OpenMS/pull/5912 | 
| 
5
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
281 # | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
282 # Furthermore we remove tests for tools without binaries in conda | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
283 # -> MSFragger MaRaClusterAdapter NovorAdapter | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
284 # | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
285 # not able to specify composite test data | 
| 
 
e38e1a7af019
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit f5fcdd54599554099fb00b1973cc91a766ad246a"
 
galaxyp 
parents: 
4 
diff
changeset
 | 
286 # -> SpectraSTSearchAdapter | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
287 echo "Discard some tests" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
288 if [[ ! -z "$1" ]]; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
289 echo "" > macros_discarded_auto.xml | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
290 for i in OpenSwathFileSplitter IDRipper MzMLSplitter SeedListGenerator MSFraggerAdapter MaRaClusterAdapter NovorAdapter SpectraSTSearchAdapter | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
291 do | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
292 echo "<xml name=\"manutest_$i\">" >> macros_discarded_auto.xml | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
293 xmlstarlet sel -t -c "/macros/xml[@name='autotest_$i']/test" macros_autotest.xml >> macros_discarded_auto.xml | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
294 echo "</xml>" >> macros_discarded_auto.xml | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
295 xmlstarlet ed -d "/macros/xml[@name='autotest_$i']/test" macros_autotest.xml > tmp | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
296 mv tmp macros_autotest.xml | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
297 done | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
298 >&2 echo "discarded autogenerated macros for curation in macros_discarded_auto.xml" | 
| 
4
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
299 fi | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
300 conda deactivate | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
301 | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
302 ## remove broken symlinks in test-data | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
303 find test-data/ -xtype l -delete | 
| 
 
81402a5e4173
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
304 | 
| 
9
 
cf9b51c0b15e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
 
galaxyp 
parents: 
8 
diff
changeset
 | 
305 if [[ "$created" == "yes" ]]; then | 
| 
8
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
306 echo "Removing temporary directory" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
307 rm -rf "$tmp" | 
| 
 
87dda030bc92
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
 
galaxyp 
parents: 
6 
diff
changeset
 | 
308 fi | 
