fatmacankara commited on
Commit
f2540fb
·
1 Parent(s): 6683d00

Update code/add_3Dalignment.py

Browse files
Files changed (1) hide show
  1. code/add_3Dalignment.py +6 -1
code/add_3Dalignment.py CHANGED
@@ -229,12 +229,17 @@ def get_alignments_3D(identifier, model_num, pdb_path, pdbSequence, source, chai
229
  print(response)
230
  # Step 2: Parse the PDB file from memory
231
  atoms = [i for i in response.text.split('\n') if i.startswith('ATOM')]
 
232
  atoms = [i.split() for i in atoms]
233
  atoms = [i for i in atoms if (i[2] == 'CA' and i[4] == chain)]
 
 
234
  atomSequence = ''.join([three_to_one(i[3]) for i in atoms])
 
235
  coords = [[i[6] ,i[7] ,i[8]] for i in atoms]
 
236
  resnums_for_sasa = [i[5] for i in atoms]
237
- print(atoms)
238
  elif source == 'SWISSMODEL':
239
  atomSequence = ''
240
  coords = []
 
229
  print(response)
230
  # Step 2: Parse the PDB file from memory
231
  atoms = [i for i in response.text.split('\n') if i.startswith('ATOM')]
232
+ print(atoms)
233
  atoms = [i.split() for i in atoms]
234
  atoms = [i for i in atoms if (i[2] == 'CA' and i[4] == chain)]
235
+ print(atoms)
236
+
237
  atomSequence = ''.join([three_to_one(i[3]) for i in atoms])
238
+ print(atomSequence)
239
  coords = [[i[6] ,i[7] ,i[8]] for i in atoms]
240
+ print(coords)
241
  resnums_for_sasa = [i[5] for i in atoms]
242
+ print(resnums_for_sasa)
243
  elif source == 'SWISSMODEL':
244
  atomSequence = ''
245
  coords = []