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
[Question]: how can I get the effect size in tracts? #1
Comments
New questions:
These run successfully, I got the binarizing tract fixel masks. Then I ran the bash code 10, but delete the max effect part.
However errors occurred: Do you have any idea of the error? |
Hi @yutinghe99 and thank you for opening this issue. I'm happy the code has worked well for you up to this point! For the effect size, you would use the betaX.mif file, where X corresponds to the relevant column in your design matrix. So if your term of interest was the first column of the design matrix, you would use beta0.mif, second column would be beta1.mif, and so on. I'll try to get a solution to the syntax error soon. I've never tried this code with fixelcfestats, maybe there is something different about output formats? Best, |
Thanks for your quick reply.
Sorry, I'm bad at statistics. Could you please explain this more? The first three columns of my design matrix are my independent variable (i.e. three different groups: healthy controls, patients subgroup 1, and patients subgroup 2). I performed one-way ANOVA to test the FBA metrics differences among these three groups. If I calculate the max effect size achieved in tract with beta0.mif (i.e. the healthy controls column), what does the output mean? |
Hi, @smeisler I found a post related to the syntax error, he said that he misused the mask output from If you need more background information on my analysis, please let me know. Looking forward to your reply. Cheers, |
Oh, about the errors, you can ignore the ones for |
For the ANOVA effect size, the F value might be a good proxy. As the test statistic, it should be effect size normalized by sample variance. |
Thanks for your sincere help! :) To make sure that I understanding correctly, I will do some confirmations:
If I am incorrect, please point out. Thank you! |
Hi @smeisler , After I ran the bash code above, it went without error. But the Based on my understanding of this script, the But in my I have attached my I noticed that in your elife paper, you said that
How do you achieve this? Based on the max effect size to decide the tract? Cheers, |
Hi, No, it's not expected to have 0 for num_fixels. Have you tried visualizing the fixel masks in mrview? And to answer the last question, the script we are talking about now is what I meant by that intersection. Looking at the results table you can see I report the number of fixels significant at pFDR < 0.05 and max effect size achieved within a fixel mask. For the code you provide above, have you tried running the individual parts line by line to see if the outputs are what you expect? |
What are values you get for |
Hi @smeisler , I'm sorry for not replying to you sooner. Following your suggestion, I output the But now I have another question. I want to intersect the Cheers, |
From https://community.mrtrix.org/t/fba-creating-intersection-fixel-mask/1917, |
Also, now that the typo was fixed and the original question addressed, mind if I close this issue? |
Of course not. Thank you for your help! |
Hi, @smeisler ,
Thanks for your sharing, this code really helps a lot!
After running
fixelcfestats
andmrthreshold,
I got the significant fixels among groups, now I want to assign these fixels to tracts so that I can extract the mean FBA metrics within tracts to run the post-hoc test. I saw your scripts 10_itersect_with_tracts.sh can help me achieve this goal. But I noticed you ran GAMs with ModelArray instead offixelcfestats
. The outputs fromfixelcfestats
didn't include the effect size. How can I get the max effect size achieved in tract?Background: I run the one-way ANOVA with
fixelcfestats
, here are my degisn and contrast matrix.For one-way ANOVA:
Design matrix: HCs subgroup1 subgroup2 sex age TIV (sex, age, and TIV demeaned)
Contrast matrix: C1: 1 -1 0 0 0 0
C2: 0 1 -1 0 0 0
F matrix: [1 1]
Code:
fixelcfestats log_fc_smooth/ files.txt design_matrix_F.txt contrast_matrix_F.txt matrix/ stats_log_fc_F/ -ftests ftest.txt -fonly
Below are my outputs
One-way ANOVA didn't get the abs_effect.mif, not like the T-test. So how can I calculate the max effect size achieved in tract? Could you please guide me?
Best,
Yuting
The text was updated successfully, but these errors were encountered: