Spaces:
Sleeping
Sleeping
Commit
·
60854cf
1
Parent(s):
5f06ca7
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -214,7 +214,7 @@ def pdb(input_set, mode, impute):
|
|
214 |
pass
|
215 |
|
216 |
cnt = 0
|
217 |
-
|
218 |
def fetch_uniprot_ids(pdb_code):
|
219 |
response = requests.get(f"https://www.ebi.ac.uk/pdbe/api/mappings/uniprot/{pdb_code}")
|
220 |
st.write('response', response)
|
@@ -222,7 +222,7 @@ def pdb(input_set, mode, impute):
|
|
222 |
data = response.json()
|
223 |
st.write(list(list(list(data.values())[0].values())[0].keys()))
|
224 |
return list(list(list(data.values())[0].values())[0].keys())
|
225 |
-
|
226 |
for search in pdbs:
|
227 |
# Step 1: Fetch the PDB file
|
228 |
pdb_url = f"https://files.rcsb.org/download/{search}.pdb"
|
|
|
214 |
pass
|
215 |
|
216 |
cnt = 0
|
217 |
+
print('this is the pdbs', pdbs)
|
218 |
def fetch_uniprot_ids(pdb_code):
|
219 |
response = requests.get(f"https://www.ebi.ac.uk/pdbe/api/mappings/uniprot/{pdb_code}")
|
220 |
st.write('response', response)
|
|
|
222 |
data = response.json()
|
223 |
st.write(list(list(list(data.values())[0].values())[0].keys()))
|
224 |
return list(list(list(data.values())[0].values())[0].keys())
|
225 |
+
print(fetch_uniprot_ids('5K5T'))
|
226 |
for search in pdbs:
|
227 |
# Step 1: Fetch the PDB file
|
228 |
pdb_url = f"https://files.rcsb.org/download/{search}.pdb"
|