Code covered by the BSD License  

Highlights from
SPM NeuroSynth scraper

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 4.91 KB File ID: #39017

SPM NeuroSynth scraper

by Drew Linsley

 

12 Nov 2012 (Updated 22 Jan 2013)

Scrape activation information from NeuroSynth.org for SPM8 first- or second-level results.

| Watch this File

File Information
Description

%%%%%%%%%%%%
%Lookup voxel activations on neurosynth.org
%%%%%%%%%%%%
%%REQUIRED: SPM(only tested on 8) must be installed.
%You can use this script in two ways:
%1) Pass a filename of an analyze-format statmap, or
%2) Estimate an SPM model and load it into the workspace with the "Results" button
%(in order to produce an xSPM structure)
%The script will then scrape neurosynth.org for information about your activations
%%%%%%%%%%%%
%OPTIONS
%%%%%%%%%%%%
%%-If you pass the string 'savedata', a csv will be saved for each coordinate
%found in the neurosynth database.
%%-If you pass the string 'search', the program will search for activations
%in a "searchlight" centered on the given voxel. The default search is to
%test all voxels that share a face with the voxel in question; pass a
%number after the 'search' string to modify the extent of the search (i.e.,
%change the radius of the "searchlight". Beware of greatly diminishing returns,
%both in terms of relevant information and computing time, with higher
%radii (1-3 is probably best).
%-(old, lame search algorithm) If you pass the string 'jitter', coordinates without activation data on Neurosynth will be jittered up to
%5 voxels in all dimensions until information is returned.
%
%example 1A:
%spm_neurosynth(xSPM);
%example 1B:
%spm_neurosynth('my_statmap.hdr'); note that img/nii also work
%example 2:
%spm_neurosynth(xSPM,'savedata');
%example 3:
%spm_neurosynth(xSPM,'savedata','search',1);
%example 4(not really worth using...):
%spm_neurosynth(xSPM,'savedata','jitter')
%%%%%%%%%%%%
%By Drew Linsley (thanks to Jordan Theriault for suggestions + Sylvain Fiedler for the csv routine)
%Updated 1/21/13 -- added functionality for statmaps in analyze format
%Updated 1/18/13 -- "searchlight" routine added to find local voxel information
%Updated 12/2/12 -- bug fix
%Updated 11/17/12 -- added 'jitter' routine
%%%%%%%%%%%%

Acknowledgements

Cell2csv inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Other requirements SPM8, internet connection
Tags for This File  
Everyone's Tags
fmri, meta analysis, neuroimaging, neurosynth, spm, web scraping
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
12 Nov 2012

Reformatted help section

19 Nov 2012

Added a routine to find data in the vicinity of coordinates that are not in the NeuroSynth database.

30 Nov 2012

Fixed varargin error

03 Dec 2012

bug fix

21 Jan 2013

Added a "searchlight" routine for finding information about activations.

22 Jan 2013

now accepts filenames of analyze-format statmaps

Contact us