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
1837c4d9
Commit
1837c4d9
authored
Jan 22, 2026
by
cassandra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] correct files for both UNL and UNK ligands
parent
63d7e209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/tools/ligand_tools.py
+9
-3
No files found.
src/tools/ligand_tools.py
View file @
1837c4d9
...
...
@@ -126,9 +126,15 @@ def param_ligand(sandbox_dir: str, ligand_files: str | list[str], ligand_name: s
logger
.
info
(
f
"Mol2 file for ligand {ligand_stem} created"
)
cmd
=
shlex
.
split
(
f
"sed -i 's/UNL/{ligand_name}/g' {sandbox_dir}/{ligand_stem}.mol2"
)
run_3
=
subprocess
.
run
(
cmd
,
cwd
=
sandbox_dir
,
capture_output
=
True
,
text
=
True
)
if
run_3
.
returncode
!=
0
:
error_text
=
"
\n
"
.
join
(
filter
(
None
,
[
run_3
.
stderr
,
run_3
.
stdout
]))
run_3_UNL
=
subprocess
.
run
(
cmd
,
cwd
=
sandbox_dir
,
capture_output
=
True
,
text
=
True
)
if
run_3_UNL
.
returncode
!=
0
:
error_text
=
"
\n
"
.
join
(
filter
(
None
,
[
run_3_UNL
.
stderr
,
run_3_UNL
.
stdout
]))
return
f
"Ligand parameterization failed with error: {error_text}"
cmd
=
shlex
.
split
(
f
"sed -i 's/UNK/{ligand_name}/g' {sandbox_dir}/{ligand_stem}.mol2"
)
run_3_UNK
=
subprocess
.
run
(
cmd
,
cwd
=
sandbox_dir
,
capture_output
=
True
,
text
=
True
)
if
run_3_UNK
.
returncode
!=
0
:
error_text
=
"
\n
"
.
join
(
filter
(
None
,
[
run_3_UNK
.
stderr
,
run_3_UNK
.
stdout
]))
return
f
"Ligand parameterization failed with error: {error_text}"
# Create prepi file using antechamber
...
...
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