#!/bin/sh

currdir=`pwd`
cd `dirname $(readlink -f $0)`

ln -s ../data/ ./data

# alias Rscript=~/R-versions/R-4.1.2/bin/Rscript

Rscript $(realpath ../XSeekerPreparator.R)  \
    -i $(realpath ../data/test.rdata)         \
    -m $(realpath ../data/models.R)                 \
    -c $(realpath ../data/SERUM_v2019Jan17.tabular) \
    -o $(realpath ../test.sqlite)                   \
    $@ \
|| true



rm -rf "./data"
cd "${currdir}"
