You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Regions which are \"children\" of a Swanson region will not be included in the acronyms. For example `PTLp` is in Swanson, but its children `VISa` and `VISrl`(i.e. a finer parcellation of `PTLp`) are not:"
79
+
],
80
+
"metadata": {
81
+
"collapsed": false
82
+
}
83
+
},
84
+
{
85
+
"cell_type": "code",
86
+
"execution_count": null,
87
+
"outputs": [],
88
+
"source": [
89
+
"# Example: Check if PTLp is in Swanson\n",
90
+
"np.isin(['PTLp'], swanson_ac)\n",
91
+
"# Example: Check if VISa and VISrl are in Swanson\n",
92
+
"np.isin(['VISa', 'VISrl'], swanson_ac)"
93
+
],
94
+
"metadata": {
95
+
"collapsed": false,
96
+
"pycharm": {
97
+
"name": "#%%\n"
98
+
}
99
+
}
100
+
},
101
+
{
102
+
"cell_type": "markdown",
103
+
"source": [
104
+
"As such, you can only plot value for a given region that is in Swanson. This was done to ensure there is no confusion about how data is aggregated and represented per region (for example, if you were to input values for both `VISa` and `VISrl`, it is unclear whether the mean, median or else should have been plotted onto the `PTLp` area - instead, we ask you to do the aggregation yourself and pass this into the plotting function).\n",
"For completeness, we present below how to load the trials object using the `one.load_object` method, however we recommend you use the code above and use the `SessionLoader` instead."
49
87
],
50
88
"metadata": {
51
89
"collapsed": false
@@ -56,6 +94,9 @@
56
94
"execution_count": null,
57
95
"outputs": [],
58
96
"source": [
97
+
"'''\n",
98
+
"ALTERNATIVE - NOT RECOMMENDED\n",
99
+
"'''\n",
59
100
"from one.api import ONE\n",
60
101
"one = ONE()\n",
61
102
"eid = '4ecb5d24-f5cc-402c-be28-9d0f7cb14b3a'\n",
@@ -73,9 +114,10 @@
73
114
"id": "0514237a",
74
115
"metadata": {},
75
116
"source": [
76
-
"## Loading a subject's trials\n",
77
-
"This loads all trials data for a given subject (all session trials concatenated) into a DataFrame.\n",
78
-
"The subjectTraining table contains the training statuses."
117
+
"## Loading all the sessions' trials for a single subject at once\n",
118
+
"If you want to study several sessions for a single subject, we recommend you use the `one.load_aggregate` method rather than downloading each trials data individually per session.\n",
119
+
"This methods loads all the trials data `subjectTrials` for a given subject into a single DataFrame (i.e. all session trials are concatenated).\n",
120
+
"You can use the same method to load the `subjectTraining` table, which contains the training statuses."
0 commit comments