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§

source

fn featurize(&self, device: &Device) -> Result<ProteinFeatures>

source

fn to_numeric_backbone_atoms(&self, device: &Device) -> Result<Tensor>

source

fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>

source

fn to_numeric_ligand_atoms( &self, device: &Device, ) -> Result<(Tensor, Tensor, Tensor)>

source

fn to_pdb(&self)

Implementations on Foreign Types§

source§

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>

create numeric Tensor of shape [, 4, 3] where the 4 is N/CA/C/O

source§

fn to_numeric_atom37(&self, device: &Device) -> Result<Tensor>

create numeric Tensor of shape [, 37, 3]

source§

fn featurize(&self, device: &Device) -> Result<ProteinFeatures>

source§

fn to_numeric_ligand_atoms( &self, device: &Device, ) -> Result<(Tensor, Tensor, Tensor)>

source§

fn to_pdb(&self)

Implementors§