#!/bin/bash

############################################################################
# Copyright (c) 2023-2024 SPAdes team
# Copyright (c) 2015-2022 Saint Petersburg State University
# Copyright (c) 2011-2014 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################

set -e
pushd ../../../

rm -rf /tmp/data/output/spades_output/ECOLI_SC_JGI_LANE_7_PRENORM

#./spades_compile.sh
./spades.py --sc -m 160 -k 21,33,55 --12 data/input/E.coli/jgi_lane_7/prenormalized/Eco_no7.subsample.contam.artifact.clean.fastq -o /tmp/data/output/spades_output/ECOLI_SC_JGI_LANE_7_PRENORM

rm -rf ~/quast-1.3/ECOLI_SC_JGI_LANE_7_PRENORM/

python ~/quast-1.3/quast.py -R data/input/E.coli/MG1655-K12.fasta.gz -G data/input/E.coli/genes/genes.gff -O data/input/E.coli/genes/operons.gff -o ~/quast-1.3/ECOLI_SC_JGI_LANE_7_PRENORM/ /tmp/data/output/spades_output/ECOLI_SC_JGI_LANE_7_PRENORM/contigs.fasta

python src/test/teamcity/assess.py ~/quast-1.3/ECOLI_SC_JGI_LANE_7_PRENORM/transposed_report.tsv 115000 4 4240 99.8 4 0.8
exitlvl=$?
popd

