mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 13:43:47 +08:00
Removed PDB parsing
This commit is contained in:
@ -68,14 +68,12 @@ class DSSP:
|
||||
|
||||
Note that DSSP can only handle one model.
|
||||
"""
|
||||
def __init__(self, pdb_file, dssp="dssp"):
|
||||
def __init__(self, model, pdb_file, dssp="dssp"):
|
||||
"""
|
||||
pdb_file --- a PDB file
|
||||
dssp --- the dssp executable (argument to os.system)
|
||||
"""
|
||||
p=PDBParser()
|
||||
s=p.get_structure("X", pdb_file)
|
||||
model=s[0]
|
||||
# create DSSP dictionary
|
||||
self.dssp_dict=dssp_dict_from_pdb_file(pdb_file, dssp)
|
||||
map={}
|
||||
@ -136,7 +134,12 @@ if __name__=="__main__":
|
||||
|
||||
import sys
|
||||
|
||||
d=DSSP(sys.argv[1])
|
||||
p=PDBParser()
|
||||
s=p.get_structure('X', sys.argv[1])
|
||||
|
||||
model=s[0]
|
||||
|
||||
d=DSSP(model, sys.argv[1])
|
||||
|
||||
for r in d.get_iterator():
|
||||
print r
|
||||
|
Reference in New Issue
Block a user