Plotting script — display the principal components identified by the main script
-
GUI and CLI programs
GUI:
trendplotgui.exein Windows and Linux,trendplotgui.appin OS XCLI:
trendplot.exein all platforms -
Synopsis
trendplot.exe [-r] [-f] [prefix] [-x [xaxisfile]] [-u [Unit]] [-n [the first N components]] [-p] [-e] -m [0/1/2/3/4/5]] --plot -
Description
trendplot.exeplots the output oftrendmain.exe. It is normally used to plot first principal component (PC1) or n principal components. It can also graph a scree plot of the sizes of the PCs. It uses matplotlib.- Note that each time
trendmainguiortrendmainlaunches it creates a temp directory to save temporary files fortrendplotandtrendplotguiand deletes the old one (if it exists). This enablestrendplotandtrendplotguito use results of the last run oftrendmainortrendmaingui.
-
Options
-r
-rreads all arguments used bytrendmain.exe. Therefore when-ris used alltrendplot.exeoptions related totrendmain.exeprogram, such as-fand--icaoptions can be omitted.-f [input prefix name]
-fspecifies prefix of input files. This needs to be the same as specified with the-ooption when using thetrendmain.exeprogram. e.g. uM or time (min)-x [xaxisfile]
The usage is identical to the-xoption oftrendmain.exe.-u [Unit]
The usage is identical to the-uoption oftrendmain.exe.-n [integral number N]
-nspecifies the number of principal components to plot. For example,-n 3plots the first 3 principal components.--single
--singleplots the component numberNspecified by-noption. For example,-n 3 --singleplots the third principal component only.-p
-pplots PC1 values with normalization. This is normally the most important trend of change in an experiment. It is used without argument.-e
-eplots the scree plot, i.e. the size of each of the principal components-m [0/1/2/3/4/5]-mturns on normalization of theNprinciple components plotted using the-noption. There are several modes of normalization to choose among; see the table below for the choices. When-moption is turned on, the normalized PC values will be saved tonormalizedPC.csvfile.
| Normalization mode | meaning |
|---|---|
| 0 | No normalization on PC values |
| 1 | Normalize all PC values to 1.0, with PC1 increasing (typical for a ligand binding isotherm) |
| 2 | Normalize all PC values to 1.0, regardless of the direction |
| 3 | Normalize PC1 to 1.0 and set it to increase. Normalize all other components to PC1 |
| 4 | Normalize PC1 to 1.0 without changing its orientation. Normalize all other components to PC1 |
| 5* | Normalize PC values to the sum of PC1+PC2 |
| 6$ | Normalize 2 phase binding isotherms into monotonic increasing, reverse turning point |
* This mode was used for two sequential binding events
$ This option might be used for binding isotherms of titrations where spectra in the middle of the titration are severely perturbed and the trajectory of change is V-shaped.
--biplotThis option shows the “bi-plot” of the first two principal components in matrix VT. (A bi-plot is the equivalent of a score plot in the nonmenclature of the metabolomics field).--icaThis option is required for plotting ICA results. All principal components mentioned above will be replaced by independent components when--icais turned on.--plot
--plotis optional. When it is on, all figures will be saved as PNG images.