pub trait LMPNNFeatures {
// Required methods
fn encode_amino_acids(&self, device: &Device) -> Result<Tensor>;
fn featurize(&self, device: &Device) -> Result<ProteinFeatures>;
fn get_res_index(&self) -> Vec<u32>;
fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>;
fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>;
fn to_numeric_ligand_atoms(
&self,
device: &Device,
) -> Result<(Tensor, Tensor, Tensor)>;
fn to_pdb(&self);
}
Expand description
Convert the AtomCollection into a struct that can be passed to a model.
Required Methods§
fn encode_amino_acids(&self, device: &Device) -> Result<Tensor>
fn featurize(&self, device: &Device) -> Result<ProteinFeatures>
fn get_res_index(&self) -> Vec<u32>
fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>
fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>
fn to_numeric_ligand_atoms( &self, device: &Device, ) -> Result<(Tensor, Tensor, Tensor)>
fn to_pdb(&self)
Implementations on Foreign Types§
source§impl LMPNNFeatures for AtomCollection
impl LMPNNFeatures for AtomCollection
Methods for Convering an AtomCollection into a LigandMPNN-ready datasets
source§fn encode_amino_acids(&self, device: &Device) -> Result<Tensor>
fn encode_amino_acids(&self, device: &Device) -> Result<Tensor>
Return a 2D tensor of [1, seqlength]
source§fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>
fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>
create numeric Tensor of shape [1,
source§fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>
fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>
create numeric Tensor of shape [