Before you can execute a parameter estimation task you need to specify the dataset which COPASI will use to fit the parameters you have specified. The data can provided in any number of data files that can each contain one or more experiments, each experiment containing one or several data columns. All data points in the columns of all experiments contribute to the objective function with the following weighted sum of squares:
$$E(P)=\sum_{i,j}\omega_{j}\cdot(x_{i,j}-y_{i,j}(P))^{2}$$
Where $P$ is the currently tested parameter set, $x_{i,j}$ is a point in the dataset, and $y_{i,j}(P)$ the corresponding simulated value. The indices $i$ and $j$ denote rows and columns in the dataset. The weight $\omega_{j}$ is specified for each data column and can either be provided by the user or calculated automatically by COPASI. In the user interface, weights that are calculated by COPASI are displayed in brackets. The weights are intended to adjust the contributions of the different data columns to the overall objective function so that ideally data points from each column contribute equally. For the calculation of the weights COPASI offers three different methods that are based on different assumptions about how residual error scales with the data values. The methods are chosed with a drop box in the user interface and described in the table below. Depending on whether the Normalize Weights per Experiment Checkbox is ticked, the weights are scaled so that the largest weight for any data column in the complete set is $1$, or that the largest weight in each single experiment is $1$. To manually adjust the weight values you can simple override them by entering new values in the table.
Name | Formula | Comment |
---|---|---|
Mean | $\omega_{j}=\frac{1}{<x_{j}>^{2}}$ | Assumes the error scales with the mean of the data points in a column |
Mean Square | $\omega_{j}=\frac{1}{<x_{j}^{2}>}$ | Assumes the error scales with the mean square of the data points in a column |
Standard Deviation | $\omega_{j}=\frac{1}{<x_{j}^{2}> - <x_{j}> <x_{j}>}$ | Assumes the error scales with the standard deviation of the data points in a column |
Value Scaling | see below |
The Value Scaling option in the drop down menu selects an alternative scaling behaviour: In this case the contribution of each data point is scaled by the inverse of the data value, assuming a multiplicative error model.
To specify the experimental data you click on the Experimental Data button at the top right of the parameter estimation dialog. A new dialog opens that lets you enter experimental data.
Experimental Data Dialog |
To read a data file, click on the open button beside the label File at the top of the dialog and choose a file that contains experimental data from the file dialog. The data file should contain experimental data grouped in experiments. To support automatic detection of experiments these must be separated by one or more empty lines. But manually definition of experiments is allowed. The data for an experiment must be a table of values. The columns of the table are separated by a user specifiable separation character. The default and recommended character is the <tab>-character. The first line of each experiment is treated as the row containing the column headings. However, this is only a default and the header row can be specified by the user. The header row may be anywhere in the file the data is contained. The purpose of the header row is to ease the interface to the data file and may be omitted. To tell COPASI that no header row is included uncheck the box next to the header. Once COPASI has read a file, you have to specify some information for each experiment included in the file. To select an experiment you choose it from the right selection box. The first thing you need to specify is whether the data belongs to a Steady-State analysis or to a time course simulation. You also have to associate the individual columns of input data to elements of the model. For this, you click on the ... button in each row and select the corresponding object in the selection dialog. It is mandatory that COPASI knows about the meaning of each data column. The data in a column can have four different types, which are:
The last column in each of the lines contains the weight for the specific data set. If it is calculated by COPASI (using one of the modes mentioned above) it is surrounded by brackets. If you want to change this value you have to remove the brackets and enter a different value. If you want to go back to automatically calculated values you can delete the content of the box completely and COPASI will return to automatically calculating the weight.
If you don't want COPASI to use the whole dataset of an experiment, but only a subset, you can specify the start and end line for this subset. You also may delete experiments completely. If you do so, you may notice that the New Document will be enabled. Pressing it will add the first not used experiment of the currently active file. Since it is commonly the case that all experimental data within one file has the same format, COPASI allows you to copy information of experimental data from the previous to the current or form the current to the next experiment within a file by selecting from previous and to next. If COPASI detects that experimental data descriptions are identical it will automatically set the from previous check box and disable editing the current experiment. Should you want to modify it you will have to unmark the check box first.
If you have more than one file, you can load additional data files and process them in the same manner. Once you are finished defining your datasets for the fitting, you close the data dialog with the OK button. Before you can start the parameter estimation process, you have to choose the method by which the fitting will be done and maybe set some method parameters. Most of the time, the default parameter values should do. The method choosing is done at the bottom of the dialog by selecting the method from the drop down list. For an explanation of the individual methods, please consult the methods section.