Usage
spotEstimator(files, correctionAlgorithm, subset = c(), foregroundCut = seq(0.5, 0.7, 0.02), denoise = FALSE, despeckle = FALSE, chip.type = "medium/large", cutSides = 0, BFarea = 7, log.transform = TRUE, minDiff = 0.5, show.possible.contamination = TRUE, cutoff = 50, QCdata = 0, median.correction = TRUE, savePlot = getwd())
Arguments
files
Character string. The file names to be read and analyzed. This is the output of readFiles()
correctionAlgorithm
Logical. Its value specifies the estimation stage. If FALSE,
the function processes all data using the standard operations of spotCoords(), i.e. case detection and fluorescence signal
estimation. This is the first estimation stage. If TRUE, the function processes the BF image modeling estimates of outlier images
obtained by defineLocClusters(). The BF image modeling is internally applied during the first stage. Note that
correctionAlgorithm = TRUE is strictly used in the second (outliers adjustment / correction) stage of the process.
subset
Numeric vector. It can be a series sample index numbers (a subset) that specifies the samples to be analyzed.
The index numbers are obtained from readFiles() (the position of the sample in each listed vector). By default subset = c().
The parameter is mainly used in the second estimation stage where spotEstimator() processes the outlier images (the index numbers
foregroundCut
Numeric vector. The binary segmentation image analysis cutoffs for normalized image data. Pixels with normalized signals
higher than the cutoff belong to foreground. Default is seq(0.5,0.7,0.02).
denoise
Logical. If TRUE it denoises the channel images with la8, universal, hard. Default is FALSE.
despeckle
Logical. If TRUE the bf image is descpeckled in the ImageJ fashion. Default is FALSE.
chip.type
Character string. It specifies the type of Fluidigm chip to be analyzed. Default is "medium/large". The alternative
option is "small".
cutSides
Integer. It instructs the algorithm to find spots in a certain central image area. For example, for a 512 x 512
image with cutSides = 50, spotEstimator() will search for spots in the central area [cutSides:(512-cutSides),cutSides:(512-cutSides)]
of the image matrix. Default is 0.
BFarea
Integer. Defines a rectangular pseudo-spot size whose fluorescence will be estimated. This is mainly used in BF image
modeling where a fluorescence spot could not be originally detected. The value of this parameter is also used as a cut-off
to find matched spots across channel of the same sample image. Default is 7.
log.transform
Logical. If TRUE the image data are plotted in the log scale. Default is TRUE
minDiff
Float. The mu_hat of the H0: image-to-noise ratio =
log(foreground_signal) - log(background_signal) = mu_hat. Rejection of H0
implies that the identified spot is brighter than background. Default is 0.5.
show.possible.contamination
Logical. If TRUE it reports all identified unmatched spots in both channels. Default is TRUE.
cutoff
Integer. A cutoff of the distance between the estimated spot location of an outlier sample (X, Y) and the median
location of all non-outliers of the same run and well set (medX,medY), i.e. (X-medX, Y-medY). An outlier sample can either
have a fluorescence-based location (X, Y) or a BF-based location (X*, Y*) or both. It is re-adjusted as follows: (1) if
min(X-medX, Y-medY) > cutoff and min(X*-medX, Y*-medY) > cutoff, the sample's location is set to (medX, medY); (2) if
min(X*-medX, Y*-medY) <= cutoff,="" the="" sample's="" location="" is="" set="" to="" (x*,="" y*);="" (3)="" if="" min(x-medx,="" y-medy)="" <="cutoff" and="" min(x*-medx,="" y*-medy)=""> cutoff, the algorithm can either produce the solution of (1) or the solution of (2) depending
on the value of median.correction parameter below. By default cutoff = 50.=>
QCdata
List. The output of defineLocClusters().
median.correction
Logical. If TRUE, the algorithm re-adjusts the location of the outlier sample as the median of all
non-outliers of the same run and well ID (if necessary).
savePlot
Character string. Directory to store the plots. Its value can be an existing directory
or "screen" that prints the plot only on the screen. Default is the current working directory, getwd().