

set -ex



(ngsplotdb.py list 2>&1 | grep -qF "your ngs.plot database may be corrupted." || ngsplotdb.py list)
(ngs.plot.r | grep -qF "Visit https://github.com/shenlab-sinai/ngsplot/wiki/ProgramArguments101 for details" || ngs.plot.r)
exit 0
