From 004f4513c8cd5cfffbf69484fb39a3d7bc98bd49 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 11 Sep 2020 16:17:57 +0530 Subject: shifting hardcoded figures to another level --- scripts/main.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/main.sh') diff --git a/scripts/main.sh b/scripts/main.sh index 68397fb..a165994 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -137,16 +137,18 @@ if [[ $dockingCheck == "true" ]]; then vina --receptor $proteinPath --ligand $ligandPath --config $config fi -if [[ $visualisations == "true" ]]; then - file=$(echo "$ligandPath" | cut -f 1 -d '.') - python3 /src/scripts/quick-ligand-protein.py -p $proteinPath -l "$(echo $file)_out.pdbqt" -fi + if [[ $interactions == "true" ]]; then python3 /src/scripts/get-best.py -p $proteinPath -l "$(echo $file)_out.pdbqt" python3 /src/plip/plipcmd.py -f best.pdb -qpxy python3 /src/scripts/get_dock_score.py -l "$(echo $file)_out.pdbqt" -p $proteinPath > report.md python3 /src/scripts/makeReport.py --input . >> report.md + if [[ $visualisations == "true" ]]; then + file=$(echo "$ligandPath" | cut -f 1 -d '.') + python3 /src/scripts/quick-ligand-protein.py -p $proteinPath -l "$(echo $file)_out.pdbqt" + python3 /src/scripts/add-pictures.py + fi pandoc -V geometry:margin=1in report.md --pdf-engine=xelatex -o $name.pdf fi -- cgit v1.2.3