Spaces:
Sleeping
Sleeping
Commit
·
0d2f502
1
Parent(s):
3747ea1
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
@@ -259,7 +259,6 @@ def alphafold(input_set, mode, impute):
|
|
259 |
wt = uniprot_matched.at[i, 'wt']
|
260 |
can = str(uniprot_matched.at[i, 'uniprotSequence'])[int(uniprot_matched.at[i, 'pos']) - 1]
|
261 |
## Information about whether the mutation is found on the canonical or isoform sequence.
|
262 |
-
|
263 |
if wt == can:
|
264 |
uniprot_matched.at[i, 'wt_sequence_match'] = 'm'
|
265 |
elif wt != can:
|
@@ -343,11 +342,15 @@ def alphafold(input_set, mode, impute):
|
|
343 |
except:
|
344 |
ValueError
|
345 |
pdbSequence = 'nan'
|
|
|
346 |
if pdbSequence != 'nan': # The number in models we need might not be present for that protein. Preventng error.
|
347 |
pdbSequence = pdb_info.loc[(pdb_info.uniprotID == uniprotID) & (pdb_info.model_num == mod)].sequence.item()
|
348 |
alignment_list = do_alignment(uniprot_matched.at[i, 'datapoint'], uniprot_matched.at[i, 'uniprotSequence'],
|
349 |
pdbSequence, Path(path_to_output_files / 'alignment_files'))
|
|
|
|
|
350 |
pdb_alignStatus = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[0]
|
|
|
351 |
info_per_model[mod]['pdb_alignStatus'] = pdb_alignStatus
|
352 |
mutationPositionOnPDB = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[1]
|
353 |
info_per_model[mod]['mutationPositionOnPDB'] = mutationPositionOnPDB
|
|
|
259 |
wt = uniprot_matched.at[i, 'wt']
|
260 |
can = str(uniprot_matched.at[i, 'uniprotSequence'])[int(uniprot_matched.at[i, 'pos']) - 1]
|
261 |
## Information about whether the mutation is found on the canonical or isoform sequence.
|
|
|
262 |
if wt == can:
|
263 |
uniprot_matched.at[i, 'wt_sequence_match'] = 'm'
|
264 |
elif wt != can:
|
|
|
342 |
except:
|
343 |
ValueError
|
344 |
pdbSequence = 'nan'
|
345 |
+
st.write('SENTIMENTAL')
|
346 |
if pdbSequence != 'nan': # The number in models we need might not be present for that protein. Preventng error.
|
347 |
pdbSequence = pdb_info.loc[(pdb_info.uniprotID == uniprotID) & (pdb_info.model_num == mod)].sequence.item()
|
348 |
alignment_list = do_alignment(uniprot_matched.at[i, 'datapoint'], uniprot_matched.at[i, 'uniprotSequence'],
|
349 |
pdbSequence, Path(path_to_output_files / 'alignment_files'))
|
350 |
+
st.write('alignment_list')
|
351 |
+
st.write(alignment_list)
|
352 |
pdb_alignStatus = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[0]
|
353 |
+
st.write('alignment_list---')
|
354 |
info_per_model[mod]['pdb_alignStatus'] = pdb_alignStatus
|
355 |
mutationPositionOnPDB = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[1]
|
356 |
info_per_model[mod]['mutationPositionOnPDB'] = mutationPositionOnPDB
|