Learn R Programming

Rtrack (version 2.0.3)

call_strategy: Calculation of search strategies.

Description

Calculates search strategies from path metrics.

Usage

call_strategy(metrics, model = "default")

Value

An rtrack_strategies object. The calls element contains the called strategy/strategies as well as confidence scores for all possible strategies.

Arguments

metrics

An rtrack_metrics object from calculate_metrics, a list of such objects or an rtrack_experiment object.

model

The strategy calling model that should be used. Default models have been implemented for for Morris water maze and Barnes maze (mwm_rf_v7 and mb_rf_v1 respectively; both trained on mouse data).

Details

This function implements a classifier based on a trained random forest model. If the model parameter is left at "default", then the default model for the appropriate experiment type will be automatically selected. Please note that search strategies are only available for Morris water maze and Barnes maze at this stage. It is expected that other models will be added in the future and your feedback is welcome.

See Also

threshold_strategies, plot_strategies.

Examples

Run this code
require(Rtrack)
track_file <- system.file("extdata", "Track_1.tab", package = "Rtrack")
arena_description <- system.file("extdata", "Arena.txt", package = "Rtrack")
arena <- read_arena(arena_description)
path <- read_path(track_file, arena, track.format = "raw.tab")
metrics <- calculate_metrics(path, arena)
strategies <- call_strategy(metrics)
# Inspect the strategy call
strategies$calls

Run the code above in your browser using DataLab