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