# Nesting over Activity state

Aim

To pick out data the data collected when the subject was in one of the states defined by the dependent variable Activity state.

example Select all samples when the rat was in inactive (freezing), and based on this selection, make a heatmap to highlight where freezing occurred.

Procedure

1.In the Data Profile, under Nesting click the button next to Activity state.

2.In the Activity State window:

▪Under Outlier filter, enter an Averaging interval to smooth the values of acceleration.

▪Under Number of states, enter how many different categories you want to split the data in.

▪Under Thresholds, enter the thresholds that defines the various activity states.

▪Under Calculate nesting for, select the state that the intervals are based on.

▪Under State duration threshold, enter the minimal duration of the state chosen in the previous step.

For details about how Activity state is calculated, see Dependent Variables in Detail > Activity state.

3. Click OK. Proceed with step 4 in How to select track segments.

Notes

▪You can only nest over Activity state if you selected Activity analysis in the Experiment Settings, and for experiments with one subject per arena.

▪If you want to select track segments based on more states (e.g. Active and Highly active), create one Nest box for each state, and combine them with OR logic. This selects the time when the subject was in one of those states (e.g. either Active or Highly active). See Basic rules for combining selection boxes

▪For Activity state, it is possible to select different thresholds for nesting (see above) and for analysis (see Activity state in the Analysis profile). You should either use the same thresholds or make the thresholds in your analysis profile more restrictive, so that the variable specified in the Analysis profile is in effect a fine-tuning of your nesting criteria.