atom_tree_diffs¶
Bindings for core::import_pose::atom_tree_diffs namespace
-
class
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
AtomTreeDiff
¶ Bases:
pybind11_builtins.pybind11_object
An object wrapper for reading atom_tree_diff files, complete with embedded reference structures.
Only works with uncompressed files, because we have to be able to to random access (seekg) to pull out single structures in random order.
-
__delattr__
¶ Implement delattr(self, name).
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
(*args, **kwargs)¶ Overloaded function.
- __init__(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff) -> None
- __init__(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, filename: str) -> None
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
all_ref_poses
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff) → pyrosetta.rosetta.utility.vector1_std_shared_ptr_core_pose_Pose_t¶ Allows access to and mutation of (!) the references poses stored in this file. Use with caution.
This exists to allow setup on stored reference poses for properties that don’t get saved/restored in PDB format, like covalent constraints for enzyme design.C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::all_ref_poses() const –> const class utility::vector1<class std::shared_ptr<class core::pose::Pose>, class std::allocator<class std::shared_ptr<class core::pose::Pose> > > &
-
count
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str) → int¶ C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::count(const class std::basic_string<char> &) const –> int
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::get_ref_tags() const –> const class std::map<std::string, int, struct std::less<std::string >, class std::allocator<struct std::pair<const std::string, int> > > &
-
get_tag_score_map
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff) → pyrosetta.rosetta.std.map_std_string_unsigned_long¶ C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::get_tag_score_map() const –> const class std::map<std::string, unsigned long, struct std::less<std::string >, class std::allocator<struct std::pair<const std::string, unsigned long> > > &
-
has_ref_pose
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str) → bool¶ returns true if a reference struct with the given tag is present
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::has_ref_pose(const class std::basic_string<char> &) const –> bool
-
has_ref_tag
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str) → bool¶ C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::has_ref_tag(const class std::basic_string<char> &) const –> bool
-
has_tag
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str) → bool¶ True if a (non-reference) structure with the given tag is present in the file
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::has_tag(const class std::basic_string<char> &) const –> bool
-
read_file
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, filename: str) → None¶ C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::read_file(class std::basic_string<char>) –> void
-
read_pose
(*args, **kwargs)¶ Overloaded function.
- read_pose(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str, pose_out: pyrosetta.rosetta.core.pose.Pose) -> None
Reads the pose data from file and reconstructs the complete pose.
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::read_pose(const class std::basic_string<char> &, class core::pose::Pose &) –> void
- read_pose(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str, pose_out: pyrosetta.rosetta.core.pose.Pose, ref_pose: pyrosetta.rosetta.core.pose.Pose) -> None
Reads the pose data from file and reconstructs the complete pose, using the supplied reference pose.
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::read_pose(const class std::basic_string<char> &, class core::pose::Pose &, const class core::pose::Pose &) –> void
-
ref_pose_for
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff, tag: str) → pyrosetta.rosetta.core.pose.Pose¶ Returns the default reference pose for the given tag. Fails if none is available.
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::ref_pose_for(const class std::basic_string<char> &) –> class std::shared_ptr<const class core::pose::Pose>
-
scores
(self: pyrosetta.rosetta.core.import_pose.atom_tree_diffs.AtomTreeDiff) → pyrosetta.rosetta.utility.vector1_std_pair_std_string_std_map_std_string_double_std_less_std_string_std_allocator_std_pair_const_std_string_double_t¶ Return list of (pose tag, score sets) pairs for all poses, in file order.
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::scores() const –> const class utility::vector1<struct std::pair<std::string, class std::map<std::string, double, struct std::less<std::string >, class std::allocator<struct std::pair<const std::string, double> > > >, class std::allocator<struct std::pair<std::string, class std::map<std::string, double, struct std::less<std::string >, class std::allocator<struct std::pair<const std::string, double> > > > > > &
-
sort_by
(*args, **kwargs)¶ Overloaded function.
- sort_by(score_name: str, scores: pyrosetta.rosetta.utility.vector1_std_pair_std_string_std_map_std_string_double_std_less_std_string_std_allocator_std_pair_const_std_string_double_t) -> None
- sort_by(score_name: str, scores: pyrosetta.rosetta.utility.vector1_std_pair_std_string_std_map_std_string_double_std_less_std_string_std_allocator_std_pair_const_std_string_double_t, descending: bool) -> None
Utility function for selecting subsets of structures by score.
C++: core::import_pose::atom_tree_diffs::AtomTreeDiff::sort_by(const class std::basic_string<char> &, class utility::vector1<struct std::pair<class std::basic_string<char>, class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > >, class std::allocator<struct std::pair<class std::basic_string<char>, class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > > > > &, bool) –> void
-
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
dump_atom_tree_diff
(*args, **kwargs)¶ Overloaded function.
- dump_atom_tree_diff(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double, ref_pose_in: pyrosetta.rosetta.core.pose.Pose, pose: pyrosetta.rosetta.core.pose.Pose) -> None
- dump_atom_tree_diff(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double, ref_pose_in: pyrosetta.rosetta.core.pose.Pose, pose: pyrosetta.rosetta.core.pose.Pose, bb_precision: int) -> None
- dump_atom_tree_diff(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double, ref_pose_in: pyrosetta.rosetta.core.pose.Pose, pose: pyrosetta.rosetta.core.pose.Pose, bb_precision: int, sc_precision: int) -> None
- dump_atom_tree_diff(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double, ref_pose_in: pyrosetta.rosetta.core.pose.Pose, pose: pyrosetta.rosetta.core.pose.Pose, bb_precision: int, sc_precision: int, bondlen_precision: int) -> None
Encodes pose relative to ref_pose by noting which atom_tree DOFs are different.
C++: core::import_pose::atom_tree_diffs::dump_atom_tree_diff(class std::basic_ostream<char> &, const class std::basic_string<char> &, const class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > &, const class core::pose::Pose &, const class core::pose::Pose &, int, int, int) –> void
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
dump_reference_pose
(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double, pose: pyrosetta.rosetta.core.pose.Pose) → None¶ Embeds a reference pose as PDB coords + foldtree; will be used for reconstructing subsequent diffs.
C++: core::import_pose::atom_tree_diffs::dump_reference_pose(class std::basic_ostream<char> &, const class std::basic_string<char> &, const class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > &, const class core::pose::Pose &) –> void
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
dump_score_line
(out: pyrosetta.rosetta.std.ostream, pose_tag: str, scores: pyrosetta.rosetta.std.map_std_string_double) → None¶ Helper function for writing entries – not usually called by clients.
C++: core::import_pose::atom_tree_diffs::dump_score_line(class std::basic_ostream<char> &, const class std::basic_string<char> &, const class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > &) –> void
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
file_is_atom_tree_diff
(*args, **kwargs)¶ Overloaded function.
- file_is_atom_tree_diff(filename: str) -> bool
Test if given file is an atom_tree_diff
C++: core::import_pose::atom_tree_diffs::file_is_atom_tree_diff(const class std::basic_string<char> &) –> bool
- file_is_atom_tree_diff(in: pyrosetta.rosetta.std.istream) -> bool
Test if given stream is an atom_tree_diff
If everything goes right, after the call, the read position should be at the same place it was to start withC++: core::import_pose::atom_tree_diffs::file_is_atom_tree_diff(class std::basic_istream<char> &) –> bool
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
header_from_atom_tree_diff
(in: pyrosetta.rosetta.std.istream, pose_tag_out: str, scores_out: pyrosetta.rosetta.std.map_std_string_double) → bool¶ - Gets next tag and scores from the stream, or returns false if none.
- Call this to find desired structure, then call pose_from_atom_tree_diff().
C++: core::import_pose::atom_tree_diffs::header_from_atom_tree_diff(class std::basic_istream<char> &, class std::basic_string<char> &, class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > &) –> bool
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
map_of_weighted_scores
(pose: pyrosetta.rosetta.core.pose.Pose, sfxn: pyrosetta.rosetta.core.scoring.ScoreFunction, scores_out: pyrosetta.rosetta.std.map_std_string_double) → None¶ Helper for dump_atom_tree_diff(), fills map with weighted score terms.
C++: core::import_pose::atom_tree_diffs::map_of_weighted_scores(class core::pose::Pose &, const class core::scoring::ScoreFunction &, class std::map<class std::basic_string<char>, double, struct std::less<class std::basic_string<char> >, class std::allocator<struct std::pair<const class std::basic_string<char>, double> > > &) –> void
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
pose_from_atom_tree_diff
(in: pyrosetta.rosetta.std.istream, ref_pose: pyrosetta.rosetta.core.pose.Pose, pose: pyrosetta.rosetta.core.pose.Pose) → bool¶ - Sets pose = ref_pose and then starts modifying DOFs in pose to recreate a saved structure.
- Call after header_from_atom_tree_diff(). Returns false on error.
C++: core::import_pose::atom_tree_diffs::pose_from_atom_tree_diff(class std::basic_istream<char> &, const class core::pose::Pose &, class core::pose::Pose &) –> bool
-
pyrosetta.rosetta.core.import_pose.atom_tree_diffs.
rms_error_with_noise
(*args, **kwargs)¶ Overloaded function.
- rms_error_with_noise(ref_pose: pyrosetta.rosetta.core.pose.Pose) -> None
- rms_error_with_noise(ref_pose: pyrosetta.rosetta.core.pose.Pose, bb_precision: int) -> None
- rms_error_with_noise(ref_pose: pyrosetta.rosetta.core.pose.Pose, bb_precision: int, sc_precision: int) -> None
For use in deciding how many digits of precision you need when diffing an atom tree.
C++: core::import_pose::atom_tree_diffs::rms_error_with_noise(const class core::pose::Pose &, int, int) –> void