Description Usage Arguments Examples
Flyception2R main script
1 2 3 4 5 6 7 8 | Flyception2R(dir, autopos = T, interaction = T, reuse = T, fmf2tif = F,
zoom = 1.085, FOI = F, ROI = c(391, 7, 240, 240), binning = 1,
fluo_flash_thresh = 500, fv_flash_thresh = 240, av_flash_thresh = 100,
dist_thresh = 4, fl1fl2center = NA, flvfl1center = NA, bgratio = 0.8,
ratiocutoff = 0, rotate_camera = -180, window_size = NA,
window_offset = NA, colorRange = c(0, 200), flash = NA,
preprocess = F, size_thresh = 5, focus_thresh = 950, badfr = NA,
ctr_offset = NA)
|
dir |
path to the directory that contains the data |
autopos |
logical. Perform camera alignment using FNCC? |
interaction |
logical. Perform interaction detection? Requires two flies. |
reuse |
logical. Reuse .RDS files? |
fmf2tif |
logical. Convert fly-view and arena-view fmf files into tif format? |
zoom |
numeric. Zoom factor between fly-view and fluo-view cameras. |
FOI |
a vector of two integers indicating the first and last frames to be analyzed. If not specified, all frames will be analyzed. |
ROI |
a vector of four integers indicating the first and last frames to be analyzed. If not specified, all frames will be analyzed. |
binning |
integer. Binning of the fluo-view camera. |
fluo_flash_thresh |
numeric. A threshold for detecting flashes in a fluo-view video. |
fv_flash_thresh |
integer. A threshold for detecting flashes in a fly-view video. |
av_flash_thresh |
integer. A threshold for detecting flashes in a arena-view video. |
dist_thresh |
numeric. A distance threshold for detecting fly-fly interactions. |
fl1fl2center |
a vector of two integers indicating the x and y offset between the two fluo-view videos. If not specified, an interactive dialog will pop up. |
flvfl1center |
a vector of two integers indicating the x and y offset between the fluo-view and fly-view videos. If not specified, an interactive dialog will pop up. |
bgratio |
float. The ratio of background pixels to total pixels in the ROI. Pixels with intensity values below this percentile of pixels in the ROI are excluded from segmentation mask. |
ratiocutoff |
float. A percentile below witch ratios are removed from analysis if active region is a subset of the labeled region. |
rotate_camera |
integer. Angle of the fluo-view camera. |
window_size |
a vector of two integers indicating the size of a window to the brain. If not specified, an interactive dialog will pop up. |
window_offset |
a vector of two integers indicating the position of the window to the brain as an offset from the center of the image. If not specified, an interactive dialog will pop up. |
colorRange |
a vector of two integers indicating the min (blue) and max (red) for pseudocolor representation. |
flash |
1 if the first flash is good, 2 if the first flash is bad and the second flash is good. |
preprocess |
logical. True if flash detection and camera alignment need to be performed. |
size_thresh |
integer. A threshold for removing object at the segmentation step. |
focus_thresh |
integer. A threshold for determining out-of-focus frames. |
badfr |
vector. A list of frames which to be manually excluded from analysis. |
ctr_offset |
vector. x,y offset from center of markers to center of brain window to compensate for coverslip/bead placement variation. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.