Skip to content

Commit

Permalink
Updated master directory to include the neccessary filestructure, sub…
Browse files Browse the repository at this point in the history
…mission script, and instructions.
  • Loading branch information
bhaveshashok committed Jul 9, 2020
1 parent 165ccff commit 0cc08fc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions batch/params.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
center_x =
center_y =
center_z =

size_x =
size_y =
size_z =
35 changes: 35 additions & 0 deletions batch/submit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
echo "Batch Submission Script for AutoDock Vina, Bhavesh Ashok"
echo "github.com/bhaveshashok/AutoDockVina-BatchSubmission/"
echo "Please acknowledge your use of this script in your publication using the guidelines on the GitHub page!"


echo "Generating Configurations:"
for ligand in $(ls -1 $1/*.pdbqt)
do
#echo $ligand
name=$(echo $ligand | sed 's/.*\///;s/\..*//')
echo "Generating configuration for $name ..."
mkdir -p "$name"
cp $ligand $name
cp $2 $name
ligandfname=$(echo $ligand | sed 's/.*\///')
echo -en "receptor = $2\nligand = $ligandfname\n\n" > "$name/${name}_conf.txt"
cat $3 >> "$name/${name}_conf.txt"
echo "Done!"
done

echo "Success: Configurations generated"

echo "Submitting to Vina:"
for ligand in $(ls -1 $1/*.pdbqt)
do
name=$(echo $ligand | sed 's/.*\///;s/\..*//')
pushd $name
echo "Docking $name ..."
$("$4" --config "${name}_conf.txt" --log "${name}_log.txt")
popd
rm $ligand
echo "Done!"
done

echo "Success: Batch docked"

0 comments on commit 0cc08fc

Please sign in to comment.