-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 | ||
# %% |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
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.