MSStats module
- class MSStats.interactive_average(msdata, elem=None)
Bases:
objectCreates interactive graph for the selection of the area of interest and calculates basic stats as mean, std, median, min and max. The values can be printed or saved as an excel file.
- Parameters:
msdata (MSData object from imgMS) – Data of elemental imaging where stats will be calculated from a selected area of the elemental distribution image.
- export_stats(filename, sheetname='Sheet1')
Export calculated stat for every isotope in the selected area into excel.
- Parameters:
filename (str) –
data. (Excel file name to save) –
- get_attr()
get all the data required for interactive mean calculation for given map
- onSelect(verts)
Selection of area in the image.
- stats(indices)
Calculates the statistical values (mean, std, sum, minimum, maximum and median) from selected area of image.
- Parameters:
indices (list) –
area. (List of bool to select which pixels are in the) –
- switch_elem(elem)
Change the element for interactive calculation
- Parameters:
elem (str) –
element (Name of the) –
calculated. (which will be used for selecting the boundaries of area where stats are) –
- updateArray(array, indices)