pcf
for 10 values of gamma, and results are visualized in a multi-grid plot.plotGamma(data, pos.unit = "bp", gammaRange = c(10,100), dowins = TRUE,
sample = 1, chrom = 1, cv = FALSE, K = 5, cex = 2, col = "grey",
seg.col="red", ...)
c(10,100)
.pcf
. Default is TRUE.data
. Default is to use the first sample present in the data input.pcf
.cv = TRUE
a list containing:pcf
is run on this data subset while applying 10 different gamma-values (within the given range). The output is a multi-grid plot with the data shown in the first panel, the segmentation results for the various gammas in the subsequent 10 panels, and the number of segments found for each gamma in the last panel.
If cv = TRUE
a K-fold cross-validation is also performed. For each fold, a random (100/K) per cent of the data are set to be missing, and pcf
is run using the different values of gamma
. The missing probe values are then predicted by the estimated value of their closest non-missing neighbour (see pcf
on this), and the prediction error for this fold is then calculated as the sum of the squared difference between the predicted and the observed values. The process is repeated over the K folds, and the average prediction errors are finally plotted along with the number of segments in the last panel of the plot. The value of gamma for which the minimum prediction error is found is marked by an asterix. Note that such cross-validation tends to favor small values of gamma, and the suitability of the so-called optimal gamma from this procedure should be critically assessed.pcf
,winsorize
#Micma data
data(micma)
plotGamma(micma,chrom=17)
Run the code above in your browser using DataLab