Skip to content

Commit b60caa4

Browse files
committed
update limo
1 parent d08dc03 commit b60caa4

16 files changed

+78
-16
lines changed

code/plugins/reformat_plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, formatted_name, order, li
130130
'''.format(link=link, order=order)
131131
text = f.read()
132132
text = append_text + text
133+
134+
if plugin_name == 'LIMO':
135+
with open(os.path.join(wiki_plugin_input_dir, 'Home.md')) as f:
136+
text += f.read()
137+
133138
with open(index_file, 'w') as out:
134139
out.write(text)
135140
# main
File renamed without changes.

plugins/limo/2.-Within-Subject-Categorical-Designs.md renamed to plugins/limo/02.-Within-Subject-Categorical-Designs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ parent: LIMO
44
grand_parent: Plugins
55
render_with_liquid: false
66

7-
title: Within Subject Categorical Designs
8-
long_title: Within Subject Categorical Designs
7+
title: Within Subject Categorical Designs intro
8+
long_title: Within Subject Categorical Designs intro
99
nav_order: 4
1010
---
1111
- [1 way repeated measures ANOVA (Famous, Unfamiliar, Scrambled faces as conditions)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/2.-One-way-repeated-measures-ANOVA-(Famous,-Unfamiliar,-Scrambled-faces-as-conditions)))
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: default
3+
parent: LIMO
4+
grand_parent: Plugins
5+
render_with_liquid: false
6+
7+
title: Between Subjects Categorical Designs
8+
long_title: Between Subjects Categorical Designs
9+
nav_order: 13
10+
---
11+
We replicate here the 1-way ANOVA with familiar, unfamiliar and scrambled faces but split the data in two age groups. Of course, we can take the txt files, edit them and save copies for each group – then in LIMO MEEG we simply use these files. Here, instead, we recompute the subjects model adding in the STUDY design our groups, which will consequently save txt files per group (but not change estimates per subjects). Since some subjects have unspecified age – we create three groups based on the median (figure 35).
12+
13+
Group 1 is under 26: sub- 3, 8, 15, 16, 17, 18
14+
Group 2 is above or equal 26: sub- 2, 5, 9, 10, 11, 12, 14
15+
Group 3: sub- 4, 6, 7, 13, 19 unspecified
16+
17+
![Figure 35. Edit study](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/master/resources/images/35.jpg)
18+
_Figure 35. Editing STUDY adding groups_
19+
20+
You can update the study using pop_study typing in command line:
21+
```matlab
22+
cd(STUDY.filepath)
23+
[STUDY ALLEEG] = std_editset( STUDY, ALLEEG, 'commands',{{'index',2,'group','1'}, ...
24+
{'index',7,'group','1'},{'index',14,'group','1'},{'index',15,'group','1'}, ...
25+
{'index',16,'group','1'},{'index',17,'group','1'},{'index',1,'group','2'}, ...
26+
{'index',4,'group','2'},{'index',8,'group','2'},{'index',9,'group','2'}, ...
27+
{'index',10,'group','2'},{'index',11,'group','2'},{'index',13,'group','2'}, ...
28+
{'index',3,'group','3'},{'index',5,'group','3'},{'index',6,'group','3'}, ...
29+
{'index',12,'group','3'}, {'index',18,'group','3'}}, 'updatedat','off','rmclust','on');
30+
[STUDY, EEG] = pop_savestudy( STUDY, EEG, 'savemode','resave');
31+
```
32+
33+
Estimate the models, selecting the 1st design with face type only. As before, text files are created, with additionally a split per group of LIMO/Beta/con files.
34+
35+
From here, we can perform two 2nd level analyses:
36+
- [Between subjects’ ANOVAs with repeated factors](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/9.-Between-subjects%E2%80%99-ANOVAs-with-repeated-factors)
37+
- [Two sample t-tests](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/10.-Two-sample-t-tests)
38+
39+

plugins/limo/11.-Regression-among-subjects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ render_with_liquid: false
66

77
title: Regression among subjects
88
long_title: Regression among subjects
9-
nav_order: 16
9+
nav_order: 15
1010
---
1111
In the [between subjects’ ANOVA with repeated factor](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/Between-subjects%E2%80%99-ANOVAs-with-repeated-factors), we artificially split subjects into young and old subjects. Such post-hoc splitting is not recommended and typically create spurious results. Instead, we could test how much age influences face perception. For this, we will use the contrast faces vs scrambled computed previously in the [one-sample t-test](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/5.-One-sample-t-test-(contrasting-Full-Faces-vs-Scrambled-Faces-at-the-subject-level)).
1212

plugins/limo/12.-Regression-at-the-trial-level.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ render_with_liquid: false
66

77
title: Regression at the trial level
88
long_title: Regression at the trial level
9-
nav_order: 17
9+
nav_order: 16
1010
---
1111
In previous analyses, the repetition levels were either averaged or used as a categorical variable. Here, we instead used the time between each repetition of the same stimulus – thus for a given subject we have 3 conditions (familiar faces, unfamiliar faces and scrambled faces) and one continuous variable (the distance between the repeat of a stimulus type).
1212

plugins/limo/_Sidebar.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@ render_with_liquid: false
88

99
# [Access Scripts reproducing the tutorial](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/tree/master/resources/code)
1010

11-
# [Preprocessing](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/1.-Preprocessing)
11+
# [Preprocessing](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/01.-Preprocessing)
1212
- getting the data
1313
- preprocessing
1414

15-
# [Within Subject Categorical Designs](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/2.-Within-Subject-Categorical-Designs)
16-
- [One way repeated measures ANOVA (Famous, Unfamiliar, Scrambled faces as conditions)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/2.-One-way-repeated-measures-ANOVA-(Famous,-Unfamiliar,-Scrambled-faces-as-conditions)))
17-
- [One way repeated measures ANOVA revised (Famous, Unfamiliar, Scrambled faces as 1st level contrasts)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/3.--One-way-repeated-measures-ANOVA-revised-(Famous,-Unfamiliar,-Scrambled-faces-as-1st-level-contrasts))
18-
- [Summary statistics to measure and report effects and effect sizes](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/4.-Summary-statistics:-Effects-and-Effect-sizes)
19-
- [One sample t-test (contrasting Full Faces vs Scrambled Faces at the subject level)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/5.-One-sample-t-test-(contrasting-Full-Faces-vs-Scrambled-Faces-at-the-subject-level))
20-
- [Summary statistics of differences](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/6.-Summary-statistics-of-differences)
21-
- [Two-ways ANOVA (Faces x Repetition)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/7.-Two-ways-ANOVA-(Faces-x-Repetition))
22-
- [Paired t-test (Famous vs Unfamiliar)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/8.-Paired-t-test-(Famous-vs-Unfamiliar))
15+
# Within Subject Categorical Designs
16+
- [Within Subject Categorical Designs intro](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/02.-Within-Subject-Categorical-Designs)
17+
- [One way repeated measures ANOVA (Famous, Unfamiliar, Scrambled faces as conditions)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/03.1.-One-way-repeated-measures-ANOVA-(Famous,-Unfamiliar,-Scrambled-faces-as-conditions))
18+
- [One way repeated measures ANOVA revised (Famous, Unfamiliar, Scrambled faces as 1st level contrasts)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/03.2.--One-way-repeated-measures-ANOVA-revised-(Famous,-Unfamiliar,-Scrambled-faces-as-1st-level-contrasts))
19+
- [Summary statistics to measure and report effects and effect sizes](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/04.-Summary-statistics:-Effects-and-Effect-sizes)
20+
- [One sample t-test (contrasting Full Faces vs Scrambled Faces at the subject level)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/05.-One-sample-t-test-(contrasting-Full-Faces-vs-Scrambled-Faces-at-the-subject-level))
21+
- [Summary statistics of differences](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/06.-Summary-statistics-of-differences)
22+
- [Two-ways ANOVA (Faces x Repetition)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/07.-Two-ways-ANOVA-(Faces-x-Repetition))
23+
- [Paired t-test (Famous vs Unfamiliar)](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/08.-Paired-t-test-(Famous-vs-Unfamiliar))
2324

24-
# [Between Subjects Categorical Designs](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/Between-Subjects-Categorical-Designs)
25-
- [Between subjects’ ANOVAs with repeated factors](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/9.-Between-subjects%E2%80%99-ANOVAs-with-repeated-factors)
25+
# Between Subjects Analysis
26+
- [Between subjects’ ANOVAs with repeated factors](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/09.1.-Between-subjects%E2%80%99-ANOVAs-with-repeated-factors)
27+
- [Between Subjects Categorical Designs](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/09.2.-Between-Subjects-Categorical-Designs)
2628
- [Two sample t-tests](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/10.-Two-sample-t-tests)
2729

28-
# [Designs with Continuous variables](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/Designs-with-Continuous-variables/)
30+
# Designs with Continuous variables
2931
- [Regression among subjects](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/11.-Regression-among-subjects)
3032
- [Regression at the trial level](https://raw.githubusercontent.com/LIMO-EEG-Toolbox/limo_meeg/wiki/12.-Regression-at-the-trial-level)

plugins/limo/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ You can also email directly or raise a github issue, in particular for bugs.
3737
Anyone is welcome to contribute ! check here [how you can get involved](https://github.com/LIMO-EEG-Toolbox/limo_eeg/blob/master/contributing.md), the [code of conduct](https://github.com/LIMO-EEG-Toolbox/limo_eeg/blob/master/code_of_conduct.md).
3838

3939
Contributors are listed [here](https://github.com/LIMO-EEG-Toolbox/limo_eeg/blob/master/contributors.md)
40+
# **Tutorial**
41+
42+
Details on the different functions and usage can be found on the [wiki pages here](https://github.com/LIMO-EEG-Toolbox/limo_tools/wiki) while this is a step-by-step tutorial.
43+
44+
_Important notice_
45+
46+
Whatever you display using LIMO plotting functions, all the variables are returned in the Matlab workspace. For instance, if you plot all channels vs time (ERP results), then the raw statistical map and the significance mask are returned. If you plot a time course, that time course with confidence interval is returned, etc. You may type "who" on the Matlab command line to see these variables.
47+
48+
## Getting started
49+
50+
The tutorial is using [Wakeman and Henson (2015)](https://www.nature.com/articles/sdata20151) face data. In short, famous, unfamiliar and scrambled faces were presented, and repeated immediately or later. Subjects had to do a judgment task orthogonal to the design to keep them engaged. The EEG channels were extracted and preprocessed. [DOWNLOAD THE DATA FOR THIS TUTORIAL HERE](https://openneuro.org/datasets/ds002718/versions/1.0.5) in BIDS format.
51+
52+
This tutorial assumes you are using the latest [EEGLAB](https://github.com/sccn/eeglab) version (2020.0 or later) that uses [STUDY](https://sccn.ucsd.edu/wiki/Chapter_02:_STUDY_Creation) to link with [LIMO tools](https://github.com/LIMO-EEG-Toolbox/limo_tools).
53+
54+
55+

0 commit comments

Comments
 (0)