Commit 1315866d by cassandra

[cleanup] small cleanup

parent b5cf2510
......@@ -372,8 +372,7 @@ class MDAgent(BaseAgent):
if self.ligand_name and success:
user_prompt = "\n==========\nWould you like me to calculate the free energy of binding for your protein-ligand system using the MMPBSA tool? (yes/no) \n\n"
# user_answer = input(user_prompt).strip().lower()
user_answer = "yes"
user_answer = input(user_prompt).strip().lower()
if user_answer in ("yes", "y"):
self.logger.info("Running MMPBSA calculation...")
......
......@@ -16,4 +16,4 @@ DATA_DIR = Path(__file__).resolve().parent.parent / "sandbox"
AGENT_LOGS = Path(__file__).resolve().parent.parent / "agent_logs"
JSON_LOG_FILE = AGENT_LOGS / "agent_runs.jsonl"
MMPBSA_ENV_DIR = Path("/home/hackathon/miniforge3/envs/gmxMMPBSA/bin/gmx_MMPBSA")
\ No newline at end of file
MMPBSA_ENV_DIR = Path("/path/to/your/envs/mmpbsa")
\ No newline at end of file
......@@ -96,7 +96,7 @@ if grep -E "system1 +2" topol.top; then #special case for two identical chains n
echo "Adding group r_${ranges[0]} to index.ndx" >> $LOG_FILE 2>&1
echo -e "ri ${ranges[0]}\nq" | $GMX make_ndx -f em.gro -n index.ndx -o index.ndx >> $LOG_FILE 2>&1
fi
if grep -Fq "[ Protein-H_&_r_${ranges[0]} ]" index.ndx; then # -F for fixed string (so can use [] without putting "^\[ r_${ranges[0]} \]", -q for quiet)
if grep -Fq "[ Protein-H_&_r_${ranges[0]} ]" index.ndx; then
echo "Group Protein-H_&_r_${ranges[0]} already exists in index.ndx" >> $LOG_FILE 2>&1
else
echo "Adding group Protein-H_&_r_${ranges[0]} to index.ndx" >> $LOG_FILE 2>&1
......@@ -105,13 +105,13 @@ if grep -E "system1 +2" topol.top; then #special case for two identical chains n
else
i=1
for range in "${ranges[@]}"; do
if grep -Fq "[ r_$range ]" index.ndx; then # -F for fixed string (so can use [] without putting "^\[ r_${ranges[0]} \]", -q for quiet)
if grep -Fq "[ r_$range ]" index.ndx; then
echo "Group r_$range already exists in index.ndx" >> $LOG_FILE 2>&1
else
echo "Adding group r_$range to index.ndx" >> $LOG_FILE 2>&1
echo -e "ri $range\nq" | $GMX make_ndx -f em.gro -n index.ndx -o index.ndx >> $LOG_FILE 2>&1
fi
if grep -Fq "[ Protein-H_&_r_$range ]" index.ndx; then # -F for fixed string (so can use [] without putting "^\[ r_${ranges[0]} \]", -q for quiet)
if grep -Fq "[ Protein-H_&_r_$range ]" index.ndx; then
echo "Group Protein-H_&_r_$range already exists in index.ndx" >> $LOG_FILE 2>&1
else
echo "Adding group Protein-H_&_r_$range to index.ndx" >> $LOG_FILE 2>&1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment