Description Usage Arguments Value See Also Examples
Divides a circular area into inner and outer zones in order to quantify thigmotaxis (distance from area perimeter), and divides a circular area into any number of equally-sized grid cells in order to quantify exploration (number of unique area grid cells visited).
1 2 | rubitCalcPosition(m, scale = 1, area_rad = NA, thigmo_dist = NA,
n_radials = 1, n_slices = 1, n_bootstraps = 20)
|
m |
a matrix containing processed tracking data outputted by |
scale |
a numeric to calibrate the true spatial scale, in pixels per mm. If |
area_rad |
the minimum radius of the area. If an area shows insufficient movement to define a minimum enclosing circle of at least this radius, then a new minimum enclosing circle is calculated using |
thigmo_dist |
the distance from the boundary perimeter defined as being central (i.e. not thigmotaxis). If thigmo_dist = NA, thigmotaxis is defined as movement in the outer 50% of the area (i.e. > R / sqrt(2) from the area centre, where R is the radius of the area). This unit is defined in pixels unless |
n_radials |
the number of concentric circles to divide a circular area into. |
n_slices |
the number of slices to divide a circular area into. |
n_bootstraps |
the number of random data samples used to calculate the minimum enclosing circle defining each circular area. |
The input matrix with additional positional information added for each timepoint.
rubitPlotPosition
to visualise positional information, and rubitMetrics
to understand the different steps of processing.
1 2 3 4 5 | data(tenebrio_basic)
### Divide circular area into 96 cells, and define thigmotaxis
### as movement within 20mm of the area perimeter.
sapply(tenebrio_basic, rubitCalcPosition, n_radials = 8, n_slices = 12, thigmo_dist = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.