Trait ferritin_featurizers::LMPNNFeatures
source · pub trait LMPNNFeatures {
// Required methods
fn featurize(&self, device: &Device) -> Result<ProteinFeatures>;
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 featurize(&self, device: &Device) -> Result<ProteinFeatures>
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 to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>
fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>
create numeric Tensor of shape [
source§fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>
fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>
create numeric Tensor of shape [