plotBrightest {scalpel} | R Documentation |
Plot the most active frames for a given neuron.
Description
For a given neuron, we plot the frames with the highest estimated fluorescence, which results from fitting the sparse group lasso in Step 3 of SCALPEL.
Usage
plotBrightest(
scalpelOutput,
AfilterIndex,
videoType = "processed",
neuronsToOutline = "all",
brightIndex = 1,
shrinkLargest = FALSE,
shrinkCutoff = NULL,
title = NULL,
Y = NULL
)
Arguments
scalpelOutput |
An object returned by one of the SCALPEL functions:
|
AfilterIndex |
Scalar giving the neuron for which to plot the brightest frames. The index refers to which column
of |
videoType |
Specify whether to plot the processed data from Step 0 (default; |
neuronsToOutline |
Specify whether to plot outlines of all neurons (default; |
brightIndex |
Scalar giving which of the ordered brightest frames to plot. The default is 1, i.e., the brightest frame. |
shrinkLargest |
Logical value indicating whether the values above |
shrinkCutoff |
The value above which pixel values will be shrunk. By default, this will be chosen as
|
title |
Label for the title. The default is frame number. |
Y |
An object of class |
Value
None
See Also
Examples
## Not run:
### many of the functions in this package are interconnected so the
### easiest way to learn to use the package is by working through the vignette,
### which is available at ajpete.com/software
#assumes you have run the example for the "scalpel" function
#simplest example with default parameters:
plotBrightest(scalpelOutput = scalpelOutput, AfilterIndex = 2)
#example with optional parameters:
#only outline neuron corresponding to frame, plot 5th brightest with raw data
plotBrightest(scalpelOutput = scalpelOutput, AfilterIndex = 2, videoType = "raw",
neuronsToOutline = "main", brightIndex = 5)
#same plot but if you have video data read in already
#using 'getY' function, you can provide it
rawY = getY(scalpelOutput = scalpelOutput, videoType = "raw")
plotBrightest(scalpelOutput = scalpelOutput, AfilterIndex = 2, Y = rawY,
neuronsToOutline = "main", brightIndex = 5)
## End(Not run)