Benchmark 2¶
All shell command blocks begin at the folder root: benchmark_2
Description¶
benchmark_2 is the benchmark presented at:
WABI 2022
Data format¶
NODE line¶
NODE node_name contig_name multiplicity X_coord Y_coord
node_namein the graph, a contig is represented by 2 nodes :contig_name_Landcontig_name_Rcontig_namename of the contigmultiplicitynumber of occurrence of the contigsx= don’t know*= zero or more1= one or mores= one or more (start contig)1, 2, 3, ...exact number of occurrences
X_coordX coordinate used for the graphic representationY_coordY coordinate used for the graphic representation
LINK line¶
LINK node_name_1 node_name_2 type ident color sequence
node_name_*the 2 nodes that are linkedtypeintra: the 2 nodes belongs to the same contiginter: the 2 nodes come from different contigs
identidentifier used to display graphintra=contig_nameinter= link length
colorcolor of the linkintra= reflect the coverageinter= grey
sequenceATGC string of the link (*means link of size 0)
CONTIG line¶
CONTIG name coverage sequence
namename of the contigcoverageaverage coverage of the contigsequenceATGC string of the contig
Install & configurations¶
1. Python environment¶
You need to install
virtualenvpip install virtualenv
Create python virtual environment
./config/install_venv39.sh
Activate the environment
source .venv_39/bin/activate
Always make sure the environment is activated!
(.venv_39) # command lines may be prefix by the environment name
2. QUAST¶
QUAST is used to evaluate the scaffolding (and the pre-assembly).
One fix is automatically done in
.venv_39/lib/python3.9/site-packages/quast_libs/site_packages/jsontemplate/jsontemplate.py:
replacing
import cgibyimport html\((\times 1)\)replacing all
cgi.escapebyhtml.escape\((\times 6)\)see issue 157
sed -i 's/cgi/html/' .venv_39/lib/python3.9/site-packages/> quast_libs/site_packages/jsontemplate/jsontemplate.py
Usage¶
source the environment
source .venv_39/bin/activate
run the benchmark
python3.9 scripts/run_benchmark_2.py # [-h] see help
run QUAST evaluation
python3.9 scripts/evaluate_benchmark_2.py -d run/... # [-h] see help
extract stats in a tex table (e.g. for WABI2022 conference)
python3.9 scripts/stats_to_tex_wabi2022.py -d run/... # [-h] see help
generate figures with R
Rscript scripts/make_fig.R run/... # [-h] see help
Miscellaneous¶
remove
quastdirectories inrun/...find . -maxdepth 2 -type d -name 'quast' | xargs rm -rf