Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atom index in af.prep.prep_pdb #139

Open
data2code opened this issue May 10, 2023 · 1 comment
Open

atom index in af.prep.prep_pdb #139

data2code opened this issue May 10, 2023 · 1 comment

Comments

@data2code
Copy link

In the prep_pdb.py file, line 434

    im = ignore_missing[n] if isinstance(ignore_missing,list) else ignore_missing
    if im:
      r = batch["all_atom_mask"][:,0] == 1  #<===== THIS LINE
      batch = jax.tree_map(lambda x:x[r], batch)
      residue_index = batch["residue_index"] + last

Should not one use batch["all_atom_mask"][1], if we want to check if Ca is present? The 0th atom is for N according to residue_constants.atom_types.

Thanks!

@sokrypton
Copy link
Owner

sokrypton commented May 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants