Skip to content

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.

4 participants