{"schemaVersion":"1.1.0","slug":"tool-fear-conditioning-analyzer","identifier":"csdata:tool-fear-conditioning-analyzer:1.0.0","title":"ConductScience Fear Conditioning Analyzer: method and validation record","shortDescription":"The calculation behind ConductScience's free fear conditioning analyzer, with four worked examples that check it.","description":"Method and validation record for the free Fear Conditioning Analyzer at conductscience.com/tools/fear-conditioning-analyzer. From freezing percentages, the tool computes cued freezing (CS minus pre-CS), contextual freezing and a generalisation score (conditioning context minus a neutral context), with group means and SEMs. Four hand-worked examples, on the measures described by Curzon et al. (2009), cover cued freezing, generalisation between contexts, a group mean and SEM, and a one-animal group, which gets an SEM of 0 (no error bar). The record holds the calculation source files, the worked examples, a validation report with each file's SHA-256, and what changed on the tool page when the record was written.","creators":[{"name":"ConductScience","type":"Organization"}],"publishedAt":"2026-09-28","updatedAt":"2026-09-28","version":"1.0.0","doi":"10.55157/csd.tool.fearcond.2026.001","doiProvider":"Crossref","doiRegisteredAt":"2026-09-28T13:42:30Z","doiRegisteredLocalDate":"2026-09-28","doiRegistrationTimeZone":"America/New_York","doiVerifiedAt":"2026-09-28T14:13:26Z","access":"open","license":{"name":"MIT and CC BY 4.0"},"licenseLabel":"MIT (code); CC BY 4.0 (text, worked examples and reports)","rightsStatement":"The calculation source files in engine/ are released under the MIT License. The record text, worked examples and validation report are released under CC BY 4.0. Cite the record when you use the files.","subjects":["Research software","Method validation","Behavioral neuroscience","Learning and memory"],"methods":["Worked examples: each of the four cases gives its inputs, the expected outputs, the source and passage behind the expected answer, and the arithmetic. Expected answers are worked by hand from the published method, or from the tool's own rule where METHODS.md labels it a convention. Cases whose ids start with edge- test inputs at the limits of the method.","Check: each case was run in Node.js 24 through the tool's calculation source files, and every output was compared with its expected value, exactly or within the tolerance the case states. All four cases pass (validation-report.json), and ConductScience's test suite runs the same cases whenever the tool changes.","Fingerprint: the validation report gives the byte count and SHA-256 of each calculation file and of the files that ran the check, and engine/ holds those files, so anyone can rerun the cases and tell whether a later version of the calculation differs from this one."],"source":{"repository":"https://github.com/ConductScienceInc/csd-tool-fear-conditioning-analyzer","tag":"v1.0.0","commit":"41b1e0013ec6d3a892718618e82cd2fb7c0964cc","releasedAt":"2026-09-28T13:12:55Z"},"basedOn":"https://conductscience.com/tools/fear-conditioning-analyzer","manifest":{"files":15,"bytes":20294,"sha256":"00a4b1aee78e9e6d7ba9ac3dc2747ae06b217a8a77d78202030dd92e1cb4bb72"},"archive":{"entries":16,"bytes":12118,"sha256":"a9f342de908f4ed8ba26669cfc41249c6c2e2b0cb7b39a4e2e039bfb9d7c37e8"},"files":[{"name":"tool-fear-conditioning-analyzer-record-1.0.0.zip","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/tool-fear-conditioning-analyzer-record-1.0.0.zip","mediaType":"application/zip","sizeBytes":12118,"sha256":"a9f342de908f4ed8ba26669cfc41249c6c2e2b0cb7b39a4e2e039bfb9d7c37e8","description":"Complete frozen release: 15 source-manifest files plus MANIFEST.json."},{"name":"cases.csv","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/cases.csv","mediaType":"text/csv","sizeBytes":1741,"sha256":"71baec0537d77cbc793afc8d302f6cfce4400cec614bdec7379ab38c97abd904","description":"The worked examples, one row each: what the case checks, the source of the expected answer, the expected outputs and whether the engine matched them."},{"name":"cases.json","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/cases.json","mediaType":"application/json","sizeBytes":3396,"sha256":"92639bf282c0e665d9ca7c73e2ca3d305b328868dc3d05c9cb2eb5e34981d707","description":"The worked examples in full: inputs, expected outputs, tolerances, source passage and the arithmetic behind each expected answer."},{"name":"validation-report.json","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/validation-report.json","mediaType":"application/json","sizeBytes":2023,"sha256":"df62096c069dea1fa608dfe74a83f6fe5eaa137bb2a2d7af7706b16ad233d7af","description":"The engine's output for every case, pass or fail, with the byte count and SHA-256 of each calculation and harness file."},{"name":"data_dictionary.csv","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/data_dictionary.csv","mediaType":"text/csv","sizeBytes":472,"sha256":"96b57ee5185ffcccc5397d98673c42bbc53ff77cc7f676fe5789ef04a7648090","description":"Columns of cases.csv."},{"name":"README.md","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/README.md","mediaType":"text/markdown","sizeBytes":1665,"sha256":"a4818944caf570d8f603a7403787fd81d6e16067ee0292ca52148673ad318084","description":"What the tool computes, the files, and how to cite the record."},{"name":"METHODS.md","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/METHODS.md","mediaType":"text/markdown","sizeBytes":1788,"sha256":"ee753f089a25f9b6da6f6b02d2c3c536735b9b7d0fb70b09ef0f2587987da25d","description":"Formulas, input rules, conventions, references and what changed on the tool page."},{"name":"MANIFEST.json","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/MANIFEST.json","mediaType":"application/json","sizeBytes":2356,"sha256":"00a4b1aee78e9e6d7ba9ac3dc2747ae06b217a8a77d78202030dd92e1cb4bb72","description":"Byte count and SHA-256 for every file in the source release."},{"name":"CITATION.cff","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/CITATION.cff","mediaType":"text/yaml","sizeBytes":418,"sha256":"050ab8c5db3cae393a0194671e6a20fe16c64d7d2ff530f2d82dfe3204ae200e","description":"Citation metadata."},{"name":"LICENSE","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/LICENSE","mediaType":"text/plain","sizeBytes":1361,"sha256":"d2dca2297cc985f3577b9376fbf5a72231ac88be401776098486f6d1e8a4d87a","description":"MIT License for the calculation source files; CC BY 4.0 for everything else."},{"name":"deposit-receipt.json","url":"/data/records/tool-fear-conditioning-analyzer/1.0.0/deposit-receipt.json","mediaType":"application/json","sizeBytes":3057,"sha256":"7e0c0c1aa934d816b4c19d7b3e0f59865e92a4a039d8c3b0de169d610d1a42e9","description":"ConductScience verification and packaging receipt."}],"previewFile":"cases.csv","preview":{"columns":["id","title","source_type","expected","pass"],"rows":[["hand-worked-cued","Cued freezing above the pre-CS baseline","hand-worked","{\"cuedFreezing\":55}","true"],["hand-worked-generalisation","More freezing in the conditioning context than in a neutral context","hand-worked","{\"contextualFreezing\":70,\"generalisation\":50}","true"],["hand-worked-group-sem","Group mean and SEM of three animals' cued freezing","hand-worked","{\"mean\":55,\"sem\":5.773502692,\"n\":3}","true"],["edge-single-animal","A group with one animal","hand-worked","{\"mean\":40,\"sem\":0,\"n\":1}","true"]]},"dataDictionary":[{"file":"cases.csv","description":"One row per worked example.","columns":[{"name":"id","type":"string","values":"e.g. hand-worked-cued","description":"Case identifier; edge cases start with \"edge-\""},{"name":"title","type":"string","values":"","description":"What the case checks"},{"name":"source_type","type":"string","values":"hand-worked","description":"Where the expected answer comes from: published, hand-worked, analytic or cross-check"},{"name":"citation","type":"string","values":"","description":"Source of the method or the expected answer"},{"name":"locator","type":"string","values":"","description":"Section, formula or table of the source that the case relies on"},{"name":"expected","type":"JSON object","values":"null: not computable","description":"Expected outputs as JSON; null means not computable"},{"name":"pass","type":"boolean","values":"true, false","description":"true when every expected output matched the engine within the stated tolerance"}]},{"file":"cases.json","description":"The worked examples in full: inputs, expected outputs, tolerances, source passage and the arithmetic behind each expected answer.","columns":[]},{"file":"validation-report.json","description":"The engine's output for every case, pass or fail, with the byte count and SHA-256 of each calculation and harness file.","columns":[]},{"file":"engine/behavior/fear-conditioning.ts","description":"Calculation source (MIT). Cued, contextual and generalisation freezing.","columns":[]},{"file":"engine/behavior/stats.ts","description":"Calculation source (MIT). Mean, SD and SEM for group summaries.","columns":[]},{"file":"engine/pilot-tools.ts","description":"Harness source (MIT). Slugs of the ten tools with validation records; the check accepts only these.","columns":[]},{"file":"engine/validation/run.ts","description":"Harness source (MIT). Runs one case: passes its inputs to the tool's adapter and compares each output with the expected value within the tolerance.","columns":[]},{"file":"engine/validation/tools/fear-conditioning-analyzer.ts","description":"Harness source (MIT). Adapter from a case's inputs to this tool's calculation, returning the outputs the cases check.","columns":[]},{"file":"engine/validation/types.ts","description":"Harness source (MIT). Types for cases, tolerances and results.","columns":[]}],"citation":"ConductScience. (2026). ConductScience Fear Conditioning Analyzer: method and validation record (Version 1.0.0) [Data set]. ConductScience Data. https://doi.org/10.55157/csd.tool.fearcond.2026.001","relatedResearch":[{"title":"ConductScience Fear Conditioning Analyzer (live tool)","url":"https://conductscience.com/tools/fear-conditioning-analyzer","relation":"Documents"},{"title":"Curzon, Rustay and Browman (2009). Cued and contextual fear conditioning for rodents. In: Methods of Behavior Analysis in Neuroscience, 2nd edition","url":"https://doi.org/10.1201/noe1420052343.ch2","relation":"Reference source"}]}