Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DynaMate
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
DynaMate
Commits
1315866d
Commit
1315866d
authored
Jan 23, 2026
by
cassandra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cleanup] small cleanup
parent
b5cf2510
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
src/agents/md_agent.py
+1
-2
src/constants.py
+2
-2
src/scripts/equil_Gromacs.sh
+3
-3
No files found.
src/agents/md_agent.py
View file @
1315866d
...
...
@@ -372,8 +372,7 @@ class MDAgent(BaseAgent):
if
self
.
ligand_name
and
success
:
user_prompt
=
"
\n
==========
\n
Would 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..."
)
...
...
src/constants.py
View file @
1315866d
...
...
@@ -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
src/scripts/equil_Gromacs.sh
View file @
1315866d
...
...
@@ -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]
}
\n
q"
|
$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
\n
q"
|
$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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment