[
  {
    "id": "hand-worked-sequence",
    "title": "Ten arm entries with five spontaneous alternations",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kraeuter AK, Guest PC, Sarnyai Z. The Y-Maze for Assessment of Spatial Working and Reference Memory in Mice. Methods Mol Biol. 2019;1916:105-111.",
      "doi": "10.1007/978-1-4939-8994-2_10",
      "locator": "Spontaneous alternation: consecutive entries into all three arms, as a percentage of the possible alternations (total entries − 2)",
      "arithmetic": "A B C A C B A B C B: triplets ABC yes, BCA yes, CAC no, ACB yes, CBA yes, BAB no, ABC yes, BCB no. 5 alternations of 10 − 2 = 8 possible = 62.5%. No entry repeats the arm before it."
    },
    "input": {
      "sequence": "A B C A C B A B C B"
    },
    "expected": {
      "entries": 10,
      "possible": 8,
      "alternations": 5,
      "pct": 62.5,
      "sameArmReturns": 0
    },
    "tolerance": {
      "pct": 1e-9
    }
  },
  {
    "id": "hand-worked-with-return",
    "title": "Six arm entries including one return to the same arm",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kraeuter AK, Guest PC, Sarnyai Z. The Y-Maze for Assessment of Spatial Working and Reference Memory in Mice. Methods Mol Biol. 2019;1916:105-111.",
      "doi": "10.1007/978-1-4939-8994-2_10",
      "locator": "Spontaneous alternation and same-arm returns",
      "arithmetic": "A B B C A B: triplets ABB no, BBC no, BCA yes, CAB yes. 2 alternations of 6 − 2 = 4 possible = 50%. B B is one same-arm return."
    },
    "input": {
      "sequence": "A B B C A B"
    },
    "expected": {
      "entries": 6,
      "possible": 4,
      "alternations": 2,
      "pct": 50,
      "sameArmReturns": 1
    },
    "tolerance": {
      "pct": 1e-9
    }
  },
  {
    "id": "hand-worked-tracking-rows",
    "title": "Tracking rows with a center zone and a return to the same arm",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kraeuter AK, Guest PC, Sarnyai Z. The Y-Maze for Assessment of Spatial Working and Reference Memory in Mice. Methods Mol Biol. 2019;1916:105-111.",
      "doi": "10.1007/978-1-4939-8994-2_10",
      "locator": "An arm entry is counted each time the animal enters an arm; leaving through the center and coming back is a new entry",
      "arithmetic": "Rows A, A, CENTER, A, B, B, CENTER, CENTER, C give the entries A, A, B, C: the first two A rows are one entry, the A after the center is a second entry into A, the two B rows are one entry, and center rows are not arms. Triplets AAB no, ABC yes: 1 of 2 = 50%, one same-arm return."
    },
    "input": {
      "zones": [
        "A",
        "A",
        "CENTER",
        "A",
        "B",
        "B",
        "CENTER",
        "CENTER",
        "C"
      ]
    },
    "expected": {
      "entries": 4,
      "possible": 2,
      "alternations": 1,
      "pct": 50,
      "sameArmReturns": 1
    },
    "tolerance": {
      "pct": 1e-9
    }
  },
  {
    "id": "edge-fewer-than-three-entries",
    "title": "Two arm entries: no triplet to score",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kraeuter AK, Guest PC, Sarnyai Z. The Y-Maze for Assessment of Spatial Working and Reference Memory in Mice. Methods Mol Biol. 2019;1916:105-111.",
      "doi": "10.1007/978-1-4939-8994-2_10",
      "locator": "Possible alternations = total entries − 2",
      "arithmetic": "A B: 2 − 2 = 0 possible alternations, so the percentage is 0 / 0 and not computable. The tool shows it as not computable and leaves the animal out of group statistics."
    },
    "input": {
      "sequence": "A B"
    },
    "expected": {
      "entries": 2,
      "possible": 0,
      "alternations": 0,
      "pct": null,
      "sameArmReturns": 0
    }
  }
]
