comparison generate.sh @ 17:6f6c1cb968a0 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3cafa1cc1ea87eb7a0dc0e7aae013780c3565178"
author galaxyp
date Sat, 05 Dec 2020 19:49:57 +0000
parents ae60d589fc0f
children 6daaa75ccb99
comparison
equal deleted inserted replaced
16:b4d8ee7c503c 17:6f6c1cb968a0
4 FILETYPES="filetypes.txt" 4 FILETYPES="filetypes.txt"
5 PROFILE="20.05" 5 PROFILE="20.05"
6 ## FILETYPES_RE=$(grep -v "^#" $FILETYPES | grep -v "^$" | cut -f 1 -d" " | tr '\n' '|' | sed 's/|$//'| sed 's/|/\\|/g') 6 ## FILETYPES_RE=$(grep -v "^#" $FILETYPES | grep -v "^$" | cut -f 1 -d" " | tr '\n' '|' | sed 's/|$//'| sed 's/|/\\|/g')
7 7
8 export tmp=$(mktemp -d) 8 export tmp=$(mktemp -d)
9
9 export CTDCONVERTER="$tmp/CTDConverter" 10 export CTDCONVERTER="$tmp/CTDConverter"
10
11 ############################################################################### 11 ###############################################################################
12 ## reset old data 12 ## reset old data
13 ############################################################################### 13 ###############################################################################
14 # rm $(ls *xml |grep -v macros) 14 # rm $(ls *xml |grep -v macros)
15 # rm -rf ctd 15 # rm -rf ctd
54 ############################################################################### 54 ###############################################################################
55 55
56 find . -maxdepth 0 -name "[A-Z]*xml" -delete 56 find . -maxdepth 0 -name "[A-Z]*xml" -delete
57 source $(dirname $(which conda))/../etc/profile.d/conda.sh 57 source $(dirname $(which conda))/../etc/profile.d/conda.sh
58 conda activate $tmp/OpenMS$VERSION-env 58 conda activate $tmp/OpenMS$VERSION-env
59 python $CTDCONVERTER/convert.py galaxy -i ctd/*ctd -o ./ -s tools_blacklist.txt -f "$FILETYPES" -m macros.xml -t tool.conf -p hardcoded_params.json --test-macros macros_autotest.xml --test-macros-prefix autotest_ --test-macros macros_test.xml --test-macros-prefix manutest_ --tool-version $VERSION --tool-profile $PROFILE > convert.out 2> convert.err 59 python $CTDCONVERTER/convert.py galaxy -i ctd/*ctd -o ./ -s tools_blacklist.txt -f "$FILETYPES" -m macros.xml -t tool.conf -p hardcoded_params.json --test-macros macros_autotest.xml --test-macros-prefix autotest_ --test-macros macros_test.xml --test-macros-prefix manutest_ --tool-version $VERSION --tool-profile $PROFILE --bump-file bump.json > convert.out 2> convert.err
60 if [[ "$?" -ne "0" ]]; then >&2 echo 'CTD -> XML conversion failed'; >&2 echo -e "stderr:\n$(cat convert.err)"; fi 60 if [[ "$?" -ne "0" ]]; then >&2 echo 'CTD -> XML conversion failed'; >&2 echo -e "stderr:\n$(cat convert.err)"; fi
61 conda deactivate 61 conda deactivate
62 62
63 patch PepNovoAdapter.xml < PepNovoAdapter.patch 63 patch PepNovoAdapter.xml < PepNovoAdapter.patch
64 patch OMSSAAdapter.xml < OMSSAAdapter.patch 64 patch OMSSAAdapter.xml < OMSSAAdapter.patch
65 # this should not be necessary from 2.7 https://github.com/OpenMS/OpenMS/pull/5087
66 patch PSMFeatureExtractor.xml < PSMFeatureExtractor.patch
65 67
66 # https://github.com/OpenMS/OpenMS/pull/4984 68 # https://github.com/OpenMS/OpenMS/pull/4984
67 sed -i -e 's@http://www.openms.de/documentation/@http://www.openms.de/doxygen/release/2.6.0/html/@' ./*xml 69 sed -i -e 's@http://www.openms.de/documentation/@http://www.openms.de/doxygen/release/2.6.0/html/@' ./*xml
68 # https://github.com/OpenMS/OpenMS/pull/4984#issuecomment-702641976 70 # https://github.com/OpenMS/OpenMS/pull/4984#issuecomment-702641976
69 patch -p0 <404-urls.patch 71 patch -p0 <404-urls.patch