pub struct ProteinFeatures { /* private fields */ }Implementations§
Source§impl ProteinFeatures
impl ProteinFeatures
pub fn get_coords(&self) -> &Tensor
pub fn get_sequence(&self) -> &Tensor
pub fn get_sequence_mask(&self) -> Option<&Tensor>
pub fn get_residue_index(&self) -> &Tensor
pub fn get_encoded( &self, ) -> Result<(Vec<String>, HashMap<String, usize>, HashMap<usize, String>)>
pub fn get_encoded_tensor( &self, fixed_residues: String, device: &Device, ) -> Result<Tensor>
pub fn get_chain_mask_tensor( &self, chains_to_design: Vec<String>, device: &Device, ) -> Result<Tensor>
pub fn update_mask(&mut self, tensor: Tensor) -> Result<()>
pub fn create_bias_tensor(&self, bias_aa: Option<String>) -> Result<Tensor>
pub fn save_to_safetensor(&self, path: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for ProteinFeatures
impl !RefUnwindSafe for ProteinFeatures
impl Send for ProteinFeatures
impl Sync for ProteinFeatures
impl Unpin for ProteinFeatures
impl UnsafeUnpin for ProteinFeatures
impl !UnwindSafe for ProteinFeatures
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more