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