Commit be7988ea authored by letournd's avatar letournd
Browse files

20.04.2022 / v5.17 / Changing live Constellation interface to formulafinding...

20.04.2022 / v5.17 / Changing live Constellation interface to formulafinding branch as it appears to be functional & stable
parent 23ad69bc
......@@ -192,11 +192,13 @@ def formulafinder(self, datainjson):
MSParameters.mass_spectrum.noise_threshold_std = int(datain['msnoisethreshold'])
MSParameters.ms_peak.peak_min_prominence_percent = float(datain['minprominence'])
self.update_state(state='PROGRESS', meta={'update': 'Finding formulas', 'ctasks': len(masses)})
self.update_state(state='PROGRESS', meta={'update': 'Setting parameters', 'ctasks': 0})
set_other_params()
mass_spectrum_obj = ms_from_array_centroid(masses, intensities, datain['resolution'], datain['s2n'], '')
set_settings(mass_spectrum_obj)
mass_spectrum_obj.clear_molecular_formulas()
self.update_state(state='PROGRESS', meta={'update': 'Finding formulas', 'ctasks': len(masses)})
SearchMolecularFormulas(mass_spectrum_obj, first_hit=False).run_worker_mass_spectrum()
dfout = mass_spectrum_obj.to_dataframe()
......
......@@ -473,7 +473,7 @@ def serve_layout():
html.I('Server status: '),
html.Img(id='statuslight', src='assets/inactive.png', style=gv.styles['statuslight']),
html.B(id='ping', children=[]),
html.I('. Server address: ' + gv.backserver),
html.I(' Server address: ' + gv.backserver),
], style={'fontSize': '14px'}),
html.P([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment