LocationMatrix: LocationMatrix

Description Usage Arguments Value Examples

View source: R/fluo_est.R

Description

It generates the final cell location and fluorescnece signal estimates and summarizes the quality control statistics.

Usage

1
2
LocationMatrix(data, filter.by = matrix(c("FDR", "Out.Index", 0.005,
  "confidence"), ncol = 2), report.by.signif = "max")

Arguments

data

Data matrix. The matrix of the location and fluorescence signal estimates after two rounds (maximum) of spotEstimator().

filter.by

Data matrix. A series of filtering criteria and cut-offs that specify which samples are KEPT for further analysis (see vignette). By default it flags by FDR (alpha = 0.005) and outlier index (keeps only the 'confident' estimates).

report.by.signif

Character string. It returns the pre-defined channel-specific signal-to-noise ratio and test statistics for each sample. If "min", the algorithm only reports the P-values/FDRs and signal-to-noise of the channel with the minimum signal-to-noise ratio. If "max", the algorithm only reports the P-values/FDRs and signal-to-noise of the channel with the maximum signal-to-noise ratio. Default is "max".

Value

List. The first component is a data matrix of the final table of estimates. The main body of this table has been generated by spotEstimator(). It summarizes the location, the raw fluorescence signal estimates (foreground and background) and the quality control statistics. It keeps only the signal-to-noise ratio and the associated P-value/FDR of a predefined channel (see parameter report.by.signif). The last column ("Cells") consists of 1s for the samples that pass the filtering step (filter.by) and are used for further analysis. The rest of the samples are assigned 0s. The user should always inspect them along with the images to obtain the final list of samples to be used for further analysis. The second component is the date index for storing the output files. It is transfered to the next step.

Examples

1
2
3
4
### the results matrix (column 'Cells') indicates three empty capture chambers
### (thus not only outliers were associated with the absense of a cell!)
Results <- LocationMatrix(data=estimates.2,
           filter.by = matrix(c("FDR","Out.Index",0.005,"confidence"),ncol=2))

CONFESS documentation built on Nov. 8, 2020, 6:05 p.m.