Spaces:
Sleeping
Sleeping
Commit
·
6a9118c
1
Parent(s):
e42b8dd
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -167,11 +167,14 @@ def pdb(input_set, mode, impute):
|
|
167 |
|
168 |
data.wt_sequence_match = data.wt_sequence_match.astype('str')
|
169 |
data.replace({'': 'nan'}, inplace=True)
|
|
|
170 |
data_size = len(data.drop_duplicates(['datapoint']))
|
171 |
not_match_in_uniprot = data[(data.uniprotSequence == 'nan') | (data.wt_sequence_match == 'nan')]
|
172 |
uniprot_matched = data[(data.uniprotSequence != 'nan') & (data.wt_sequence_match != 'nan')]
|
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'
|
|
|
167 |
|
168 |
data.wt_sequence_match = data.wt_sequence_match.astype('str')
|
169 |
data.replace({'': 'nan'}, inplace=True)
|
170 |
+
|
171 |
data_size = len(data.drop_duplicates(['datapoint']))
|
172 |
not_match_in_uniprot = data[(data.uniprotSequence == 'nan') | (data.wt_sequence_match == 'nan')]
|
173 |
uniprot_matched = data[(data.uniprotSequence != 'nan') & (data.wt_sequence_match != 'nan')]
|
174 |
+
if (len(uniprot_matched) == 0) & (len(not_match_in_uniprot) == 0):
|
175 |
+
st.write('Please check the input aminoacid at the selected position.')
|
176 |
+
|
177 |
+
|
178 |
data = None
|
179 |
|
180 |
print('You have %d data points that failed to match a UniProt Sequence\nProceeding with %d remaining...\n'
|