[Biopython-dev] [Bug 1753] New: Bio.PDB: parse_pdb_header.py last
mod'd 9/05/2004
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Wed Feb 23 15:11:00 EST 2005
http://bugzilla.open-bio.org/show_bug.cgi?id=1753
Summary: Bio.PDB: parse_pdb_header.py last mod'd 9/05/2004
Product: Biopython
Version: Not Applicable
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Other
AssignedTo: biopython-dev at biopython.org
ReportedBy: dgaffney at uvm.edu
parse_pdb_header() def takes a file handle according to the FAQ doc; the code
looks like it wants to open a filename. Might change line 111-120 to accept a
filename, keeping in mind that the FAQ should be changed too as well as the
__main__ test function (see further below):
***** PROPOSED CHANGE AT LINE 111-120:
def parse_pdb_header(fname):
"""
Returns the header lines of a pdb file as a dictionary.
Dictionary keys are: head, deposition_date, release_date, structure_method,
resolution, structure_reference, journal_reference, author and
compound.
"""
header=[]
f=open(fname,'r')
***** PROPOSED CHANGE AT LINES 252-257:
if __name__=='__main__':
"""
Reads a PDB file passed as argument, parses its header, extracts
some data and returns it as a dictionary.
"""
dict = parse_pdb_header(sys.argv[1])
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list