[
  {
    "id": "analytic-straight-track",
    "title": "A straight run across a 40 × 40 cm arena at one position per second",
    "sourceType": "analytic",
    "source": {
      "citation": "Seibenhener ML, Wooten MC. Use of the Open Field Maze to measure locomotor and anxiety-like behavior in mice. J Vis Exp. 2015;(96):e52434.",
      "doi": "10.3791/52434",
      "locator": "Open field measures: distance travelled, velocity, time in the center and entries into it, time near the walls",
      "arithmetic": "Center zone = 25% of the area: a 20 × 20 cm square from 10 to 30 cm on both axes. Steps of 10, 10, 10 and 6 cm give 36 cm in 4 s = 9 cm/s. The intervals ending at x = 12 and x = 22 end in the center: 2 s of 4 = 50%, entered once (at x = 12). The wall band is the outer 10% of each side (x > 36 here); only the interval ending at x = 38 is in it: 1 s of 4 = 25%."
    },
    "input": {
      "arena": {
        "shape": "rectangle",
        "width": 40,
        "height": 40,
        "centerPct": 25
      },
      "points": [
        {
          "t": 0,
          "x": 2,
          "y": 20
        },
        {
          "t": 1,
          "x": 12,
          "y": 20
        },
        {
          "t": 2,
          "x": 22,
          "y": 20
        },
        {
          "t": 3,
          "x": 32,
          "y": 20
        },
        {
          "t": 4,
          "x": 38,
          "y": 20
        }
      ]
    },
    "expected": {
      "totalDistance": 36,
      "meanVelocity": 9,
      "centerTime": 2,
      "centerPct": 50,
      "centerEntries": 1,
      "thigmotaxisIndex": 25
    },
    "tolerance": {
      "totalDistance": 1e-12,
      "meanVelocity": 1e-12,
      "centerTime": 1e-12,
      "centerPct": 1e-12,
      "thigmotaxisIndex": 1e-12
    }
  },
  {
    "id": "analytic-center-edge",
    "title": "A position exactly on the center boundary",
    "sourceType": "analytic",
    "source": {
      "citation": "Seibenhener ML, Wooten MC. Use of the Open Field Maze to measure locomotor and anxiety-like behavior in mice. J Vis Exp. 2015;(96):e52434.",
      "doi": "10.3791/52434",
      "locator": "Center zone of the open field",
      "arithmetic": "The center square runs from 10 to 30 cm and includes its edges. Positions (2, 20), (10, 20), (2, 20) at 0, 1 and 2 s: the first interval ends on the boundary at x = 10, so it counts as 1 s in the center and one entry; the second ends at x = 2, outside the center and in the wall band (x < 4). Distance 8 + 8 = 16 cm; center 1 s of 2 = 50%; wall band 1 s of 2 = 50%."
    },
    "input": {
      "arena": {
        "shape": "rectangle",
        "width": 40,
        "height": 40,
        "centerPct": 25
      },
      "points": [
        {
          "t": 0,
          "x": 2,
          "y": 20
        },
        {
          "t": 1,
          "x": 10,
          "y": 20
        },
        {
          "t": 2,
          "x": 2,
          "y": 20
        }
      ]
    },
    "expected": {
      "totalDistance": 16,
      "centerTime": 1,
      "centerPct": 50,
      "centerEntries": 1,
      "thigmotaxisIndex": 50
    },
    "tolerance": {
      "totalDistance": 1e-12,
      "centerTime": 1e-12,
      "centerPct": 1e-12,
      "thigmotaxisIndex": 1e-12
    }
  },
  {
    "id": "edge-single-position",
    "title": "An animal with a single tracked position",
    "sourceType": "analytic",
    "source": {
      "citation": "Seibenhener ML, Wooten MC. Use of the Open Field Maze to measure locomotor and anxiety-like behavior in mice. J Vis Exp. 2015;(96):e52434.",
      "doi": "10.3791/52434",
      "locator": "Open field measures are rates and shares of the session time",
      "arithmetic": "One position gives no session time (last time − first time = 0), so velocity, % center time and the thigmotaxis index would divide by zero. The page leaves the animal out of the analysis and names it after the upload."
    },
    "input": {
      "arena": {
        "shape": "rectangle",
        "width": 40,
        "height": 40,
        "centerPct": 25
      },
      "points": [
        {
          "t": 0,
          "x": 20,
          "y": 20
        }
      ]
    },
    "expected": {
      "included": false
    }
  }
]
