Contents
Install and startupWindows computersMac computers (OS X)Linux computersStarting Chrombox C from the Matlab desktop (on all systems)Changing settingsUpdatingTutorial 1 - Basic functions1.1. Startup and select method1.2. Importing chromatograms:1.3. Retention index calibration1.4. Integration and identification1.5. Editing peaks1.6. Quantification and reportingKeyboard shortcutsScaling / scrollingSelectionIntegrationAdd and identify peaksLocking and unlockingLabels and plotting
The following text styling is applied in this document. Commands, paths or filenames are denoted by: command, or path\filename.ext. Buttons in the graphical user interface are shown as [Button]. Keys on the keyboard are denoted by [Key]. A parameter to be set is denoted by parameter, and a value of a parameter or an option in a menu is denoted by option.
Quick start
- On Windows computers with Matlab you can usually just move the folder
CCto your preferred destination and start the program by double click on theChrombox C.exefile.- Follow the instructions below if you install on a Mac or Linux computer, or if you install the program on a network drive.
cc.zipCC to the preferred destination, e.g. C:\CHROMBOX\. This will be the C-root folder "Chrombox C.exe" file in the C-root folder. If installed on a server you may have to use one of the methods described below:
cstart.m in the folder …\cc\various and move it to somewhere in your Mathlab path. This is the only file that needs to be in the Matlab path. Possible destinations may be found by starting Matlab and typing path. cstart.m and edit the last line after the run command so that it points to the file cc_startscript (see example below). cstart in the Matlab command window.An example of cstart.m is shown below:
xxxxxxxxxx% Startupscript for Chrombox C% Starts startscript by the run command.% Startscript must be located in the C root, % dstart must be in the matlab searchpath% run c:\CC\cc_startscriptrun C:\CHROMBOX\CC\cc_startscriptYou can also create a desktop shortcut by copying the shortcut to Matlab and adding the following to the destination /automation /r cstart An example of how it can look is shown below:
C:\MATLAB6p5\bin\win32\matlab.exe /automation /r cstart
Download the installation and unzip the archive cc.zip
Move the folder CC to the preferred destination, for example /Users/yourname/Documents/CHROMBOX/CC, This will be the C-root folder
The shell script macstart_c.command stored in the C-root folder can be used to start the program if the file is executable and Matlab can be started with the terminal command ./matlab. Note that the extension .command may be hidden in Finder.
To check if Matlab can executed by ./matlab open the terminal and type ./matlab. If Matlab does not start you can do the following:
sudo ln -s /Applications/MATLAB_RXXXXx.app/bin/matlab /usr/local/bin where RXXXXx should be replaced by the Matlab version number, for example "R2017a". Alternatively, open Applications in Finder. Locate Matlab, right-click and select Show Package Contents. Open the folder bin and locate the application file matlab. In terminal type sudo ln -s without pressing enter. Thereafter drag the matlab application file to the terminal. Ensure there is a space between "-s" and "/Applications" and press enter. To make macstart_c.command executable, do the following:
Open the terminal. Use cd to change directory to the C root where the macstart_c.command is located or open the terminal at the C root folder if that is an option. Type chmod +x macstart_c.command. Alternatively, type chmod +x without pressing enter and drag the macstart_c.command file from Finder to the terminal. Ensure there is a space between "+x" and "macstart_c.command" and press enter.
Thereafter double-click on macstart_c.command in Finder to start the program. Depending on your security settings you may get the following message: "macstart_c.command can’t be opened because it is from an unidentified developer". To solve this, open System Preferences – Security and Privacy – General and press [Open anyway] next to the message regarding the file. An alternative way of allowing the file to be executed is to open the file in TextEdit and saving it again. Then it will no longer have status as downloaded from the Internet.
As an alternative to the above procedure, Chrombox C can be started by the following method:
cstart.m in the folder …/cc/various and move it to somewhere in your Matlab path. Possible destinations may be found by starting Matlab and typing path. cstart.m and edit the last line after the run command so that it points to the file cc_startscript (see example below). cstart in the Matlab command window.An example of cstart.m is shown below:
xxxxxxxxxx% Startupscript for Chrombox C% Starts startscript by the run command.% Startscript must be located in the C root,% cstart must be in the matlab search path% run C:\CC\cc_startscriptrun /Users/yourname/Documents/CHROMBOX/CC/cc_startscript.mDownload the installation and unzip the archive cc.zip
Move folder CC to the preferred destination, for example /home/yourname/CHROMBOX/CC, This will be the C-root folder
The shell scripts linstart_c.sh stored in the C-root folder can be used to start the program, if the file is executable and Matlab can be started with the terminal command matlab.
On Ubuntu you can use the following procedure to make linstart_c executable:
Properties. Select Permissions and Allow executing file as program. It should now be possible to start Chrombox C by double-click on linstart_c.sh and selecting the option run in terminal. If you don’t get the run in terminal option while double-clicking the file you will have to edit the preferences in the file manager. Choose Edit in the menu for Files, thereafter Preferences and select the Behaviour tab. Select Ask each time as the option for executable text files.
There is also a file linstart_c_term.sh in the C-root folder. The difference between linstart_c and linstart_c_term is that linstart_c runs the application disconnected from the terminal while linstart_c_term runs in the terminal. Chrombox C will continue to run if you close the terminal if it was initiated by linstart_c, while it will close together with the terminal if it was initiated by linstart_c_term.
As an alternative to the above procedure you can also start Chrombox C by cstart.m as described for Mac computers above.
On all operating systems you can use the following procedure to start Chrombox C.
Start Matlab in the regular way, so that the Matlab desktop is opened.
Change the current working directory of Matlab to the C-root folder, either by the line showing the working directory or by browsing in the panel in the left side of the Matlab desktop.
You can now start Chrombox C by one of the following methods:
cc_startscript.m in the panel showing the contents of the working directory, right-click and select run.run cc_startscript in the Matlab command window.In a minimized Matlab session (running in terminal without Matlab desktop) you can use the cd command to set the working directory and run cc_startscript to start the program.
cc_localsettings file in the C-root folder. cc_localsettings (.sdv or .csv) in an editor such as Notepad and edit the paths for raw data, etc, if necessary.xxxxxxxxxxdefaultfolders; 1; Overrides path settings with default values (cc_root\rawdata,export,libraries,method,reports,results)defaultmethod; Default; Method to load on startuppath_export; I:\INSTALL_C\CC\export; Folder for exported datapath_libraries; I:\INSTALL_C\CC\libraries; Folder for retention index librariespath_method; I:\INSTALL_C\CC\methods; Folder for methodspath_qqres; O:\CHROMBOX\QQ\results; Folder for Chrombox Q results (For generation of libraries)path_rawdata; I:\INSTALL_C\CC\rawdata; Folder for rawdata folders (Chemstation, TXT, ASC, CSV, RAX, etc)path_reports; I:\INSTALL_C\CC\reports; Folder for reportspath_results; I:\INSTALL_C\CC\results; Folder for results filespath_templates; I:\INSTALL_C\CC\templates; Folder for retention index templatestracker; 0; For development purposes, 0 or 1version; C-19-03; Code version to usewindowpos; [ 0.05 0.06 0.9 0.9]; Window position and size [leftposition lowerposition width height] in fractions of screen size
windowpos is position of the window in fractions of the screen size. The two first numbers in the vector is the position of the lower left corner. As specified above the lower left corner is 10% from the bottom of the screen and 10% from the left. The height and width is 75% of the screen size. Ensure that the sums of numbers 1 and 3 and numbers 2 and 4 are less than 1. defaultfolders is set to 1 the program will use the standard setup for subfolders and it is not necessary to edit the paths even if they are not correct. If the parameter is set to 1 you will have to specify the location of each path for data and methods. Data can be read from other folders than the ones are specified. Folders can also be changed by using the [Settings] option within the program. version refers to the current version of the code. The parameter can also be updated from within the program. defaultmethod. C-19-03 should be placed in the folder code in the C root folder.cc_localsettings.sdv (may also have .csv extension) that is found in the C root folder and update the version to the folder name of the new code. The part to be edited is shown in blue in the example below.The part to edit in cc_localsettings.sdv is between the two semicolons in the line shown below.
xxxxxxxxxxversion; C-19-03; Code version to use
Alternatively, you may select the new code by the following procedure:
[Settings] button down in the right corner[Load/Files][Save local settings]The main purpose of this tutorial is to get used to basic functions in the program, how to use retention indices for identification, and basics of quantification and reporting. Fatty acid methyl esters (FAME) in two samples of marine algae will be identified and quantified using a predefined template.
Tutorial-1.[Import Box] that will take you to the window for importing new data.
Chemstation.Tutorial-1. The files in the folder are shown in the data files list. [Import All].Save as will be the name of you data box that contains all data and results. You can change it to any legal file name. By default it is the same as the folder name for the raw data. [Accept as new]. This will take you back to the main window where the chromatograms will be displayed.
Identifications in this tutorial are based on the use of retention indices. Since the analytes are fatty acid methyl esters (FAME), the retention index scale is Equivalent Chain Lengths (ECL) where the ECL value for a saturated compound by definition is equal to the number of carbons in the fatty acid chain.
Saturated in the box to the right in the main window or by the [<] and [>] buttons and press the [Integrate] button. This integrates the chromatogram, and it also calculates ECL values. You choose between Time (retention times), Index (retention indices) and Scan no. (scan numbers) as the retention axis (x-axis) by using the radio buttons under the chromatogram.Index as the retention scale. The major peaks in the chromatogram are saturated FAMEs from C12 to C27 (excluding C13 and C23), for which the ECL values are given by definition. Ideally, each of the major peaks should therefore be found at an integer value on the index scale. As you can see, this is not the case. The cause is that the data was acquired at a different time than the reference mixture used for calibration of the template, and that chromatographic conditions have changed in the meantime. [Calibrate RI], which will take you to the window for calibration shown in Figure 1.3. Def. RI field. You will see that the numbers in the table and the plot of retention index (vertical axis) vs retention time (horizontal axis) will change each time you input a new number. [Update] when you have typed in the last number and leave the window by pressing [Accept].The chromatogram in the main window should now show peaks that have integer retention indices. You can also verify the retention index by clicking on a peak and inspect the information box.
[Integr. All] followed by [Ident. All]. Some of the peaks in the “SATURATED” sample will not be identified because they are not in the template. This is not important for the further work.[<] and [>] buttons and inspect them. Identified peaks will be shown in dark blue, while unidentified peaks are shown in light blue. In the samples there are some peaks that are unidentified because they do not match any retention indices in the template. [+]/[-] buttons and the slider. If the [()] button is selected the chromatogram will be zoomed around the selected peak.Show Templ. in the checkbox next to the blue button line the template will be shown. You can edit areas and identifications in the chromatogram. An example for the area around the 18:1-monoenes is shown in figure 1.4. The peak to the left is identified as 16:4 n-1. However, it has a shoulder, and the template says that the shoulder should be 18:1 n-9. You can correct this by the following procedure:
Add and identify. Place the vertical axis of the cross where you want to add the peak and click the left mouse button. Identify. This will show a list of the peaks in the template, and the correct ID is usually one of the first peaks in the list. Click on 18:1 n-9 and press [Accept].
When you have edited areas and identifications it is time for quantification of the samples.
The GLC793 sample is applied for calculation of response factors and contains equal amounts of common fatty acids. Before you can quantify the peaks you must ensure that this sample has correct identifications. It should contain the following fatty acids: 12:0, 14:0, 14:1 n-5, 15:0, 16:0, 16:1 n-7, 17:0, 17:1 n-7, 18:0, 18:1 n-9, 18:2 n-6, 18:3 n-3, 18:3 n-6, 20:0, 20:1 n-9, 20:2 n-6, 20:3 n-3, 20:3 n-6, 20:4 n-6, 20:5 n-3, 22:0, 22:1 n-9, 22:4 n-6, 22:5 n-3, 22:6 n-3, 24:0 and 24:1 n-9. It is possible that 20:0 is identified as 18:4 n-3 since these two peaks has almost identical retention indices.
Identify, select 20:0 in the list and press [Accept]. [Quantify] button. The program will issue a warning telling that the internal standard was not found in chromatogram number 1. This is not a problem since chromatogram 1 is the reference sample used for calibrating the retention index scale. It is not used for any quantitative purpose. [Quantify] button is a toggle button that must be manually released. As long as the button is activated the quantitative results will be updated by any change you make in the chromatograms. If you for instance edit a reference sample used for calculating response factors, all the chromatograms will be updated. If there are many chromatograms in the box the program may therefore run slowly when the button is active. If you report amounts or adjusted areas (corrected by response factors) the [Quantify] button must be pressed before you are allowed to report the results.[Save Box]. If you type * in the search string field, all the saved boxes will be listed. Data boxes are loaded by selecting them in the list and pressing the [Load Box] button. If Incl. Meth. is checked, the method (as it was when you saved the box) will also be loaded.[Report Sgl.]. This will generate a report and usually also open it (on some systems the report may not open, but it can be found in the “reports” folder.). The default report format is Excel, but other report formats and report settings can be selected by pressing [Settings] followed by [Reports]. The reports are generated according to the template. Unidentified peaks are summarized and reported as “other”. In most cases, the fields of interest are adjusted area percents and amounts. The amounts are calculated according to the internal standard. The amounts of the internal standard are specified in the method settings, but the amounts can also be edited in the “IS Amt.” field in the main window.
Note that the reported area percent, adjusted area percent and the amount of the internal standard (23:0) is zero, even though it is present in the sample. This is because the internal standard is added, and not originally present in the sample.
The amounts are in this case μg FAME present in the samples. Selected fields for “ALGAE 40” are presented in Table 1.1.
[Arrow L/R][Arrow U/D] or [mouse wheel][+] or [Z][-] or [X][C] or [Shift+mouse wheel][A] / [Shift+A][N][Shift+N][B][Shift+B][R][J][Shift+J][P][Shift+P][I][Shift+I][L][Shift+L][V][Shift+V][D][O][Shift+O][H]