Homework 6
Due: Mar 9 by 11:59 pm eastern standard time
Clean Code: directed graph
Read the class notes on clean code and in particular the section on stages of data processing and planning/drawing a directed graph. Read Jörn Diedrichsen’s blog on writing clean code as well.
Read the page describing the sample dataset from a hypothetical eeg study.
Your task for this week’s homework is to apply the principles of stages of data processing, and draw/diagram a directed graph (as in Jörn’s blog) that describes your plan for writing code to load/convert/process/analyse/slice/dice/plot/stats the sample eeg dataset.
As a guide, the eeg dataset contains what we would call “raw data” (and they are mainly binary files). The first step is loading, processing, and likely slicing/reorganizing the signals contained in the raw data into what we would call “processed data” (you should plan to store them as .csv files). The second stage will likely involve (a) acting on the processed data to produce some figures (e.g. sample mean timecourses of eeg signals time-aligned to the stimulation pulses), and (b) taking measurements and means and producing data tables (one row per participant, one column per variable) and saving those as .csv files. Finally the third stage will likely involve acting on those data tables and producing figures, and also performing statistical analyses.
The above paragraph is only a guideline. Produce a directed graph showing inputs (data files) in gray, and code & arrows in red (as in the Diedrichsen blog post).
You can produce your graph/plan in any way you like, you can draw it and photograph it with your phone, you can use a software diagramming program, it doesn’t matter.
GitHub Repository
Sign up for an account on GitHub if you don’t have one already. Create a new public repository called psych_9040_hw06
and initialize it with a README
file. Add your graph/plan from above to the repository.
Submit a URL pointing to your GitHub repository (e.g. https://github.com/paulgribble/psych_9040_hw06) to Brightspace/OWL.