Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
5a46c9d
1
Parent(s):
b9d0e9c
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -250,9 +250,7 @@ def pdb(input_set, mode, impute):
|
|
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 |
-
st.write('SEQUENCE PDB')
|
255 |
-
st.write(seqs)
|
256 |
pdb_data_list = [i for i in pdb_data_list if i.startswith('DBREF')]
|
257 |
pdb_data_list = [[list(filter(None,i.split(' '))) for j in i.split(' ') if j == 'UNP'] for i in pdb_data_list]
|
258 |
pdb_data_list = [i for i in pdb_data_list if i != []]
|
@@ -1407,13 +1405,10 @@ def pdb(input_set, mode, impute):
|
|
1407 |
pdb_path = Path(path_to_output_files / 'swissmodel_structures' / f'{up_id_}_{id_}_{score_}.txt')
|
1408 |
|
1409 |
pdbSequence = data.at[i, 'pdbSequence']
|
1410 |
-
st.write('pdbSequence on 3D part')
|
1411 |
-
st.write(pdbSequence)
|
1412 |
source = data.at[i, 'source']
|
1413 |
chain = data.at[i, 'chain']
|
1414 |
uniprotID = data.at[i, 'uniprotID']
|
1415 |
pdbID = data.at[i, 'pdbID']
|
1416 |
-
st.write('So far so good!!!!!')
|
1417 |
alignments = get_alignments_3D(uniprotID, 'nan', pdb_path, pdbSequence, source, chain, pdbID, mode,
|
1418 |
Path(path_to_output_files / '3D_alignment'), file_format='gzip')
|
1419 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|
|
|
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')]
|
255 |
pdb_data_list = [[list(filter(None,i.split(' '))) for j in i.split(' ') if j == 'UNP'] for i in pdb_data_list]
|
256 |
pdb_data_list = [i for i in pdb_data_list if i != []]
|
|
|
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', pdb_path, pdbSequence, source, chain, pdbID, mode,
|
1413 |
Path(path_to_output_files / '3D_alignment'), file_format='gzip')
|
1414 |
mutPos = data.at[i, 'mutationPositionOnPDB']
|