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

PDBFixer not working some PDB file #227

Open
AhmetGG opened this issue Sep 2, 2021 · 5 comments
Open

PDBFixer not working some PDB file #227

AhmetGG opened this issue Sep 2, 2021 · 5 comments

Comments

@AhmetGG
Copy link

AhmetGG commented Sep 2, 2021

Hi,

Before running Openmm, I would like to edit some protein structure via PDBFixer. But while Fixer read some PDB, some are not read. What can I do in order to be read PDB structure? By the way PDB structure is a predicted model not cystral.

@swails
Copy link
Contributor

swails commented Sep 2, 2021

Without providing the PDB file that causes the problem there's really no way to diagnose. If there's a PDB from RCSB that fails to parse, you can just provide the code. Otherwise, can you attach it here so we can try to reproduce the problem?

@AhmetGG
Copy link
Author

AhmetGG commented Sep 2, 2021

Thank you so much for replying.I added this unreaded file in the following:
T1084.txt
I couldnt put this file as pdb so I can put it as txt.

@peastman
Copy link
Member

peastman commented Sep 2, 2021

Your file begins with several lines that aren't part of the PDB format.

PFRMAT TS
TARGET T1084
MODEL 1
PARENT N/A

You need to remove those lines, or else prefix each one with "REMARK" to indicate that it's a comment.

@raoufkeskes
Copy link

raoufkeskes commented Sep 16, 2021

for me fixer.addMissingAtoms() it is not working and showing KeyError: 'NDG'
the pdb code is : 3iyw

@Zuricho
Copy link

Zuricho commented Mar 21, 2023

for me fixer.addMissingAtoms() it is not working and showing KeyError: 'NDG' the pdb code is : 3iyw

I found a solution for your problem:

# replace nonstandard residues
fixer.findNonstandardResidues()
fixer.missingResidues = {}
fixer.replaceNonstandardResidues()

Set the missingResidues as blank, and continue with removeHeterogens will work.

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

5 participants