Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
8337c15
1
Parent(s):
a746586
Update code/pdb_featureVector.py
Browse files- code/pdb_featureVector.py +7 -17
code/pdb_featureVector.py
CHANGED
@@ -1379,14 +1379,10 @@ def pdb(input_set, mode, impute):
|
|
1379 |
data['pdbSequence'] = data['pdbSequence'].str.replace('U', 'C')
|
1380 |
st.write('HERE')
|
1381 |
for i in data.index:
|
1382 |
-
st.write('i',i)
|
1383 |
-
st.write(data.at[i, 'source'])
|
1384 |
id_ = data.at[i, 'pdbID'].lower()
|
1385 |
-
st.write('id_', id_)
|
1386 |
up_id_ = data.at[i, 'uniprotID']
|
1387 |
-
st.write('up_id_', up_id_)
|
1388 |
score_ = str(data.at[i, 'score'])
|
1389 |
-
|
1390 |
if data.at[i, 'source'] == 'PDB':
|
1391 |
pdb_path = Path(path_to_output_files / 'pdb_structures' / f'{id_}.pdb')
|
1392 |
elif data.at[i, 'source'] == 'MODBASE':
|
@@ -1394,18 +1390,12 @@ def pdb(input_set, mode, impute):
|
|
1394 |
elif data.at[i, 'source'] == 'SWISSMODEL':
|
1395 |
pdb_path = Path(path_to_output_files / 'swissmodel_structures' / f'{up_id_}_{id_}_{score_}.txt')
|
1396 |
pdbSequence = data.at[i, 'pdbSequence']
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
st.write(pdbID)
|
1404 |
-
st.write(mode)
|
1405 |
-
st.write(Path(path_to_output_files / '3D_alignment'))
|
1406 |
-
x = pr('ik')
|
1407 |
-
|
1408 |
-
st.write(x)
|
1409 |
alignments = get_alignments_3D(uniprotID, 'nan', pdb_path, pdbSequence, source, chain, pdbID, mode, Path(path_to_output_files / '3D_alignment'), file_format = 'gzip')
|
1410 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|
1411 |
try:
|
|
|
1379 |
data['pdbSequence'] = data['pdbSequence'].str.replace('U', 'C')
|
1380 |
st.write('HERE')
|
1381 |
for i in data.index:
|
|
|
|
|
1382 |
id_ = data.at[i, 'pdbID'].lower()
|
|
|
1383 |
up_id_ = data.at[i, 'uniprotID']
|
|
|
1384 |
score_ = str(data.at[i, 'score'])
|
1385 |
+
|
1386 |
if data.at[i, 'source'] == 'PDB':
|
1387 |
pdb_path = Path(path_to_output_files / 'pdb_structures' / f'{id_}.pdb')
|
1388 |
elif data.at[i, 'source'] == 'MODBASE':
|
|
|
1390 |
elif data.at[i, 'source'] == 'SWISSMODEL':
|
1391 |
pdb_path = Path(path_to_output_files / 'swissmodel_structures' / f'{up_id_}_{id_}_{score_}.txt')
|
1392 |
pdbSequence = data.at[i, 'pdbSequence']
|
1393 |
+
source = data.at[i, 'source']
|
1394 |
+
chain = data.at[i, 'chain']
|
1395 |
+
uniprotID = data.at[i, 'uniprotID']
|
1396 |
+
pdbID = data.at[i, 'pdbID']
|
1397 |
+
|
1398 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
1399 |
alignments = get_alignments_3D(uniprotID, 'nan', pdb_path, pdbSequence, source, chain, pdbID, mode, Path(path_to_output_files / '3D_alignment'), file_format = 'gzip')
|
1400 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|
1401 |
try:
|