src/proteingnn/data.py
def featurize(self, pose: PoseType, atom_id: AtomIDType) -> List[Number]:
        """Annotate in accordance to sub-NodeFeaturizers and append outputs."""
        features = []
        for component in self.components:
            feature = component.featurize(pose, atom_id)
            features += feature

        if self.n_features:
            assert len(features) == self.n_features, \
                f'Irregular feature length. (storage: {self.n_features} v.s. current {len(features)})'
        else:
            self.n_features = len(features)

        return features
Annotate in accordance to sub-NodeFeaturizers and append outputs.
Annotate in accordance to sub-NodeFeaturizers and append outputs.
Annotate in accordance to sub - NodeFeaturizers and append outputs .
def featurize(self, pose: PoseType, atom_id: AtomIDType) -> List[Number]:
        features = []
        for component in self.components:
            feature = component.featurize(pose, atom_id)
            features += feature
        if self.n_features:
            assert len(features) == self.n_features, \
                f'Irregular feature length. (storage: {self.n_features} v.s. current {len(features)})'
        else:
            self.n_features = len(features)
        return features
def featurize ( self , pose : PoseType , atom_id : AtomIDType ) -> List [ Number ] : features = [ ] for component in self . components : feature = component . featurize ( pose , atom_id ) features += feature if self . n_features : assert len ( features ) == self . n_features , f'Irregular feature length. (storage: {self.n_features} v.s. current {len(features)})' else : self . n_features = len ( features ) return features
Annotate in accordance to sub-NodeFeaturizers and append outputs.
Annotate in accordance to sub - NodeFeaturizers and append outputs .
"""Annotate in accordance to sub-NodeFeaturizers and append outputs."""
self
pose
PoseType
atom_id
AtomIDType