Spaces:
Sleeping
Sleeping
Commit
·
6c0f65a
1
Parent(s):
aba4294
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -1397,20 +1397,21 @@ def pdb(input_set, mode, impute):
|
|
| 1397 |
id_ = data.at[i, 'pdbID'].lower()
|
| 1398 |
up_id_ = data.at[i, 'uniprotID']
|
| 1399 |
score_ = str(data.at[i, 'score'])
|
|
|
|
| 1400 |
if data.at[i, 'source'] == 'PDB':
|
| 1401 |
pdb_path = Path(path_to_output_files / 'pdb_structures' / f'{id_}.pdb')
|
| 1402 |
elif data.at[i, 'source'] == 'MODBASE':
|
| 1403 |
pdb_path = Path(path_to_output_files / 'modbase_structures_individual' / f'{id_}.txt')
|
| 1404 |
elif data.at[i, 'source'] == 'SWISSMODEL':
|
| 1405 |
pdb_path = Path(path_to_output_files / 'swissmodel_structures' / f'{up_id_}_{id_}_{score_}.txt')
|
| 1406 |
-
|
| 1407 |
pdbSequence = data.at[i, 'pdbSequence']
|
| 1408 |
source = data.at[i, 'source']
|
| 1409 |
chain = data.at[i, 'chain']
|
| 1410 |
uniprotID = data.at[i, 'uniprotID']
|
| 1411 |
pdbID = data.at[i, 'pdbID']
|
| 1412 |
-
alignments = get_alignments_3D(uniprotID, 'nan',
|
| 1413 |
-
|
| 1414 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|
| 1415 |
try:
|
| 1416 |
coordMut = get_coords(mutPos, alignments, 'nan', 'nan', mode)[0]
|
|
|
|
| 1397 |
id_ = data.at[i, 'pdbID'].lower()
|
| 1398 |
up_id_ = data.at[i, 'uniprotID']
|
| 1399 |
score_ = str(data.at[i, 'score'])
|
| 1400 |
+
"""
|
| 1401 |
if data.at[i, 'source'] == 'PDB':
|
| 1402 |
pdb_path = Path(path_to_output_files / 'pdb_structures' / f'{id_}.pdb')
|
| 1403 |
elif data.at[i, 'source'] == 'MODBASE':
|
| 1404 |
pdb_path = Path(path_to_output_files / 'modbase_structures_individual' / f'{id_}.txt')
|
| 1405 |
elif data.at[i, 'source'] == 'SWISSMODEL':
|
| 1406 |
pdb_path = Path(path_to_output_files / 'swissmodel_structures' / f'{up_id_}_{id_}_{score_}.txt')
|
| 1407 |
+
"""
|
| 1408 |
pdbSequence = data.at[i, 'pdbSequence']
|
| 1409 |
source = data.at[i, 'source']
|
| 1410 |
chain = data.at[i, 'chain']
|
| 1411 |
uniprotID = data.at[i, 'uniprotID']
|
| 1412 |
pdbID = data.at[i, 'pdbID']
|
| 1413 |
+
alignments = get_alignments_3D(uniprotID, 'nan', pdbSequence, source, chain, pdbID, mode,
|
| 1414 |
+
file_format='gzip')
|
| 1415 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|
| 1416 |
try:
|
| 1417 |
coordMut = get_coords(mutPos, alignments, 'nan', 'nan', mode)[0]
|