Spaces:
Sleeping
Sleeping
Commit
·
add08b1
1
Parent(s):
29503f2
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -232,8 +232,7 @@ def pdb(input_set, mode, impute):
|
|
| 232 |
response.raise_for_status() # Check for a successful response
|
| 233 |
except :
|
| 234 |
continue # Skip to the next PDB code if fetching fails
|
| 235 |
-
|
| 236 |
-
st.write(response.text[0:10])
|
| 237 |
# Step 2: Parse the PDB file from memory
|
| 238 |
pdb_data = response.text
|
| 239 |
pdb_parser = PDBParser(QUIET=True) # QUIET=True suppresses warnings
|
|
@@ -249,7 +248,7 @@ def pdb(input_set, mode, impute):
|
|
| 249 |
seqs[i[2]] += i[4:]
|
| 250 |
else:
|
| 251 |
seqs[i[2]] = i[4:]
|
| 252 |
-
|
| 253 |
for key, val in seqs.items():
|
| 254 |
seqs[key] = ''.join([threeToOne(i) for i in val])
|
| 255 |
pdb_data_list = [i for i in pdb_data_list if i.startswith('DBREF')]
|
|
|
|
| 232 |
response.raise_for_status() # Check for a successful response
|
| 233 |
except :
|
| 234 |
continue # Skip to the next PDB code if fetching fails
|
| 235 |
+
|
|
|
|
| 236 |
# Step 2: Parse the PDB file from memory
|
| 237 |
pdb_data = response.text
|
| 238 |
pdb_parser = PDBParser(QUIET=True) # QUIET=True suppresses warnings
|
|
|
|
| 248 |
seqs[i[2]] += i[4:]
|
| 249 |
else:
|
| 250 |
seqs[i[2]] = i[4:]
|
| 251 |
+
|
| 252 |
for key, val in seqs.items():
|
| 253 |
seqs[key] = ''.join([threeToOne(i) for i in val])
|
| 254 |
pdb_data_list = [i for i in pdb_data_list if i.startswith('DBREF')]
|