Spaces:
Sleeping
Sleeping
Commit
·
b137f6a
1
Parent(s):
883924b
Update code/add_3Dalignment.py
Browse files- code/add_3Dalignment.py +4 -3
code/add_3Dalignment.py
CHANGED
@@ -221,12 +221,11 @@ def get_alignments_3D(identifier, model_num, pdbSequence, source, chain, pdbID,
|
|
221 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
222 |
if mode == 1:
|
223 |
print('mode')
|
224 |
-
if source != '
|
225 |
-
|
226 |
print('spırce')
|
227 |
# Step 1: Fetch the PDB file
|
228 |
pdb_url = f"https://files.rcsb.org/download/{pdbID}.pdb"
|
229 |
-
|
230 |
response = requests.get(pdb_url)
|
231 |
response.raise_for_status() # Check for a successful response
|
232 |
|
@@ -237,6 +236,8 @@ def get_alignments_3D(identifier, model_num, pdbSequence, source, chain, pdbID,
|
|
237 |
atomSequence = ''.join([three_to_one(i[3]) for i in atoms])
|
238 |
coords = [[i[6] ,i[7] ,i[8]] for i in atoms]
|
239 |
resnums_for_sasa = [i[5] for i in atoms]
|
|
|
|
|
240 |
else:
|
241 |
pdb_url = f"https://files.rcsb.org/download/{pdbID}.pdb"
|
242 |
|
|
|
221 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
222 |
if mode == 1:
|
223 |
print('mode')
|
224 |
+
if source != 'MODBASE':
|
|
|
225 |
print('spırce')
|
226 |
# Step 1: Fetch the PDB file
|
227 |
pdb_url = f"https://files.rcsb.org/download/{pdbID}.pdb"
|
228 |
+
print('pdb_url')
|
229 |
response = requests.get(pdb_url)
|
230 |
response.raise_for_status() # Check for a successful response
|
231 |
|
|
|
236 |
atomSequence = ''.join([three_to_one(i[3]) for i in atoms])
|
237 |
coords = [[i[6] ,i[7] ,i[8]] for i in atoms]
|
238 |
resnums_for_sasa = [i[5] for i in atoms]
|
239 |
+
print('NEW')
|
240 |
+
print(atomSequence)
|
241 |
else:
|
242 |
pdb_url = f"https://files.rcsb.org/download/{pdbID}.pdb"
|
243 |
|