Procedures of elementR


The data reduction proceeded by the elementR package is organized in a session framework including five main steps (indicate on the left side bar of the opened page of the web browser):

The data reduction proceeded by the elementR package is organized in a session framework including five main steps (indicate on the left side bar of the opened page of the web browser):

  • Step 1. The setting of the main parameters of the procedure
  • Step 2. The filtration of the standards
  • Step 3. The machine drift verification & correction
  • Step 4. The filtration of the samples
  • Step 5. The sample replicate averaging

For more details on the procedure, see the documentation.

Note that these steps have to be carried out in the order mentioned above, the third step, for instance, being not available until the first and second one are validated.

The left side bar allows to navigate between these steps and to know exactly which part of the procedure is currently running, validates or remains to complete.

The two last tabs “Configuration”and “Source code for app” are not part of the data reduction procedure but bring additional information detailed later in this document.


What data?


  • A set of data from standard analysis (at least one). elementR is compatible with all standard types (NIST 612, NIST 610, MACS…). However, standards of a single session must have all the same type (that is the reason we call them standard replicates and that they are stored in a same folder).

  • A calibration file providing for each investigated chemical element: \[Calib_X = \frac{[X]_{calibType}}{[InternStandard]_{calibType}}\] where:
    \(Calib_X\) is the value to include in the calibration file for the chemical element X
    \([X]_{calibType}\) is the concentration of the chemical element X contained in the calibration material
    \([InternStandard]_{calibType}\) is the concentration of the internal standard element contained in the calibration material

  • A set of data from sample analysis (at least one, obviously :D). Sample may have one or more replicates, these replicates being averaged in the last step.


What format?


  • The format of data compatible with the elementR application are those from worksheet from Excel (.xls, .xlsx), LibreOffice (.ods) or text (.csv).
    For the text format, the separator used by default is the semi-colon. However, you can change this parameter before uploading your project in the configuration tab.
    For any format (except for text format), the decimal has to be indicated by a point (for text format, you can however customize the decimal in the configuration tab before uploading your project).
    For Excel format, elementR reads the first worksheet of the file. For OpenOffice format, you have to indicate to elementR the sheet to import by calling the sheet to import “data”.

  • Sample and standard data must be all organized in the same way (fig.1):
    In column 1, the time of successive analysis.
    In the following columns, the chemical elements with element names as column heads.
    All data must contain the same chemical elements in the same order.
    Data must contain only numerical characters (except for the names of the columns).
    When you upload your data, elementR checks the validity of these points and indicates the problem if any.

Figure 1: example of data format compatible with elementR application for sample and standard replicate data:  chemical elements in column (in blue) with their name at the top of each column, time of analysis in row (in red). The text included in the cell at the top of the analysis time does not matter.  \label{figureFormat}

Figure 1: example of data format compatible with elementR application for sample and standard replicate data: chemical elements in column (in blue) with their name at the top of each column, time of analysis in row (in red). The text included in the cell at the top of the analysis time does not matter.

  • The file comprising the calibrations data must have its own organization (fig. 2): In columns, the chemical elements with their name at the head of each column.
    The text in the cells of the first column does not matter.
    The data of the calibration file must contain the same chemical elements in the same order than in the standard and sample files.
    The data of the calibration file must be normalized (i.e. divided) by the concentration of the internal standard.
    Data must contain only numerical characters (except for the first column and the names of the chemical elements).
Figure 2: example of data structure compatible with elementR application for calibration data: chemical elements in column (in blue) with their name at the top of each column. The text included in the cells of the first column does not matter.  \label{figureFormat2}

Figure 2: example of data structure compatible with elementR application for calibration data: chemical elements in column (in blue) with their name at the top of each column. The text included in the cells of the first column does not matter.

Some compatible format of all kind of data are provided with the elementR package, take a look ! (in the folder where R packages are installed, reach the elementR folder and look at the “Example_Session”, you will find the files).


What structure?


The data must be organized in a session framework (Fig. 3):

All file corresponding to standard replicates must be included in the same folder called “standards” (= batch of standard replicates).
All samples must be included in the same folder called “samples”.
All sample replicates of the same sample (even if there is only a single replicate) must be included in a folder with the name of the considered sample (= a batch of sample replicates).
The “standards” and the “samples” sub-folders have to be included in a folder called with the name of the project.
In any case when you upload your data, elementR checks the validity of these points and indicates the problem if any.

A compatible format of session is provided with the elementR package, have a look ! (in the folder where R packages are installed, reach the elementR folder1 and look at the “Example_Session” organization).

Figure 3: example of session organization compatible with elementR application: all standards (S1, S2, Sn) are in a “standards” folder (in red), all samples are in a “samples” folder (in green). Each sample replicate R1, R2, Rn (even if there is only a single replicate) must be included in a sub-folder with the name of the sample (in blue). The name of the sample sub-folders and of the standard and sample replicates do not matter.   \label{figureFormat3}

Figure 3: example of session organization compatible with elementR application: all standards (S1, S2, Sn) are in a “standards” folder (in red), all samples are in a “samples” folder (in green). Each sample replicate R1, R2, Rn (even if there is only a single replicate) must be included in a sub-folder with the name of the sample (in blue). The name of the sample sub-folders and of the standard and sample replicates do not matter.