-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated master directory to include the neccessary filestructure, sub…
…mission script, and instructions.
- Loading branch information
1 parent
165ccff
commit 0cc08fc
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |