Spaces:
Running
Running
Commit
·
5cfe640
1
Parent(s):
946af29
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -171,7 +171,9 @@ def pdb(input_set, mode, impute):
|
|
171 |
uniprot_matched = data[(data.uniprotSequence != 'nan') & (data.wt_sequence_match != 'nan')]
|
172 |
|
173 |
|
174 |
-
|
|
|
|
|
175 |
data = None
|
176 |
|
177 |
print('You have %d data points that failed to match a UniProt Sequence\nProceeding with %d remaining...\n'
|
@@ -487,9 +489,6 @@ def pdb(input_set, mode, impute):
|
|
487 |
print('--%d will be searched in Swiss-Model database.\n' % (
|
488 |
len(yes_pdb_no_match.drop_duplicates(['datapoint'])) + len(no_pdb.drop_duplicates(['datapoint']))))
|
489 |
|
490 |
-
if (len(dfM) == 0) & (len(dfNM) == 0):
|
491 |
-
st.write('Please check the input aminoacid at the selected position. ASCARIS could not match it to canonical or isoform sequences.')
|
492 |
-
|
493 |
dfM = None
|
494 |
dfNM = None
|
495 |
aligned_nm = None
|
|
|
171 |
uniprot_matched = data[(data.uniprotSequence != 'nan') & (data.wt_sequence_match != 'nan')]
|
172 |
|
173 |
|
174 |
+
for dp in data.index:
|
175 |
+
if (data.iloc[dp, 'wt_sequence_match'] == 'nan') & (data.iloc[dp, 'whichIsoform'] == 'nan'):
|
176 |
+
st.write(f'Wrong input aminoacid for datapoint: {data.iloc[dp, 'datapoint']}')
|
177 |
data = None
|
178 |
|
179 |
print('You have %d data points that failed to match a UniProt Sequence\nProceeding with %d remaining...\n'
|
|
|
489 |
print('--%d will be searched in Swiss-Model database.\n' % (
|
490 |
len(yes_pdb_no_match.drop_duplicates(['datapoint'])) + len(no_pdb.drop_duplicates(['datapoint']))))
|
491 |
|
|
|
|
|
|
|
492 |
dfM = None
|
493 |
dfNM = None
|
494 |
aligned_nm = None
|