-
Notifications
You must be signed in to change notification settings - Fork 1
/
runTest1.sh
20 lines (14 loc) · 956 Bytes
/
runTest1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# install required packages
apt-get update -y && apt-get install -y --no-install-recommends wget ca-certificates
# prepare test input files
mkdir /tmp/testfiles
wget -O /tmp/testfiles/2500_47.4328704_175.0237_.txt https://github.com/phnmnl/container-cfmid/raw/develop/testfiles/2500_47.4328704_175.0237_.txt
wget -O /tmp/testfiles/hmdb_2017-07-23.csv https://github.com/phnmnl/container-cfmid/raw/develop/testfiles/hmdb_2017-07-23.csv
# perform test
/usr/local/bin/cfmid.r input=/tmp/testfiles/2500_47.4328704_175.0237_.txt databaseFile=/tmp/testfiles/hmdb_2017-07-23.csv output=/tmp/testfiles/output.txt candidate_id=Identifier candidate_inchi_smiles=SMILES candidate_mass=MonoisotopicMass databaseNameColumn=Name databaseInChIColumn=InChI realName=2500_47.4328704_175.0237_.txt ppmPrecursor=10000
# check output
if [ ! -f /tmp/testfiles/output.txt ]; then
echo "Error: Output file /tmp/testfiles/output.txt not found"
exit 1
fi