czbiohub-sf / Rapid-QC-MS

Realtime quality control for mass spectrometry data acquisition
https://czbiohub-sf.github.io/Rapid-QC-MS
Other
13 stars 2 forks source link

Trying to view/open an individual sample from the QC list on the left produces an error #60

Closed InventoRyAlpaca closed 1 year ago

InventoRyAlpaca commented 1 year ago

My understanding was this would open a more detailed view of an individual sample.

Traceback (most recent call last):
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\dash\dash.py", line 1259, in dispatch
    ctx.run(
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\dash\_callback.py", line 439, in add_context
    output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
  File "C:\Users\Thermo\Documents\MS-AutoQC\MS-AutoQC.py", line 3027, in toggle_sample_card
    df_sample_features, df_sample_info = generate_sample_metadata_dataframe(clicked_sample, df_rt, df_mz, df_intensity,
  File "C:\Users\Thermo\Documents\MS-AutoQC\PlotGeneration.py", line 317, in generate_sample_metadata_dataframe
    df_sample_istd["Delta m/z"] = df_delta_mz.iloc[0].astype(float).round(6).values.tolist()
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 967, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 1520, in _getitem_axis
    self._validate_integer(key, axis)
  File "C:\Users\Thermo\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 1452, in _validate_integer
    raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds
wasimsandhu commented 1 year ago

@InventoRyAlpaca Thanks for opening this issue. Could you tell me which sample you tried to view so I can take steps to reproduce this issue? It may have been fixed in one of the last few changes I made.

InventoRyAlpaca commented 1 year ago

Looks like it's fixed. No specific sample, it was any sample I double clicked on would throw that error, sorry for not being specific.

wasimsandhu commented 1 year ago

Cool, glad it's taken care of!