Skip to content

Commit

Permalink
Merge branch 'main' of
Browse files Browse the repository at this point in the history
github.com:cando-developers/cando
  • Loading branch information
drmeister committed Nov 12, 2024
2 parents 4fd99c7 + 6797001 commit 393d763
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lisp/topology/packages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@
#:do-oligomer-shape
#:rotamer-shape-context-rotamers
#:mutate-oligomer-shape
#:build-rotamer-shape-map
#:ligand-oligomer-shape
#:receptor-oligomer-shape
#:orientations
Expand Down
9 changes: 9 additions & 0 deletions src/lisp/topology/shape.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,15 @@ OLIGOMER-SHAPE - An oligomer-shape (or permissible-rotamers - I think this is wr
(adjust-internals assembler oligomer-shape))


(defun build-rotamer-shape-map (oligomer)
"Build a monomer-to-monomer-shape-map of only rotamer-shapes.
The ROTAMER-INDEX slots of the ROTAMER-SHAPEs will be unbound on return."
(let ((new-monomer-shape-map (make-hash-table)))
(loop for monomer across (monomers oligomer)
for rotamer-shape = (make-rotamer-shape monomer oligomer)
do (setf (gethash monomer new-monomer-shape-map) rotamer-shape))
new-monomer-shape-map))

(defun build-mutant-monomer-shape-map (original-oligomer-shape oligomer)
"Build a monomer-to-monomer-shape-map using an ORIGINAL-OLIGOMER-SHAPE as a template and an OLIGOMER for the rotamer-shapes.
TOPOLOGY:RESIDUE-SHAPEs are used directly from the ORIGINAL-OLIGOMER-SHAPE because they are immutable and fresh TOPOLOGY:ROTAMER-SHAPEs
Expand Down

0 comments on commit 393d763

Please sign in to comment.