Commit 82ce81d0 by Peter Eastman

Added support for loading PDBx/mmCIF files

parent bbb8cfa8
The SEQRES records in this PDB file include residues that are missing from the atom data section. Do you want to add the missing residues?
The sequence records in this PDB file include residues that are missing from the atom data section. Do you want to add the missing residues?
<p>
<form id="mainform" method="post" action="/">
<table border="1" id="table">
......
......@@ -55,8 +55,12 @@ def startPageCallback(parameters, handler):
global fixer
if 'type' in parameters:
if parameters.getfirst('type') == 'local':
fixer = PDBFixer(pdbfile=parameters['pdbfile'].value.decode().splitlines())
fixer.source = parameters['pdbfile'].filename
filename = parameters['pdbfile'].filename
if filename.lower().endswith('.pdbx') or filename.lower().endswith('.cif'):
fixer = PDBFixer(pdbxfile=StringIO(parameters['pdbfile'].value.decode()))
else:
fixer = PDBFixer(pdbfile=parameters['pdbfile'].value.decode().splitlines())
fixer.source = filename
else:
id = parameters.getfirst('pdbid')
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment