Skip to content

[BUG] RFD3 might have problems in reading PDB format file with HETATM inside. #365

Description

@Huilin-Li

Describe the bug
My target protein has a phospho group at position 12. I use its PDB format file as the input. But I got an error like:

ValidationError: 1 validation error for DesignInputSpecification
  Value error, [component=A12] Residue A12 not found in atom array. [type=value_error, input_value={'input': '/home/huilinli...lse, atoms=0, tokens=0)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.13/v/value_error

To Reproduce
Here, I use one of your example CD3e.cif to reproduce this bug:

  1. open CD3e.cif in PyMol, and save a new file as CD3e.pdb
  2. .yaml file is
hetatm_test:
  input: (path)/CD3e.pdb
  contig: 100-110,/0,A1-13
  redesign_motif_sidechains: false
  is_non_loopy: true
  1. .sh file is
#!/bin/bash

# activate environment
source ~/miniconda3/etc/profile.d/conda.sh
conda activate RFD3_foundry

export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH


rfd3 design \
  out_dir="(path)/test_outputs" \
  inputs="(path)/test.yaml" \
  n_batches=3 \
  diffusion_batch_size=1 \
  dump_trajectories=1

I got the error:

ValidationError: 1 validation error for DesignInputSpecification
  Value error, [component=A3] Residue A3 not found in atom array. [type=value_error, input_value={'input': '/home/huilinli...lse, atoms=0, tokens=0)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.13/v/value_error

However, if I use CD3e.cif, RFD3 works.
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

CD3e.pdb

Additional context
Add any other details that are useful for understanding the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

RFdiffusion3Issues related to RFD3bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions