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

Scripts to address datapaper3 revision #56

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ferponcem
Copy link
Contributor

After the discussion, it was decided that the figure 4b on the revised version of the paper needed to go from using the FWER-corrected p-values for the mask to use FDR instead. This script does that.
This is the first of several commits, I intent to push the rest of the codes here too asap.

Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

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

When you're done with the pass, you can merge.

FD = np.sum(np.abs(motion_diff[:, 0:3]) + 50 * np.abs(motion_diff[:, 3:]),
axis=1)
return FD
# %%
Copy link
Member

Choose a reason for hiding this comment

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

You should skip 2 lines btw functions. LGTM otherwise.

plt.xticks(np.arange(len(PTS)), [f"{sub}" for sub in PTS], rotation=45)
plt.suptitle(f'Framewise Displacement for {task}')

#plt.figure(figsize=(10, 7))
Copy link
Member

Choose a reason for hiding this comment

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

Don't keep commented lines in your scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants