pub struct Protein {
pub source: PathBuf,
pub title: String,
pub atoms: Vec<Atom>,
pub residues: Vec<Residue>,
pub trace: Vec<TraceSegment>,
pub center: Vec3,
pub radius: f32,
pub residue_count: usize,
pub chains: Vec<String>,
pub mean_b_factor: f32,
pub is_prediction: bool,
}Fields§
§source: PathBuf§title: String§atoms: Vec<Atom>§residues: Vec<Residue>§trace: Vec<TraceSegment>§center: Vec3§radius: f32§residue_count: usize§chains: Vec<String>§mean_b_factor: f32§is_prediction: boolImplementations§
Source§impl Protein
impl Protein
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, String>
pub fn from_pdb_str( text: &str, source: impl AsRef<Path>, ) -> Result<Self, String>
pub fn summary(&self) -> String
Sourcepub fn confidence(&self, b_factor: f32) -> f32
pub fn confidence(&self, b_factor: f32) -> f32
Returns a confidence value on the conventional 0-100 pLDDT scale. Early ESM Atlas structures store confidence in the PDB B-factor column as 0-1, while newer ESMFold outputs commonly use 0-100.
pub fn mean_confidence(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Protein
impl RefUnwindSafe for Protein
impl Send for Protein
impl Sync for Protein
impl Unpin for Protein
impl UnsafeUnpin for Protein
impl UnwindSafe for Protein
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more