All posts in category Programming

Year 1 Reflection

I really started investing in this blog in November 2012.  In the first month it received 12 hits.  In the second month, it also received 12 hits.  But as we’ve added more content over the past year, the number of hits has continued to go up.  And I’m very happy that today, we celebrate more […]

Finding ERP Noise Outliers

There are plenty of points in ERP data analysis that can be subjective.  But that doesn’t mean that they have to be!  One subjective point is determining the noise level of your subjects.  If you’re using Net Station (EGI), you can check an option in the “Averaging” Waveform tool to calculate noise estimates.  This will […]

Rotating bvecs for DTI fitting

Update: While these methods continue to be useful, I now recommend using TORTOISE for preprocessing DTI.  The TORTOISE pipeline includes methods for (among other things) reducing distortions from EPI artifacts, eddy current correction, correcting for motion, rotating b-vecs, and co-registration to an anatomical image.  There are instructions for using the newest version here.   Most […]

Creating AFNI images via command line and Xvfb

Quite a while ago, I wrote a post about making automated snapshots of MRI activation with AFNI.  One of the things I always appreciated about FSL was that they provided a series of ready-made images to show off where activation was in the brain for a given analysis (at least using FEAT). So when I […]

Writing your own fMRI programs using the AFNI API (Part 1)

I find that it’s fairly rare that I wish there was an AFNI program that did something that cannot be accomplished with existing tools and a bit of creativity.  But, if you do find something that requires writing a custom program, the AFNI distribution is both easily accessible and fairly straightforward to code for.  Over […]