Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrote preprocessing script for reproduction of paper analysis #31

Merged
merged 6 commits into from
Dec 5, 2015
Merged

Wrote preprocessing script for reproduction of paper analysis #31

merged 6 commits into from
Dec 5, 2015

Conversation

AlonDaks
Copy link
Contributor

No description provided.

run_data.append(data[..., 4:])
concatenated_run_data = np.concatenate(run_data, axis=3)
concatenated_img = nib.Nifti1Image(concatenated_run_data,
np.eye(4))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this is a good place to apply the gaussian filter
see "More Notes" under Lectures

from scipy.ndimage import gaussian_filter
Smooth by 2 voxel SD in all three spatial dimensions
smooth_data = gaussian_filter(data, sigma = [2, 2, 2, 0])

The sigma = [2,2,2,0] is for 2 SDs - seems standard, 95% CI

"runs" : [
{
"linear" : {
"path": "data/raw/sub001/task001_run001/bold_dico_dico7Tad2grpbold7Tad.nii",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we want the nonlinearly aligned version from Hanke, rather than the linearly aligned version, based on what we talked to Jarrod and Matthew about in OH? (i.e. bold_dic_dico7Tad2grpbold7Tad_nl.nii)

Is that a big deal to change? If so, it's okay b/c we should be using the rcds version anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're going to work only with rcds versions. I'll make this update in the next PR

@lisaannyu
Copy link
Contributor

Ok I think this looks fine

jodreen added a commit that referenced this pull request Dec 5, 2015
Wrote preprocessing script for reproduction of paper analysis
@jodreen jodreen merged commit 48f2d0d into berkeley-stat159:master Dec 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants