Code and processed data for: Neural codes track prior events in a narrative and predict subsequent memory for details
Description
This repository contains all code used for (Collin et al., neural codes track prior events in a narrative and predict subsequent memory for details, on biorxiv: https://www.biorxiv.org/content/10.1101/2024.02.13.580092v3), commented but non-runnable, as well as processed data. The raw data can be found on openneuro (https://openneuro.org/datasets/ds005050).
behav_PredictionsTask-Day1.ipynb, behav_PredictionsTask-Day2.ipynb, behav_schematest.ipynb This contains all code for analyzing the behavioral data (schema prediction questions during video viewing for day 1 and 2 (as used for figure 4A), schema test at end of day 2 (as used for figure 4B).
brainToBehavLink.ipynb This script calculates the within-subject brain to behavior (memory for details, memory for rituals) correlations and compares this to a null distribution (as used for table 1 and figure 11).
tval_evaluate_coloredBrain_fingerprints.ipynb This script takes the calculated p-values for each searchlight as calculated before and plots that as a whole-brain .nii file (as used for figure 5). It saves both a brainmap with all p-values as well as an fdr-corrected one
get_distilled_neural_measures_SHPC.py This script averages over searchlights to calculate average values for the brain to behavior link. RSA_day2_2021march1_E2.py, RSA_day2_2021march1_E3.py and RSA_day2_2021march1_E4.py These scripts are used to calculate the neural similarity timelines as used for the violinplots (described below).
paperFigures.ipynb and paperFigures-GrandAverages.ipynb These scripts take the rsa neural similarity TR-by-TR timelines, averages over time for each event, and create 3-by-3 plots (paperFigures.ipynb) or within vs across-stage averages (paperFigures-GrandAverages.ipynb), separately for each of other neural codes in the study (schema, rotated, path, event). Scripts as used for figure 6 to 10 and A1, A2, A3.
Processed data data_for_all_behavTests
This repository has processed data csv files used for analyzing the schema learning during day 1 (day1_SchemaPrediction_coinTorchPrediction.csv and day1_SchemaPrediction_eggPaintingPrediction.csv), day2 schema test (day2_test_for_schemalearning.csv), day2 stop-and-ask prediction questions (day2_SchemaPrediction.csv), and data of the recall task (day2_recall_EpisodicDetails.xlsx, day2_recall_Rituals.xlsx). data_for_brainToBehaviorCorrelation
This repository has processed data used for the brain-to-behavior correlations (within subject) for each of the neural codes assessed in the study (saved as 6 json files). data_for_brainToBehaviorCorrelation
This repository has processed data used to test significance for the brain-to-behavior correlations (all correlations to memory for details as well as to memory for rituals was compared against a null distribution), for each of the neural codes assessed in the study (saved as csv files that end with *nullDistribution_NEW.csv). data_for_rsa_brain_maps
This repository has processed data related to the RSA analyses in the form of nii files, one file for each of the neural codes, with an fdr 0.05 threshold (saved inverted, i.e. 1 minus pvalue). data_for_rsa_timelines
This repository has processed data concerning the rsa violin plots for each of the neural codes assessed in the study. Each csv file has neural similarity values TR-by-TR for each participants. Each file used either event2, event3 or event4 template to compare it to, and either for other-event/other-schema, other-event/same-schema, same-event/same-schema or same-event/other-schema. Each of the 5 neural codes has 12 csv files saved for creation of violin plots, one for same-event-same-schema, one for same-event-other-schema, one for other-event-other-schema, and one for other-event-same-schema, and additionally all 4 of those separately for event2, event3 and event 4 templates.
Files
behav_PredictionsTask-Day1.ipynb
Files
(20.0 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:d618a52a4c164a7a4e5c5c96fe5c3b46
|
13.6 kB | Preview Download |
|
md5:3e18c47920e2a9991e7c8db73540c9f5
|
10.6 kB | Preview Download |
|
md5:5d5840616d58ad0d42d1f28ef6227afb
|
11.3 kB | Preview Download |
|
md5:86258a677aee8818628640ed8e88fbef
|
83.2 kB | Preview Download |
|
md5:e2f9e004971bad4af759429e19999b6d
|
1.6 kB | Preview Download |
|
md5:f834dafde0c1262f33bf87e9ce4fe593
|
1.6 kB | Preview Download |
|
md5:85574fd97ac553506b2e5360f55f9d51
|
14.5 kB | Download |
|
md5:e351918a1933a720c8ff7c38cddea0fa
|
14.4 kB | Download |
|
md5:9bbffab64cdbcae561b87f9aef5c94ee
|
296 Bytes | Preview Download |
|
md5:fd24ae170d6e82c282e8c82349d9ebe1
|
1.1 kB | Preview Download |
|
md5:6dab09b903cd07376f0b3326c2a22353
|
5.1 kB | Download |
|
md5:8e78eb305b8c5f526b36f3127ca99411
|
79.8 kB | Preview Download |
|
md5:be5eb52bc1c4095015a9b5a092ba082c
|
326.1 kB | Preview Download |
|
md5:0929efc81d0ca2372d02e1218d4e2e48
|
1.1 MB | Download |
|
md5:c1a80e7b34ca072fd73e2a13ed62ba3f
|
4.3 MB | Download |
|
md5:748233bef5b7c2c1ebd9f2ad03257c51
|
62.4 kB | Preview Download |
|
md5:b68f708d8bdd0d589bf24de3abf88177
|
62.7 kB | Preview Download |
|
md5:00af5866d26a7708007bd72c95bd55f7
|
63.0 kB | Preview Download |
|
md5:f455061421a892a4f14efbf52adee06f
|
62.4 kB | Preview Download |
|
md5:969a429cbbc30801c7dd714d82789139
|
62.8 kB | Preview Download |
|
md5:2045ef00dd00925f0af6079f545b12e4
|
62.9 kB | Preview Download |
|
md5:6e231bed4888a879e20040db41f20ba8
|
62.3 kB | Preview Download |
|
md5:3fec33dc7c7199996a87781165523a77
|
62.6 kB | Preview Download |
|
md5:918ee7418aa61afe9224ddbf961b2fcf
|
62.7 kB | Preview Download |
|
md5:5a716702fde61ed360de1ca052b57f58
|
62.4 kB | Preview Download |
|
md5:388a5718e3e84f4ed6e3dab69d7de102
|
62.7 kB | Preview Download |
|
md5:aeef7363a65250c250313d6c67743d0c
|
62.7 kB | Preview Download |
|
md5:428e8aeb5fa46aad5c81ba7fe0e4c128
|
41.9 kB | Preview Download |
|
md5:288465a41ebb5c54843f0a68397931d2
|
23.6 kB | Preview Download |
|
md5:b2de053a6abde8ea596d492d70ea0f55
|
23.5 kB | Preview Download |
|
md5:316531ba4aa2e54202f366d5398538f7
|
23.5 kB | Preview Download |
|
md5:decfbb470fec8f6602ff2cf1fcd78c88
|
23.5 kB | Preview Download |
|
md5:1f1a839caa2ed23fbfcf06bd5961a15d
|
23.6 kB | Preview Download |
|
md5:9de95d66601524e9733eacc3fb5116f6
|
23.5 kB | Preview Download |
|
md5:c3247c521235c3cc166c3f3570da5e51
|
23.6 kB | Preview Download |
|
md5:a9d099440b32fff9a3acfe03aec61654
|
23.5 kB | Preview Download |
|
md5:e36515573f0707836a4318e7438f05e5
|
23.6 kB | Preview Download |
|
md5:ebb3f740ad6a6459717071241e63c5fe
|
23.5 kB | Preview Download |
|
md5:22dd54ec503649f076295ea31bc47ca4
|
40.2 kB | Preview Download |
|
md5:89fc477c6dbaecb61d0ee0d2ef7b864b
|
61.3 kB | Preview Download |
|
md5:065cb0c8fd1105ed67779e32a5eb4088
|
61.2 kB | Preview Download |
|
md5:477f64b15bc1face42501804f87dd0e4
|
61.1 kB | Preview Download |
|
md5:717f46aac6d9738ad3ebfae749803da7
|
61.3 kB | Preview Download |
|
md5:c3ad863f24d2297de06b5b9d94b92fd1
|
61.4 kB | Preview Download |
|
md5:5001b7a37e828c2e0c5a07f94ce9de3a
|
61.4 kB | Preview Download |
|
md5:6e54f3bcdb3080133632fbec411d2f96
|
61.2 kB | Preview Download |
|
md5:f3cd719e886a9f11ad1b98c8f044dbe6
|
61.3 kB | Preview Download |
|
md5:5aaf25137bf3e7e1b850db4b36990d97
|
61.3 kB | Preview Download |
|
md5:38e121c990dad3e2c9ab867ebf863e64
|
61.0 kB | Preview Download |
|
md5:846bcc8e3e4fd37697ca8783c7582fc0
|
61.2 kB | Preview Download |
|
md5:3676c35fc3164cb88460e12bbaeb1962
|
61.2 kB | Preview Download |
|
md5:91bf640d0e4d1bd6b75076a1d09202a9
|
4.3 MB | Download |
|
md5:3ae1f9ea1846d5956e3f89a46280386a
|
62.3 kB | Preview Download |
|
md5:a4f3b86532a03ccbfbaf034e51df6079
|
62.5 kB | Preview Download |
|
md5:cbfa6194831c726894429b8f894fbd67
|
62.6 kB | Preview Download |
|
md5:3627a3b2f5b0970be370cbb9b90de5d5
|
62.4 kB | Preview Download |
|
md5:1c47ce55f71230be86f28a2fb7792782
|
62.5 kB | Preview Download |
|
md5:8a115a3d52c5754bab36dac095f0e576
|
62.6 kB | Preview Download |
|
md5:e90fa5ca545919ba201a029965638182
|
62.3 kB | Preview Download |
|
md5:4772d25f8eaea6d63a08a6eeab6353e3
|
62.4 kB | Preview Download |
|
md5:a44502d29ad0e3d0b1895d3132819903
|
62.5 kB | Preview Download |
|
md5:33e010631a59c712335f73b13bccf7fd
|
62.3 kB | Preview Download |
|
md5:ab65e91fa51869c1f0105d18e4cbbb42
|
62.5 kB | Preview Download |
|
md5:26fac778e48a16e94385adb0a2a275af
|
62.4 kB | Preview Download |
|
md5:e6353b62aebb82d2a921ec69c074bfce
|
4.3 MB | Download |
|
md5:52af80fabf4e819ccfef11f9dad8dfa5
|
62.4 kB | Preview Download |
|
md5:e6d7bf6f64df83c0d271fefd5938efd8
|
62.1 kB | Preview Download |
|
md5:34526dc1f9392ce695d2260cc880a6da
|
62.4 kB | Preview Download |
|
md5:d9272fd0ae6ad0c75a9902e524b41d09
|
62.0 kB | Preview Download |
|
md5:e1d89fe4302eebf911438075416821eb
|
61.8 kB | Preview Download |
|
md5:059dca5e61ad952abce51163b1bbf951
|
62.0 kB | Preview Download |
|
md5:7bc3112a9d1d4a04fde01cef3d74931d
|
62.3 kB | Preview Download |
|
md5:673d29b0120dbf8fc1b00c228e3f09e4
|
62.3 kB | Preview Download |
|
md5:588de357060a47062f9790ecc86ffd74
|
62.2 kB | Preview Download |
|
md5:728e8f1bcf1da2972ca107ef51ac91cb
|
62.2 kB | Preview Download |
|
md5:e5ec23558de058ca0a54d74f60c9e3bd
|
62.2 kB | Preview Download |
|
md5:97f199f0aa52407ad7480a593369d9e0
|
62.3 kB | Preview Download |
|
md5:ceabf62373d33582b96ecf932dbe60b9
|
41.7 kB | Preview Download |
|
md5:d7c3fd0ce5372970246926bbc0313b8c
|
29.2 kB | Preview Download |
|
md5:a85789fce70569b0800b6f9a16d699c7
|
29.2 kB | Preview Download |
|
md5:69b1307bede75fcdab4cef17bc84ea88
|
13.3 kB | Download |
|
md5:ad928ca27d07224fea3b4c30da55ba64
|
15.2 kB | Download |
|
md5:bf8136178da72e53cb9ae79957a6bbb6
|
15.0 kB | Download |
|
md5:d9b5a532181eeb9c4cfbcd6af149db86
|
14.6 kB | Download |
|
md5:5a032737c29710f821dbef108ea1f00e
|
42.3 kB | Preview Download |
|
md5:bacd15a1f5977122acb1f5b2c1555fbb
|
1.1 MB | Download |
|
md5:76ed7f095e93167b7c248a2b8d4ac705
|
63.9 kB | Preview Download |
|
md5:f92fd87c2df161cd18ccf29738a6af66
|
63.8 kB | Preview Download |
|
md5:37b09c5050fbbde6963bda74ffe36ce7
|
64.0 kB | Preview Download |
|
md5:41daf8f16e373f1a70c8f5ead557f5c9
|
64.0 kB | Preview Download |
|
md5:74cd8fa49cdf3eca926d516bf5cbf908
|
63.8 kB | Preview Download |
|
md5:86f2061af9d23258560d2bc7f9dcdcbf
|
64.1 kB | Preview Download |
|
md5:889134f05b6301e19f4b35df6bcc14d9
|
63.9 kB | Preview Download |
|
md5:753eac515a1d5416ee63a59623aabde1
|
63.8 kB | Preview Download |
|
md5:9ca0fdd1cba6c6489d357aa5254f5424
|
63.9 kB | Preview Download |
|
md5:afdddaed7bb7e2f385364d52ed7b574d
|
64.0 kB | Preview Download |
|
md5:2f9d3700fe8971d4de83d24a1f55245d
|
64.0 kB | Preview Download |
|
md5:d1dd49e3664d22cc83c474434f6ff74a
|
64.0 kB | Preview Download |
|
md5:b5d0f28219170fd5b321386835ffd22a
|
26.2 kB | Preview Download |
Additional details
Identifiers
Related works
- Is supplement to
- Publication: https://www.biorxiv.org/content/10.1101/2024.02.13.580092v3 (URL)
Dates
- Updated
-
2025-01-20