Skip to content

Latest commit

 

History

History
91 lines (80 loc) · 10.6 KB

HELP.md

File metadata and controls

91 lines (80 loc) · 10.6 KB

XISMuS Tutorial

Here we will guide you, step-by-step on how to use XISMuS.
You will learn:

X Quick-Guide

1. How to load a sample
2. How to configure a sample
3. How to change the configuration
4. How to verify the compiled data
5. How to verify the derived spectra
6. How to map elements
7. How to export the maps

Getting started

This tutorial makes use of the Example Data provided with the distribution packages. If your are running it from source, be sure to have some data at hand. The data provided is porprietary, so please do not distribute it by other means other than the distribution packages provided in the release section before prior communication.

Loading Sample

Automatic detection

XISMuS automatically looks for *.mca and *.txt files inside the samples folder. By default, it is "../My Documents/XISMuS/Example Data". When launching it from a fresh start, the Example Data should be automatically identified. If, not, click on the "Toolbox" dropdown menu and select "Change samples folder...", this will change the default lookup folder. There are other ways to load your data, even if XISMuS doesn't recognize the spectra name structure. For that, please refer to the User Manual also available for download separately here.

Selecting from list

To load a sample and compile it (configure and create its *.cube file), click on "Load Sample". The "Sample List" panel below should come up showing the two example data provided.
Double click "Training Data 1" and the configurational panel will show up. If you're loading data other than the example data provided, a dimension dialog will display instead; asking for the image dimensions. In this case, enter the values and hit "Return" to validate and proceed to the configuration panel. To close it and go back to the main panel, hit "Escape"
sample-listdimension

Configuring the sample

Configuring your sample is straightforward. There are few options to choose from the configuration panel as shown in the image below. All options are explained in more detail in the User Manual. For now, we'll focus in the basic options that most impact performance and results: Background strip mode and Netpeak area method. The former will allow you to select the background estimation method (useful for high signal-to-noise ratio data) and the latter will allow you to select the peak searching method.
From the options available in Netpeak area method, auto_roi is considerably slower as it verifies each spectrum for the existence of a peak, while simple_roi simply slices the data according to the element assigned. As always, refer to the User Manual for further information.
configuration-panel
You can configure SNIPBG parameters, but failing to set new valid values or not setting them at all, will force the default values to be used, which are: Sav-gol and clipping windows of 5, sav-gol order of 3 and 24 iterations. Further information on the SNIPBG method can be found in this reference.
When ready, click "Save" and wait for the data to be compiled.
At the end of the process, an image should appear at the Front Panel and the subpanels on the top- and bottom-right parts should be updated.

Changing compiled sample configuration

If calculating the netpeak area for both alpha and beta macros is getting confusing or is not needed any longer or if the output images are too chunky or too smooth, or even if the images are presenting too many dead pixels, you can change/tweak few configuration parameters to what is more suitable. This can be done by clicking the small rubik's cube icon in the bottom-right part of the front panel.
You will immediately see some options that were not available in the configuration panel before. For now ignore thickratio option, it it only there to be used in the future updates with extended functionalities. As for the other option, "enhance", will change how the exported images look. Leaving it ON will create smoother images, while leaving it OFF will produce chunkier images.
The other options you are already familiar with, so change them accordingly. Background estimation method cannot be changed unless you reset the sample by clicking the corresponding front panel button. After resetting the sample you'll have to recompile the data.

Verifying and accessing the compiled data

After saving the configuration parameters, your sample must now be compiled. You can direclty access the corresponding output folder for that sample through the "Sample List" panel (as shown here), by clicking the "Load Sample" button in the front panel.
Rick-click your sample name to bring up the pop-up menu. Click on "open output folder". In the new explorer window you will notice that there are already some files in there, the compiled *.cube file and the sum spectrum of your sample in *.txt and *.mca formats.
The sample image displayed in the bottom-left part of the front panel can be saved as a *.png file through the "Sample List" menu as well.

Derived spectra

The first thing to start analyzing your data is accessing the derived spectra. They will give you a first hint of what chemical elements may be present in the entirety of the sample. The derived spectra can be accessed under the "Toolbox" dropdown menu. You will notice there are 3 options available: Summation, MPS and combined. For now, click on "Summation" to bring up the summation spectrum. Note: The summation spectrum is also available in the output folder as a *.txt and *.mca file.
Summation Plot
In the plot window you can pan, zoom and save the plot image by using the toolbar in the bottom.
Keep this plot window open when mapping elements!

Mapping elements

You must have a compiled sample in memory in order to start mapping any chemical element. If there is no sample loaded, open the "Sample List" menu and double-click "Training Data 1", which should be compiled by now if you followed the previous steps. If not, the configuration panel will be broguht instead.
You know a sample is compiled and loaded when there is an image in the bottom-left part of the front panel or by checking the status bar in the very bottom of the front panel.
Now click on "Map elements" button. This will bring up the periodic table of elements. Simply select the elements you want to look for and hit "Map selected elements!". If you have any derived spectrum plot open, the theoretical position of the selected element's peaks will show up in the plot, so you can verify its presence before start mapping.
Depending on the method chosen in the configuration step and the software settings, mapping operation may take a while.
The calculated regions can be checked through the "Toolbox" dropdown menu by clicking "Verify calculated ROI". The created elemental maps can be viewed by accessing the "Image Analyzer" window.
Try mapping Fe, Cu, Ag and Au elements.

Mapping a custom energy range

You may have notice a button labelled "Custom" in the periodic table of elements. Instead of looking for elements only, it may be useful to look for a specific energy range instead. To do so, simply type the lower and higher limits and click the "Custom" button to enable it. If any derived spectrum plot is open, the lower and higher limits will be shown as well.

Exporting images

Whenever a chemical element is mapped, the output images are automatically saved under the output folder. However, you can merge and filter them in the "Image Analyzer" window. There are few filters available, use them according to need. To export the images displayed in the screen, click "Export". The export dialogue will show up:
export-dialogue
To export the image on the left or right as they are shown, click "1" or "2" respectively. To merge both images into one, click "Merge".

Quick guide

This section will guide you from loading the Example Data provided to exporting a combined map. Follow the instructions below:

  • Click on "Load Sample" located in the front panel;
  • Double-click "Training Data 2";
  • Input the following configuration parameters:
    • Background strip mode: SNIPBG
    • Calibration: from_source
    • Netpeak area method: auto_roi
    • Calculate ratios: No
    • Before proceeding, click "Set BG";
  • Input the following parameters:
    • Sav_gol window: 5
    • Sav-gol order: 3
    • Clipping window: 5
    • Number of iterations: 24
    • Click "Save"
    • Click "Save" again in the previous configuration panel;
  • Open the "Toolbox" dropdown menu, navigate to "Derived spectra" and click "Summation";
  • Back at the front panel, click "Map elements";
  • Select "Cu", "Ag" and "Au". Notice the lines that appear in the derived spectrum plot window. Click "Map selected elements!" and wait for the data to be compiled;
  • Back at the front panel, click "Image Analyzer";
  • Select the elements you wish in the uppermost dropdown menus;
  • Filter the images if needed by activating and dragging the slider in the bottom part of the window. When ready, click "Export";
  • To export the individual images shown in the left and right panels, click "1" or "2" respectively. To merge them into an RGBA image, click "merge".