Skip to content

Commit 8f6ecb0

Browse files
committed
Preparation for JOSS submission
1 parent 70173ef commit 8f6ecb0

7 files changed

+271
-0
lines changed

@gramm/stat_summary.m

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
% percentiles
2222
% - 'fitnormalci'
2323
% - 'fitpoissonci'
24+
% - 'fitbinomialci'
2425
% - 'fit95percentile'
2526
% - @function : provide a the handle to a custom function that takes
2627
% y values (as an n_repetitions x n_data_points matrix) and returns

examples.m

+45
Original file line numberDiff line numberDiff line change
@@ -1382,5 +1382,50 @@
13821382
g17.draw();
13831383

13841384

1385+
%% Raw matlab code equivalent to the first figure (in paper.md)
1386+
1387+
figure('Position',[100 100 800 400],'Color',[1 1 1]);
1388+
1389+
% Define groups
1390+
cyl = [4 6 8]; % Manually
1391+
orig = unique(cars.Origin_Region); % Based on data
1392+
1393+
% Loop over groups
1394+
for oi = 1:length(orig) % External loop on the axes
1395+
1396+
% Axes creation
1397+
ax = subplot(1,length(orig),oi);
1398+
hold on
1399+
1400+
for ci = 1:length(cyl) %Internal loop on the colors
1401+
1402+
% Data selection
1403+
sel = strcmp(cars.Origin_Region,orig{oi}) & ...
1404+
cars.Cylinders==cyl(ci) & ...
1405+
~isnan(cars.Model_Year) & ~isnan(cars.MPG);
1406+
1407+
% Plotting of raw data
1408+
plot(cars.Model_Year(sel),cars.MPG(sel),'.', ...
1409+
'MarkerSize',15);
1410+
1411+
% Keep the same color for the statistics
1412+
ax.ColorOrderIndex = ax.ColorOrderIndex - 1;
1413+
1414+
% Statistics (linear fit and plotting)
1415+
b = [ones(sum(sel),1) cars.Model_Year(sel)] \ ...
1416+
cars.MPG(sel);
1417+
x_fit = [min(cars.Model_Year(sel)) ...
1418+
max(cars.Model_Year(sel))];
1419+
plot(x_fit, x_fit * b(2) + b(1),'LineWidth',1.5);
1420+
end
1421+
1422+
% Axes legends
1423+
title(['Origin: ' orig{oi}]);
1424+
xlabel('Year');
1425+
ylabel('Fuel Economy (MPG)');
1426+
end
1427+
% Ugly color legend
1428+
l = legend('4','','6','','8','','Location','southeast');
1429+
title(l,'#Cyl');
13851430

13861431

gramm cheat sheet.pdf

856 Bytes
Binary file not shown.

paper/codemeta.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld",
3+
"@type": "Code",
4+
"author": [
5+
{
6+
"@id": "https://orcid.org/0000-0003-0984-7016",
7+
"@type": "Person",
8+
"email": "[email protected]",
9+
"name": "Pierre Morel",
10+
"affiliation": "German Primate Center"
11+
}
12+
],
13+
"identifier": "https://doi.org/10.5281/zenodo.594625",
14+
"codeRepository": "https://github.com/piermorel/gramm",
15+
"datePublished": "2018-01-31",
16+
"dateModified": "2018-01-31",
17+
"dateCreated": "2018-01-31",
18+
"description": "Gramm is a complete data visualization toolbox for Matlab. It provides an easy to use and high-level interface to produce publication-quality plots of complex data with varied statistical visualizations. Gramm is inspired by R's ggplot2 library.",
19+
"keywords": "data visualization, grouped data, visual analytics, plotting, matlab, statistical graphics",
20+
"license": "MIT",
21+
"title": "gramm",
22+
"version": "v2.23"
23+
}

paper/figure.png

299 KB
Loading

paper/paper.bib

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
@Book{Wickham:2009,
2+
author = {Hadley Wickham},
3+
title = {ggplot2: Elegant Graphics for Data Analysis},
4+
publisher = {Springer-Verlag New York},
5+
year = {2009},
6+
isbn = {978-0-387-98140-6},
7+
url = {http://ggplot2.org},
8+
}
9+
@book{Wilkinson:1999,
10+
author = {Leland Wilkinson},
11+
title = {The Grammar of Graphics},
12+
year = {1999},
13+
isbn = {0-387-98774-6},
14+
publisher = {Springer-Verlag New York, Inc.},
15+
address = {New York, NY, USA},
16+
}
17+
@misc{michael_waskom_2017_883859,
18+
author = {Michael Waskom and
19+
Olga Botvinnik and
20+
Drew O'Kane and
21+
Paul Hobson and
22+
Saulius Lukauskas and
23+
David C Gemperline and
24+
Tom Augspurger and
25+
Yaroslav Halchenko and
26+
John B. Cole and
27+
Jordi Warmenhoven and
28+
Julian de Ruiter and
29+
Cameron Pye and
30+
Stephan Hoyer and
31+
Jake Vanderplas and
32+
Santi Villalba and
33+
Gero Kunter and
34+
Eric Quintero and
35+
Pete Bachant and
36+
Marcel Martin and
37+
Kyle Meyer and
38+
Alistair Miles and
39+
Yoav Ram and
40+
Tal Yarkoni and
41+
Mike Lee Williams and
42+
Constantine Evans and
43+
Clark Fitzgerald and
44+
Brian and
45+
Chris Fonnesbeck and
46+
Antony Lee and
47+
Adel Qalieh},
48+
title = {mwaskom/seaborn: v0.8.1 (September 2017)},
49+
month = sep,
50+
year = 2017,
51+
doi = {10.5281/zenodo.883859},
52+
url = {https://doi.org/10.5281/zenodo.883859}
53+
}
54+
@article{JSSv040i01,
55+
author = {Hadley Wickham},
56+
title = {The Split-Apply-Combine Strategy for Data Analysis},
57+
journal = {Journal of Statistical Software, Articles},
58+
volume = {40},
59+
number = {1},
60+
year = {2011},
61+
keywords = {},
62+
abstract = {Many data analysis problems involve the application of a split-apply-combine strategy, where you break up a big problem into manageable pieces, operate on each piece independently and then put all the pieces back together. This insight gives rise to a new R package that allows you to smoothly apply this strategy, without having to worry about the type of structure in which your data is stored.
63+
64+
The paper includes two case studies showing how these insights make it easier to work with batting records for veteran baseball players and a large 3d array of spatio-temporal ozone measurements.},
65+
issn = {1548-7660},
66+
pages = {1--29},
67+
doi = {10.18637/jss.v040.i01},
68+
url = {https://www.jstatsoft.org/v040/i01}
69+
}
70+
@article{doi:10.1152/jn.00504.2017,
71+
author = {Enrico Ferrea and Lalitta Suriya-Arunroj and Dirk Hoehl and Uwe Thomas and Alexander Gail},
72+
title = {Implantable computer-controlled adaptive multi-electrode positioning system (AMEP)},
73+
journal = {Journal of Neurophysiology},
74+
volume = {Advance online publication},
75+
year = {2017},
76+
doi = {10.1152/jn.00504.2017},
77+
note ={PMID: 29187552},
78+
79+
URL = {
80+
https://doi.org/10.1152/jn.00504.2017
81+
82+
},
83+
eprint = {
84+
https://doi.org/10.1152/jn.00504.2017
85+
86+
}
87+
,
88+
abstract = { Acute neuronal recordings performed with metal microelectrodes in non-human primates allow investigating the neural substrate of complex cognitive behaviors. Yet, the daily re-insertion and positioning of the electrodes prevents recording from many neurons simultaneously, limiting the suitability of these types of recordings for brain-computer-interface applications or for large-scale population statistical methods on a trial-by-trial basis. In contrast, chronically implanted multi-electrode arrays offer the opportunity to record from many neurons simultaneously, but immovable electrodes prevent optimization of the signal during and after implantation and cause the tissue response to progressively impair the transduced signal quality, thereby limiting the number of different neurons that can be recorded over the lifetime of the implant. Semi-chronically implanted matrices of electrodes, instead, allow individually movable electrodes in depth and achieve higher channel count compared to acute methods, hence partially overcome these limitations. Existing semi-chronic systems with higher channel count lack computerized control of electrode movements, leading to limited user-friendliness and uncertainty in depth-positioning. Here we demonstrate a chronically-implantable Adaptive Multi-Electrode Positioning (AMEP) system with detachable drive for computerized depth-adjustment of individual electrodes over several millimeters. This semi-chronic 16-channel system is designed to optimize the simultaneous yield of units in an extended period following implantation since the electrodes can be independently depth-adjusted with minimal effort and their signal quality continuously assessed. Importantly, the electrode array is designed to remain within a chronic recording chamber for a prolonged time, or can be used for acute recordings with high signal-to-noise ratio in the cerebral cortex of non-human primates. }
89+
}
90+
@article{doi:10.1152/jn.00614.2017,
91+
author = {Michael Berger and Antonino Calapai and Valeska Stephan and Michael Niessing and Leonore Burchardt and Alexander Gail and Stefan Treue},
92+
title = {Standardized automated training of rhesus monkeys for neuroscience research in their housing environment},
93+
journal = {Journal of Neurophysiology},
94+
volume = {Advance online publication},
95+
year = {2017},
96+
doi = {10.1152/jn.00614.2017},
97+
note ={PMID: 29142094},
98+
99+
URL = {
100+
https://doi.org/10.1152/jn.00614.2017
101+
102+
},
103+
eprint = {
104+
https://doi.org/10.1152/jn.00614.2017
105+
106+
}
107+
,
108+
abstract = { Teaching non-human primates the complex cognitive behavioral tasks that are central to cognitive neuroscience research is an essential and challenging endeavor. It is crucial for the scientific success that the animals learn to interpret the often complex task rules, and reliably and enduringly act accordingly. To achieve consistent behavior and comparable learning histories across animals, it is desirable to standardize training protocols. Automatizing the training can significantly reduce the time invested by the person training the animal. And self-paced training schedules with individualized learning speeds based on automatic updating of task conditions could enhance the animals' motivation and welfare. We developed a training paradigm for across-task unsupervised training (AUT) of successively more complex cognitive tasks to be administered through a stand-alone housing-based system optimized for rhesus monkeys in neuroscience research settings (Calapai et al. 2016). The AUT revealed inter-individual differences in long-term learning progress between animals, helping to characterize learning personalities, and commonalities, helping to identify easier and more difficult learning steps in the training protocol. Our results demonstrate that (1) rhesus monkeys stay engaged with the AUT over months despite access to water and food outside the experimental sessions, but with lower numbers of interaction compared to conventional fluid-controlled training; (2) with unsupervised training across sessions and task levels, rhesus monkeys can learn tasks of sufficient complexity for state-of-the art cognitive neuroscience in their housing environment; (3) AUT learning progress is primarily determined by the number of interactions with the system rather than the mere exposure time. }
109+
}
110+
111+
@article{1741-2552-13-1-016002,
112+
author={Pierre Morel and Enrico Ferrea and Bahareh Taghizadeh-Sarshouri and Josep Marcel Cardona Audí and Roman
113+
Ruff and Klaus-Peter Hoffmann and Sören Lewis and Michael Russold and Hans Dietl and Lait Abu-Saleh and Dietmar
114+
Schroeder and Wolfgang Krautschneider and Thomas Meiners and Alexander Gail},
115+
title={Long-term decoding of movement force and direction with a wireless myoelectric implant},
116+
journal={Journal of Neural Engineering},
117+
volume={13},
118+
number={1},
119+
pages={016002},
120+
url={http://stacks.iop.org/1741-2552/13/i=1/a=016002},
121+
doi = {10.1088/1741-2560/13/1/016002},
122+
year={2016},
123+
abstract={Objective. The ease of use and number of degrees of freedom of current myoelectric hand prostheses is limited by the information content and reliability of the surface electromyography (sEMG) signals used to control them. For example, cross-talk limits the capacity to pick up signals from small or deep muscles, such as the forearm muscles for distal arm amputations, or sites of targeted muscle reinnervation (TMR) for proximal amputations. Here we test if signals recorded from the fully implanted, induction-powered wireless Myoplant system allow long-term decoding of continuous as well as discrete movement parameters with better reliability than equivalent sEMG recordings. The Myoplant system uses a centralized implant to transmit broadband EMG activity from four distributed bipolar epimysial electrodes. Approach. Two Rhesus macaques received implants in their backs, while electrodes were placed in their upper arm. One of the monkeys was trained to do a cursor task via a haptic robot, allowing us to control the forces exerted by the animal during arm movements. The second animal was trained to perform a center-out reaching task on a touchscreen. We compared the implanted system with concurrent sEMG recordings by evaluating our ability to decode time-varying force in one animal and discrete reach directions in the other from multiple features extracted from the raw EMG signals. Main results. In both cases, data from the implant allowed a decoder trained with data from a single day to maintain an accurate decoding performance during the following months, which was not the case for concurrent surface EMG recordings conducted simultaneously over the same muscles. Significance. These results show that a fully implantable, centralized wireless EMG system is particularly suited for long-term stable decoding of dynamic movements in demanding applications such as advanced forelimb prosthetics in a wide range of configurations (distal amputations, TMR).}
124+
}
125+
@article{10.1371/journal.pbio.2001323,
126+
author = {Pierre Morel and Philipp Ulbrich and Alexander Gail},
127+
journal = {PLOS Biology},
128+
publisher = {Public Library of Science},
129+
title = {What makes a reach movement effortful? Physical effort discounting supports common minimization principles in decision making and motor control},
130+
year = {2017},
131+
month = {06},
132+
volume = {15},
133+
url = {https://doi.org/10.1371/journal.pbio.2001323},
134+
pages = {1-23},
135+
abstract = {Author summary Economic choice in humans and animals can be understood as a weighing of benefits (e.g., reward) against costs (e.g., effort, delay, risk), leading to a preference for the behavioral option with highest expected utility. The costs of the action associated with a choice can thereby affect its utility: for equivalent benefits, an action that requires less physical effort will be preferred to a more effortful one. Here, we characterized how human subjects assess physical effort when choosing between arm movements. We show that the effort cost of a movement increases with its duration and with the square of the force it is performed against but not with the distance covered. Therefore, the subjective cost that determines decisions does not reflect the objective energetic cost of the actions—i.e., the corresponding metabolic expenditure. Instead, the subjective cost has commonalities with the cost that our central nervous system is believed to minimize for controlling the motor execution of actions. Our findings thus argue in favor of action selection and action control sharing common underlying optimization principles.},
136+
number = {6},
137+
doi = {10.1371/journal.pbio.2001323}
138+
}
139+
@article {HBM:HBM23932,
140+
author = {Wan, Nick and Hancock, Allison S. and Moon, Todd K. and Gillam, Ronald B.},
141+
title = {A functional near-infrared spectroscopic investigation of speech production during reading},
142+
journal = {Human Brain Mapping},
143+
year = {2017},
144+
issn = {1097-0193},
145+
url = {http://dx.doi.org/10.1002/hbm.23932},
146+
doi = {10.1002/hbm.23932},
147+
volume = {Advance online publication},
148+
keywords = {fNIRS, functional connectivity, Granger causality, oral reading, silent reading},
149+
}

0 commit comments

Comments
 (0)