Entering edit mode
5.3 years ago
Manvitha Reddy
▴
10
parser.get_structure() doesn't return any structure for some self-generated PDB files. It does work for some file but not all of them. I have checked several websites for the solution but couldn't find any.
def getModel(pdb_filename):
pdb_code = "pdb"
print(pdb_code,pdb_filename)
parser=PDBParser(QUIET=True)
structure = parser.get_structure(pdb_code, pdb_filename)
model = structure[0]
return model
This is my code. Please help.
Can you provide an example of a file that works and one that doesn’t?
These are the coordinates for the first AA in the file that is working.
These are the coordinates for the second conformation of the same amino acid in the same protein
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.