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 save_to_safetensor(&self, path: &str) -> Result<()>
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>
Auto Trait Implementations§
impl Freeze for ProteinFeatures
impl !RefUnwindSafe for ProteinFeatures
impl Send for ProteinFeatures
impl Sync for ProteinFeatures
impl Unpin 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