Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Maps threshold bug #444

Closed
BTajini opened this issue Mar 12, 2020 · 2 comments
Closed

Maps threshold bug #444

BTajini opened this issue Mar 12, 2020 · 2 comments
Labels

Comments

@BTajini
Copy link

BTajini commented Mar 12, 2020

Hi,

I believe there's a bug in the maps threshold.
As you can see in the following screenshot.

maps_threshold_bug

In the t_stats , we have some negative zones while in Raw z map, they are positive.

Best,

@BTajini BTajini added the bug label Mar 12, 2020
@bthirion
Copy link
Member

Can you send me the code you used ? I can't reproduce the issue.

@bthirion
Copy link
Member

OK, the problem comes from the fact that you obtained the p-values from a ttest_onesamp of scipy.stats that is a two-sided tests, and implicitly takes the absolute value.
You should use nistats functions, not ttest_onesamp, in that context (copy-pasting from old notebooks has some drawbacks !).
Best,

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

No branches or pull requests

2 participants