Skip to content

'DataFrame' object has no attribute ‘oligomeric_detail’ when training on custom PDBs #25

@ntoxeg

Description

@ntoxeg

After processing some PDB files from PINDER with process_pdb_files.py when running the training I get

python -W ignore experiments/train_se3_flows.py data.dataset=pdb
Error executing job with overrides: ['data.dataset=pdb']
Traceback (most recent call last):
  File "/home/greg/protein-frame-flow/experiments/train_se3_flows.py", line 111, in main
    exp = Experiment(cfg=cfg)
  File "/home/greg/protein-frame-flow/experiments/train_se3_flows.py", line 28, in __init__
    self._setup_dataset()
  File "/home/greg/protein-frame-flow/experiments/train_se3_flows.py", line 43, in _setup_dataset
    self._train_dataset, self._valid_dataset = eu.dataset_creation(
  File "/home/greg/protein-frame-flow/experiments/utils.py", line 179, in dataset_creation
    train_dataset = dataset_class(
  File "/home/greg/protein-frame-flow/data/datasets.py", line 332, in __init__
    metadata_csv = self._filter_metadata(self.raw_csv)
  File "/home/greg/protein-frame-flow/data/datasets.py", line 356, in _filter_metadata
    raw_csv.oligomeric_detail.isin(filter_cfg.oligomeric)]
  File "/home/greg/miniconda3/envs/fm/lib/python3.10/site-packages/pandas/core/generic.py", line 5989, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute ‘oligomeric_detail'

While processing the script gives me warnings of UserWarning: Unlikely unit cell vectors detected in PDB file likely resulting from a dummy CRYST1 record. Discarding unit cell vectors. I’ve only found some old issue in the library’s repository but it seems it got solved years ago.

A side question, what do I need to do to make a .clusters file, as that doesn’t seem to get produced by the script either?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions