@@ -560,7 +560,7 @@ Specialize the foldamer argument to provide methods"))
560560 (t (error " Illegal value for monomer-subset ~s - must be NIL or a hash-table" ))))
561561
562562(defun maybe-update-shape-key-cache (assembler internals)
563- (error " How do I use internals " )
563+ (error " Don't use the shape-key-cahce in the monomer-shape " )
564564 (loop for oligomer-shape in (oligomer-shapes assembler)
565565 for rotamers-database = (rotamers-database oligomer-shape)
566566 for foldamer-name = (foldamer-name rotamers-database)
@@ -711,6 +711,7 @@ ENERGY-FUNCTION-FACTORY - If defined, call this with the aggregate to make the e
711711 when external-adjusts
712712 do (loop for adjust in external-adjusts
713713 do (initialize-adjustment adjust assembler))))
714+ #+ (or )
714715 (unless monomer-subset
715716 (error " I don't think I want to update the internals now that there isn't built in internals" )
716717 ; ; update the internals so we can build dihedral caches
@@ -903,47 +904,47 @@ ENERGY-FUNCTION-FACTORY - If defined, call this with the aggregate to make the e
903904
904905
905906
906- (defun build-atom-tree-external-coordinates* (assembler coords oligomer-shape maybe-orientation)
907+ (defun build-atom-tree-external-coordinates* (assembler assembler-internals coords oligomer-shape maybe-orientation)
907908 (let* ((orientation (orientation maybe-orientation assembler))
908909 (one-oligomer (oligomer oligomer-shape))
909910 (joints (gethash one-oligomer (root-map (joint-tree assembler)))))
910911 (when (null joints)
911912 (error " Could not find oligomer ~s in root-map ~s " one-oligomer (root-map (joint-tree assembler))))
912913 (with-orientation orientation
913914 (loop for joint in joints
914- do (update-xyz-coords assembler internals joint coords)))))
915+ do (update-xyz-coords assembler assembler- internals joint coords)))))
915916
916917
917- (defun build-atom-tree-for-monomer-shape-external-coordinates* (assembler coords oligomer-shape monomer-shape maybe-orientation)
918+ (defun build-atom-tree-for-monomer-shape-external-coordinates* (assembler assembler-internals coords oligomer-shape monomer-shape maybe-orientation)
918919 (let* ((orientation (orientation maybe-orientation assembler))
919920 (one-oligomer (oligomer oligomer-shape))
920921 (joints (gethash one-oligomer (root-map (joint-tree assembler)))))
921922 (when (null joints)
922923 (error " Could not find oligomer ~s in root-map ~s " one-oligomer (root-map (joint-tree assembler))))
923924 (with-orientation orientation
924925 (loop for joint in joints
925- do (update-xyz-coords assembler internals joint coords)))))
926+ do (update-xyz-coords assembler assembler- internals joint coords)))))
926927
927928
928- (defun adjust-atom-tree-external-coordinates (assembler coords oligomer-shape)
929+ (defun adjust-atom-tree-external-coordinates (assembler assembler-internals coords oligomer-shape)
929930 (let* ((pos (position oligomer-shape (oligomer-shapes assembler)))
930931 (atmol (elt (atmolecules (ataggregate assembler)) pos)))
931932 (loop for atres across (atresidues atmol)
932933 for adjustments = (gethash atres (external-adjustments (adjustments assembler)))
933934 do (loop for adjustment in adjustments
934- do (external-adjust adjustment assembler coords)))))
935+ do (external-adjust adjustment assembler assembler-internals coords)))))
935936
936- (defun adjust-all-atom-tree-external-coordinates (assembler coords)
937+ (defun adjust-all-atom-tree-external-coordinates (assembler assembler-internals coords)
937938 (loop for oligomer-shape in (oligomer-shapes assembler)
938- do (adjust-atom-tree-external-coordinates assembler coords oligomer-shape)))
939+ do (adjust-atom-tree-external-coordinates assembler assembler-internals coords oligomer-shape)))
939940
940941(defun build-all-atom-tree-external-coordinates-and-adjust (assembler coords)
941942 (loop for oligomer-shape in (oligomer-shapes assembler)
942- do (build-atom-tree-external-coordinates-and-adjust assembler coords oligomer-shape oligomer-shape)))
943+ do (build-atom-tree-external-coordinates-and-adjust assembler assembler-internals coords oligomer-shape oligomer-shape)))
943944
944- (defun build-atom-tree-external-coordinates-and-adjust (assembler coords oligomer-shape maybe-orientation)
945- (build-atom-tree-external-coordinates* assembler coords oligomer-shape maybe-orientation)
946- (adjust-atom-tree-external-coordinates assembler coords oligomer-shape))
945+ (defun build-atom-tree-external-coordinates-and-adjust (assembler assembler-internals coords oligomer-shape maybe-orientation)
946+ (build-atom-tree-external-coordinates* assembler assembler-internals coords oligomer-shape maybe-orientation)
947+ (adjust-atom-tree-external-coordinates assembler assembler-internals coords oligomer-shape))
947948
948949#+ (or )
949950(defun build-atresidue-atom-tree-external-coordinates (assembler atresidue coords)
@@ -1363,8 +1364,8 @@ Return the COORDS."
13631364 (let ((orientation (lookup-orientation assembler orientation)))
13641365 (when (and oligomer-shape (not orientationp))
13651366 (error " You must provide orientation when you provide oligomer-shape" ))
1366- (build-atom-tree-external-coordinates* assembler coords oligomer-shape orientation)
1367- (adjust-atom-tree-external-coordinates assembler coords oligomer-shape)
1367+ (build-atom-tree-external-coordinates* assembler assembler-internals coords oligomer-shape orientation)
1368+ (adjust-atom-tree-external-coordinates assembler assembler-internals coords oligomer-shape)
13681369 (when (local-frame-specs orientation)
13691370 (transform-externals-to-global-frame assembler oligomer-shape orientation coords))
13701371 )
@@ -1392,4 +1393,4 @@ Return the COORDS."
13921393 (joint0 (elt joints 0 )))
13931394 (with-orientation orientation
13941395 (update-xyz-coords assembler assembler-internals joint0 coords))
1395- (adjust-atom-tree-external-coordinates assembler coords oligomer-shape)))
1396+ (adjust-atom-tree-external-coordinates assembler assembler-internals coords oligomer-shape)))
0 commit comments