Notes, assignments, and code for NEUROBIO 735 (Spring 2024).
1/11 – 4/17:
Tuesday, Thursday
3:00 – 4:30
301 Bryan Research Building
import seaborn as sns
to load the library. We can then load some sample fMRI data (the package author is a neuroscientist) by doing
dat = sns.load_dataset('fmri')
What’s the shape of this data frame? What do the first few rows look like? How many unique subjects are there? How many regions?
Make a table that gives the mean and standard deviation of signal
for each region for each subject. (Hint: you may have to do some column shuffling and renaming to make this easy on yourself.)
Plot frontal activation for the stim
event as a function of time for each subject. You can feel free to use Matplotlib by itself or use Seaborn as well.
Let’s clean up the plot:
loc
argument to Matplotlib’s legend
function or Seaborn’s move_legend
to place it someplace nicer.