# Create or Modify the SpeCond argument parameters

### Description

`createParameterMatrix`

creates and/or modifies the param.detection matrix used as argument in the SpeCond function. If parm.detection is NULL the param.detection matrix used is the one containing the default parameter values, as obtained by `getDefaultParameter`

. The remaining arguments enable to change the values of the param.detection matrix.

### Usage

1 2 3 4 |

### Arguments

`param.detection` |
a matrix of 2 rows and 7 columns as the result of |

`beta.1` |
Influences the prior applied during the determination of the variance of the normal distributions. It is necessary in the first fitting step to allow the model to capture isolated outliers. |

`beta.2` |
The normal use of SpeCond does not prior on Step2: must be set to 0 |

`lambda.1` |
Influences the choice of models by affecting the selection of one, two or three normal distributions, thus introducing some weight on the effect of number of parameters to be defined. The default is 1, the model uses the BIC value taking into account the log-likelihood value. |

`lambda.2` |
Same as |

`per.1` |
percentage threshold: this is the percentage of conditions that can be detected as specific. As per increases a larger number of expression values per genes can be identified as specific. The default is 0.1 |

`per.2` |
percentage threshold: This is the final percentage of condition that can be detected as specific. As per increases a larger number of expression values per genes can be identified as specific. The default is 0.3 |

`md.1` |
median difference: this is the minimum value between the median values of two mixture components that is allowed to identify one of them as representing outliers, i.e. possibly not part of the null distribution. This corresponds to a biological fact; specific expression that corresponds to noise should not be detected as specific |

`md.2` |
Same as |

`mlk.1` |
minimum log-likelihood: enables the identification of clusters of conditions that are well separated from the others in the model. If the gene mlk value>mlk, the mixture component can be detected as outlier (i.e. not part of the null distribution) |

`mlk.2` |
same as |

`rsd.1` |
minimum of standard deviation ratio: enables the identification of clusters of conditions that are extremely spread out compared to the distribution clustering of most expression values. If the gene rsd values< rsd the mixture component can be detected as outlier (i.e. not part of the null distribution) |

`rsd.2` |
same as |

`pv.1` |
p-value threshold to detect a condition as specific for a given gene |

`pv.2` |
same as |

### Value

param.detection: a matrix of 2 row and 7 columns. The rows "Step1 "and "Step2" correspond respectively to the first and second set of parameters for the SpeCond function. The parameters (columns) are: lambda, beta, per, md, mlk, rsd. See the `createParameterMatrix`

documentation for more details about the parameters.

### Warning

The SpeCond code is based on: beta.2=0 md.1=md.2 per.1<=per.2 pv.1=pv.2

### Author(s)

Florence Cavalli, florence@ebi.ac.uk

### See Also

`getDefaultParameter`

### Examples

1 2 3 4 5 6 7 | ```
##Get the default parameters and changing the mlk.1 value to 10:
param.detection2=createParameterMatrix(mlk.1=10)
param.detection2
## Modify param.detection2 with mlk.1 value to 15 and rsd.2 value to 0.2
param.detection2B=createParameterMatrix(param.detection=param.detection2,
mlk.1=10, rsd.2=0.2)
param.detection2B
``` |