wangjin2000 commited on
Commit
df11491
·
verified ·
1 Parent(s): e2396c3

Update plot_pdb.py

Browse files
Files changed (1) hide show
  1. plot_pdb.py +1 -13
plot_pdb.py CHANGED
@@ -77,19 +77,7 @@ def get_pdb(sequence):
77
  def plot_struc(sequence):
78
 
79
  pdb_string, pdb_filename = get_pdb(sequence)
80
-
81
- '''
82
- name = sequence[:3] + sequence[-3:] #combine the firt and last 3 AAs of sequence as a filename.
83
-
84
- outpath = (
85
- Path.cwd() / f"PDB-{name}.pdb")
86
-
87
- with open(outpath.name, "w") as f:
88
- f.write(pdb_string)
89
-
90
- outpath_str = str(outpath)
91
- '''
92
 
93
- html_view = display_pdb_by_pdb(pdb_string, pdb_filename)
94
 
95
  return pdb_filename, html_view
 
77
  def plot_struc(sequence):
78
 
79
  pdb_string, pdb_filename = get_pdb(sequence)
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
+ html_view = display_pdb_by_pdb(pdb_string, pdb_filename. color_map = "spectrum")
82
 
83
  return pdb_filename, html_view