Skip to content

Commit

Permalink
Working on am1bcc charges to handle charged residues
Browse files Browse the repository at this point in the history
  • Loading branch information
meister committed Jul 25, 2024
1 parent d005b25 commit 60ecf88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/lisp/cando/charges/am1bcc.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,13 @@
(defun sqm-executable ()
(probe-file "amber:bin;sqm"))

(defun calculate-am1-bcc-charges (aggregate &key (maxcyc 9999) verbose)
"Calculate Am1-Bcc charges and add the results to the aggregate."
(defun calculate-am1-bcc-charges (aggregate &key (maxcyc 9999) verbose (tmpdir #P"/tmp/"))
"Calculate Am1-Bcc charges and add the results to the aggregate. Write sqm files into tmpdir"
(let* ((bcc (calculate-bcc-corrections aggregate))
(input-filename (sys:mkstemp "/tmp/sqm-input-"))
(output-filename (sys:mkstemp "/tmp/sqm-output-"))
(order (charges:write-sqm-calculation (open input-filename :direction :output) aggregate
(input-filename (sys:mkstemp (format nil "~asqm-input-" (namestring tmpdir))))
(output-filename (sys:mkstemp (format nil "~asqm-output-" (namestring tmpdir))))
(order (charges:write-sqm-calculation (open input-filename :direction :output)
aggregate
:maxcyc maxcyc))
(sqm-executable (sqm-executable))
(args (list "-O"
Expand Down
3 changes: 2 additions & 1 deletion src/lisp/cando/charges/packages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@
#:read-am1-charges
#:read-mopac-am1-charges
#:calculate-charge-trainers
#:dump-residue-charges))
#:dump-residue-charges
#:residue-charges))

0 comments on commit 60ecf88

Please sign in to comment.