-
Notifications
You must be signed in to change notification settings - Fork 0
Programming Languages
We suggest becoming proficient in the same language as your direct supervisor (start by choosing 1 language)
Python | MATLAB | R | |
I’m stuck. I don’t know what to choose! | In general, we suggest asking your supervisor what they use and start there. However, here are some other things to consider:
|
||
Principles and Philosophy | Zen | The strengths of MATLAB include extensive data handling and graphics capabilities, and advanced algorithms. This includes fast numerics for linear algebra, a large number of domain-specific built-in functions and libraries (e.g., for statistics, optimization, image processing, neural networks), easy generation of various kinds of visualisations of your data and/or simulation results. |
R for Data Science by Hadley Wickham
‘Just as a chemist learns how to clean test tubes and stock a lab, you’ll learn how to clean data and draw plots—and many other things besides. These are the skills that allow data science to happen, and here you will find the best practices for doing each of these things with R’. |
Is it open-source | Yes. Python is an open-source, general-purpose programming language run by a US not-for-profit called the ‘Python Software Foundation’. | No. MATLAB is a language but it is also a proprietary computing environment (software). It is owned by Mathworks and Monash provides access to all staff and students. Octave, Scilab, and Julia are open-source alternatives, but are less popular. | Yes. R and RStudio (a downloadable development environment/software that most people prefer to use when running R) are open source developed by some friendly kiwis :) |
Getting Started |
|
|
|
Introduction: Introduction to variables, loops, statements etc. |
Start with a simple self-paced course (intro to variables and if statements) ~1 hour.
|
|
For loops and if statements:
How to Use If-Else Statements and Loops in R – Dataquest Functions Intro to R: |
Applications in neuroimaging |
|
|
R is not commonly used in neuroimaging contexts - but there are packages out there (e.g. ROBEX for ‘robust brain extraction’) built on R. Here is a good walk through on using some R packages for neuroimaging analyses:
Neuroimaging Analysis within R However, there is also FSLR - a wrapper of FSL for R (it is more common for FSL to be used outside of R) https://journal.r-project.org/articles/RJ-2015-013/RJ-2015-013.pdf Otherwise - R is great for cleaning dataframes with psychological data (e.g. Likert scale based depression instrument data) Learning statistics with R: A tutorial for psychology students and other beginners. (Version 0.6.1) https://towardsdatascience.com/data-cleaning-in-r-made-simple-1b77303b0b17 |
For further reading as you develop your skills | |||
Advanced techniques |
Machine Learning in Python
|
MATLAB Programming Techniques | Beginner’s guide to machine learning in R (with step-by-step tutorial) | R-bloggers |
Other notes |
Python Cheat Sheet
|
Blogs/Pick of the week | 8 R Programming Tips and Tricks That Will Make You More Efficient | by Adejumo Ridwan Suleiman | Level Up Coding |
- 0.0 NSB Programming Courses (in ALPHA)
- 1.0 Working on the Cluster
- 2.0 Programming Languages
- 2.1 Python
- 2.1.1 Getting Set Up
- 2.1.2 Coding in Python
- 2.1.3 Applications of Python in Neuroimaging
- 2.2 MATLAB
- 2.3 R and RStudio
- 2.4 Programming Intro Exercises
- 2.5 git and GitHub
- 2.6 SLURM and Job Submission
- 2.1 Python
- 3.0 Neuroimaging Tools and Packages
- 3.1 BIDS
- 3.2 FreeSurfer
- 3.3 FSL
- 3.4 Connectome Workbench/wb_command
- 3.5 fMRIPrep
- 3.6 QSIPrep
- 3.7 MICApipe
- 3.8 MRIQC
- 4.0 Specialist Tools