r/compmathneuro • • 4d ago

Question Beginner-friendly Python resources for someone transitioning from Psychology to Computational Neuroscience?

Hi everyone!

I'm a Psychology undergraduate currently considering pursuing a Master's degree in Computational Neuroscience. Coming from a non-computer science background, I realize that I need to build a solid foundation in programming, particularly Python, before diving deeper into the field.

I've been trying to find introductory resources and came across Neuromatch Academy's Computational Neuroscience course, including their introductory materials.

However, I've found that even though the course is intended for beginners, I still struggle quite a bit with the Python explanations and code structure. I often find myself having difficulty understanding what's happening in the code itself, rather than focusing on the computational neuroscience concepts being taught.

I'm wondering if there are other resources that might be more suitable for someone in my position.

Ideally, I'm looking for resources that:

Start from the absolute basics, assuming little to no prior programming experience.

Explain programming concepts and code structure slowly and intuitively, rather than jumping straight into complex examples.

Gradually introduce concepts that are relevant to computational neuroscience (e.g., NumPy, SciPy, data analysis, mathematical modeling, simulations, etc.).

Help me understand not just how to write code, but also why certain approaches are used.

I'm open to pretty much any format: YouTube tutorials, online courses, textbooks, interactive platforms, or even a recommended learning sequence.

For additional context, my academic background is in Psychology, and I have very little programming experience. I'm not necessarily looking to jump straight into computational neuroscience yet; I'd rather develop a comfortable understanding of Python first, while keeping my long-term goal in mind.

For those who came from a non-CS background, how did you approach learning programming before getting into computational neuroscience? Are there any resources or learning paths you'd particularly recommend?

I'd really appreciate any suggestions. Thanks!

24 Upvotes

9 comments sorted by

7

u/teedramusa 4d ago

It really depends on the scope of work you will be doing and your neuroimaging data and it's hard to say because you're probably at the stage.

I work with high-density electrophysiology and signal processing, so I'm working with really big data during data acquisition that I can't downsample from the recording sampling rate or we lose the spikes.

And that requires learning how to put all the parts together. Some survive with just Jupyter notebooks after the spikes are sorted, but I'm seeing more requirements that an average CS grad is supposed to know being a requirement for postdoctoral positions, especially new labs that are starting to build their experimental setup. Even though most of the work is data science.

I'm not going to lie. I took a one-year detour learning about system architectures and data engineering.

Neuromatch is a good introductory course for computational neuroscience but not Python. So far I've been learning more with https://www.boot.dev , and coincidentally they have a Black Friday Sale tomorrow.

Otherwise, you can use one of the pre-established roadmaps on https://www.roadmap.sh, as well as use the SKILL.md feature from Claude/GPT as a learning assistant, and enforce some special instructions like "visualize" and "teach" and "learn".

Try to build a portfolio of your work with GitHub as you learn, and definitely work with an open dataset from the DANDI library or from a lab so that you can see you are implementing what you have learned into your work.

5

u/DysphoriaGML 4d ago

Don’t use AI. If you must learn how to code, using AI is gonna make it impossible

4

u/martopix 4d ago

https://software-carpentry.org/lessons/ these are lessons meant for scientists of other disciplines, taught with well reasoned teaching methods and community maintained. I used to be one of their trained instructors

2

u/mis0x 4d ago

following

1

u/kenziepaige712 19h ago

This might not quite hit the bill wrt explanations of Python, but has some good Python for neuorimaging content which may be relevant to your interests. https://neuroimaging-data-science.org/root.html

3

u/[deleted] 4d ago

[removed] — view removed comment

2

u/Due-Performance-6505 4d ago

This is awesome, thanks!