[
  {
    "id": "hand-worked-sociability",
    "title": "Twice as much time in the stranger chamber as in the empty chamber",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kaidanovich-Beilin O, Lipina T, Vukobradovic I, Roder J, Woodgett JR. Assessment of social interaction behaviors. J Vis Exp. 2011;(48):2473.",
      "doi": "10.3791/2473",
      "locator": "Session I (social affiliation): Stranger 1 in a wire cup in one side chamber, an empty cup in the other, and free access to all three chambers; time in the two side chambers is compared. The index (stranger − empty) / (stranger + empty) is this tool's summary of that comparison.",
      "arithmetic": "Stranger chamber 300 s, empty chamber 150 s, together 450 s. Sociability index = (300 − 150) / 450 = 0.333333. Preference = 300 / 450 × 100 = 66.6667%."
    },
    "input": {
      "target": 300,
      "other": 150
    },
    "expected": {
      "index": 0.3333333333,
      "preferencePct": 66.6666666667
    },
    "tolerance": {
      "index": 1e-9,
      "preferencePct": 1e-7
    }
  },
  {
    "id": "hand-worked-side-bias",
    "title": "Habituation with most side-chamber time on the left",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kaidanovich-Beilin O, Lipina T, Vukobradovic I, Roder J, Woodgett JR. Assessment of social interaction behaviors. J Vis Exp. 2011;(48):2473.",
      "doi": "10.3791/2473",
      "locator": "The stranger's side is alternated between trials because a mouse can prefer one side. Scoring habituation time in the two side chambers and flagging a left share above 60% or below 40% is this tool's convention; in this protocol the side chambers are closed off during habituation, so the check applies to protocols that open them.",
      "arithmetic": "Left 200 s, center 300 s, right 100 s. The side chambers hold 300 s, of which the left has 200 / 300 = 66.7%, above 60%, so the animal is flagged. Dividing by all 600 s instead gives 33.3% and 16.7%, a 16.7-point gap that the page's old 20-point rule did not flag."
    },
    "input": {
      "habituation": {
        "leftTime": 200,
        "centerTime": 300,
        "rightTime": 100
      }
    },
    "expected": {
      "leftShare": 0.6666666667,
      "flagged": true
    },
    "tolerance": {
      "leftShare": 1e-9
    }
  },
  {
    "id": "edge-no-side-time",
    "title": "No time in either compared chamber",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Kaidanovich-Beilin O, Lipina T, Vukobradovic I, Roder J, Woodgett JR. Assessment of social interaction behaviors. J Vis Exp. 2011;(48):2473.",
      "doi": "10.3791/2473",
      "locator": "Session I compares time in the two side chambers; the index is this tool's convention",
      "arithmetic": "Stranger chamber 0 s, empty chamber 0 s: both the index and the preference are 0 / 0 and not computable. The tool shows them as not computable and leaves the animal out of group statistics."
    },
    "input": {
      "target": 0,
      "other": 0
    },
    "expected": {
      "index": null,
      "preferencePct": null
    }
  }
]
