SlideShare a Scribd company logo
1 of 14
Download to read offline
How FieldTrip can help you with
good scientific practices
Robert Oostenveld
Donders Institute, Radboud University, Nijmegen, NL
Karolinska Institutet, Stockholm, SE
Slides available at
bit.ly/2SysId7
oostenvr r.oostenveld@donders.ru.nl
Improving your scientific practices
Asking the right questions
Using the right machinery
Tools and methods
Using the machinery right
Training and education
Good
Improving your scientific practices
Asking the right questions
Using the right machinery
Tools and methods
Using the machinery right
Training and education
Preregistration
Code availability
Data availability
Improving your scientific practices
Asking the right questions
Using the right machinery
Tools and methods
Using the machinery right
Training and education
Preregistration
Code availability
Data availability
Sharing your code
Published results from neuroimaging data are often not
reproducible (e.g. Gilmore et al., 2017)
It is still not common that (e.g. FieldTrip, EEGLAB, SPM, BrainStorm, MNE-Python)
analysis pipelines and intermediate data are shared
Why is code not shared?
new research, hence idiosyncratic analysis scripts
written by neuroscientists, not by programmers
written by students that learn on-the-job
source code in scripts is often exploratory
unorganized and computationally inefficient
poorly documented
As academics we set high standards, also for ourselves, so
“I will improve and document the code later, prior to sharing it…
Sharing your code
Every FieldTrip function could already do
cfg.inputfile
cfg.outputfile
Now they can also do
cfg.reproducescript
This results in straightforward, clean and “standard”
MATLAB scripts - just like the FieldTrip tutorials.
https://www.fieldtriptoolbox.org/walkthrough
https://www.fieldtriptoolbox.org/tutorials
https://www.youtube.com/fieldtriptoolbox
Mats van Es
Eelke Spaak
Jan-Mathijs
Schoffelen
Live demonstration
FieldTrip tutorial dataset
Single subject analysis
Group analysis
Live demonstration
FieldTrip tutorial dataset
Single subject analysis
Group analysis
Sharing your code
Excuses for not sharing code
source code in scripts is often exploratory and messy
unorganized and computationally inefficient
poorly documented
“I will improve and document the code later, prior to
sharing it…”
I can share my code now, and it is not
any worse than the FieldTrip tutorials
Sharing your data
FieldTrip is mostly used for importing data and then analyzing it.
Now also for exporting/converting data and decorating with metadata
data2bids(cfg)
If BIDS metadata is available, like channels.tsv or events.tsv,
it will be read and used.
Fewer experiment and data-specific details have to be implemented in the
analysis scripts, more details are stored alongside the data.
Sharing your data
www.fieldtriptoolbox.org/example/bids/
ftp.fieldtriptoolbox.org/pub/fieldtrip/example/
Converting an example EEG dataset for sharing in BIDS
Converting an example behavioral dataset for sharing in BIDS
Converting the combined MEG/fMRI MOUS dataset for sharing in BIDS
Converting an example NIRS dataset for sharing in BIDS
Converting an example EMG dataset for sharing in BIDS
Converting an example motion tracking dataset for sharing in BIDS
Converting an example eyetracker dataset for sharing in BIDS
Converting an example audio dataset for sharing in BIDS
Converting an example video dataset for sharing in BIDS
Convert the EEG sedation dataset for sharing in BIDS
Combining simultaneous recordings in BIDS
https://bids.neuroimaging.io
Sharing your data (here as an example for MRI)
Shared code as BIDS apps or
as MATLAB/Python/Julia scripts
Shared data in BIDS
with metadata
Original raw data
from the device
Improving the foundations of your publication
Preregistration
Data availability Code availability
Improving your research
Preregistration
Code availability
Data availability
Open Access
Open Source
Team Science
Incentives
Inclusivity
Ethical research
Slides available at
bit.ly/2SysId7
oostenvr
r.oostenveld@
donders.ru.nl

More Related Content

More from Robert Oostenveld

On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
On the large scale of studying dynamics with MEG: Lessons learned from the Hu...On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
Robert Oostenveld
 

More from Robert Oostenveld (20)

OHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacyOHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacy
 
The Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRSThe Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRS
 
Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure
 
BIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCPBIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCP
 
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspectiveBIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
 
BIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - FrontiersBIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - Frontiers
 
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDASBIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
 
BIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCANBIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCAN
 
CuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEGCuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEG
 
ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science
 
Using Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processingUsing Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processing
 
Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...
 
RDM and the Donders Repository
RDM and the Donders RepositoryRDM and the Donders Repository
RDM and the Donders Repository
 
Donders Research Data Repository
Donders Research Data Repository Donders Research Data Repository
Donders Research Data Repository
 
Real-time EEG: timing and block size
Real-time EEG: timing and block sizeReal-time EEG: timing and block size
Real-time EEG: timing and block size
 
EEG signal background and real-time processing
EEG signal background and real-time processingEEG signal background and real-time processing
EEG signal background and real-time processing
 
On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
On the large scale of studying dynamics with MEG: Lessons learned from the Hu...On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
On the large scale of studying dynamics with MEG: Lessons learned from the Hu...
 
Group analyses with FieldTrip
Group analyses with FieldTripGroup analyses with FieldTrip
Group analyses with FieldTrip
 
Donders Institute - Research Data Management
Donders Institute - Research Data Management Donders Institute - Research Data Management
Donders Institute - Research Data Management
 
EEGSynth pitch for brainhack@paris
EEGSynth pitch for brainhack@parisEEGSynth pitch for brainhack@paris
EEGSynth pitch for brainhack@paris
 

Recently uploaded

Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Lokesh Kothari
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sérgio Sacani
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
RohitNehra6
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
gindu3009
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
ssuser79fe74
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
RizalinePalanog2
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
Sérgio Sacani
 

Recently uploaded (20)

Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
Creating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening DesignsCreating and Analyzing Definitive Screening Designs
Creating and Analyzing Definitive Screening Designs
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 

How FieldTrip can help you with good scientific practices

  • 1. How FieldTrip can help you with good scientific practices Robert Oostenveld Donders Institute, Radboud University, Nijmegen, NL Karolinska Institutet, Stockholm, SE Slides available at bit.ly/2SysId7 oostenvr r.oostenveld@donders.ru.nl
  • 2. Improving your scientific practices Asking the right questions Using the right machinery Tools and methods Using the machinery right Training and education Good
  • 3. Improving your scientific practices Asking the right questions Using the right machinery Tools and methods Using the machinery right Training and education Preregistration Code availability Data availability
  • 4. Improving your scientific practices Asking the right questions Using the right machinery Tools and methods Using the machinery right Training and education Preregistration Code availability Data availability
  • 5. Sharing your code Published results from neuroimaging data are often not reproducible (e.g. Gilmore et al., 2017) It is still not common that (e.g. FieldTrip, EEGLAB, SPM, BrainStorm, MNE-Python) analysis pipelines and intermediate data are shared Why is code not shared? new research, hence idiosyncratic analysis scripts written by neuroscientists, not by programmers written by students that learn on-the-job source code in scripts is often exploratory unorganized and computationally inefficient poorly documented As academics we set high standards, also for ourselves, so “I will improve and document the code later, prior to sharing it…
  • 6. Sharing your code Every FieldTrip function could already do cfg.inputfile cfg.outputfile Now they can also do cfg.reproducescript This results in straightforward, clean and “standard” MATLAB scripts - just like the FieldTrip tutorials. https://www.fieldtriptoolbox.org/walkthrough https://www.fieldtriptoolbox.org/tutorials https://www.youtube.com/fieldtriptoolbox Mats van Es Eelke Spaak Jan-Mathijs Schoffelen
  • 7. Live demonstration FieldTrip tutorial dataset Single subject analysis Group analysis
  • 8. Live demonstration FieldTrip tutorial dataset Single subject analysis Group analysis
  • 9. Sharing your code Excuses for not sharing code source code in scripts is often exploratory and messy unorganized and computationally inefficient poorly documented “I will improve and document the code later, prior to sharing it…” I can share my code now, and it is not any worse than the FieldTrip tutorials
  • 10. Sharing your data FieldTrip is mostly used for importing data and then analyzing it. Now also for exporting/converting data and decorating with metadata data2bids(cfg) If BIDS metadata is available, like channels.tsv or events.tsv, it will be read and used. Fewer experiment and data-specific details have to be implemented in the analysis scripts, more details are stored alongside the data.
  • 11. Sharing your data www.fieldtriptoolbox.org/example/bids/ ftp.fieldtriptoolbox.org/pub/fieldtrip/example/ Converting an example EEG dataset for sharing in BIDS Converting an example behavioral dataset for sharing in BIDS Converting the combined MEG/fMRI MOUS dataset for sharing in BIDS Converting an example NIRS dataset for sharing in BIDS Converting an example EMG dataset for sharing in BIDS Converting an example motion tracking dataset for sharing in BIDS Converting an example eyetracker dataset for sharing in BIDS Converting an example audio dataset for sharing in BIDS Converting an example video dataset for sharing in BIDS Convert the EEG sedation dataset for sharing in BIDS Combining simultaneous recordings in BIDS https://bids.neuroimaging.io
  • 12. Sharing your data (here as an example for MRI) Shared code as BIDS apps or as MATLAB/Python/Julia scripts Shared data in BIDS with metadata Original raw data from the device
  • 13. Improving the foundations of your publication Preregistration Data availability Code availability
  • 14. Improving your research Preregistration Code availability Data availability Open Access Open Source Team Science Incentives Inclusivity Ethical research Slides available at bit.ly/2SysId7 oostenvr r.oostenveld@ donders.ru.nl