TomMaullin / BLM

This repository contains all code for the python implementation of distributed OLS for locally stored data.
1 stars 3 forks source link

Random Improvements #65

Closed nicholst closed 5 years ago

nicholst commented 5 years ago

The following changes will make for easier usage and encourage good practice

TomMaullin commented 5 years ago

Hi Tom,

Ah okay, in response to a few of these points;

* The naming of the input variables is inconsistent: `Y_files` and `X` suggests that X is not a file but the _actual_ design matrix.  Use some sort of consistent naming... maybe `Y_files` and `X_file`?
* In addition to Tstat there should be a corresponding `con` and `se` image, for the numerator and denominator of the Tstat.  For Fstat we could also write out a R^2 image.

All other points make sense to me and would not take too long to implement.

nicholst commented 5 years ago

OK... I see your logic on Y_files and X.

I don't see any blm_vox_beta_c{#c} or blm_vox_cov_c{#c}... I see the likes of blm_vox_beta_b1.nii and blm_vox_cov_b1,1.nii... i.e. for individual betas but not the contrasts.

For contrasts I think the full set of results that makes sense is

and then

Again, not super high priority, but do you agree this makes sense?

TomMaullin commented 5 years ago

Ah apologies... the blm_vox_beta_c{#c} and blm_vox_cov_c{#c} files should have been output... were there any errors in the logs when you ran your analysis? Please could you paste the contrast section of your blm_config.yml file here?

But yes, all files apart from those are named as you have said; I will change these last two in my next PR!

nicholst commented 5 years ago

Doh! You're right! I lost track of it among all the other beta's and covs.

For future reference, this is where I'm playing with the BLM code: /users/nichols/kfh142/group/projects/UKB/ANALYSIS/BLMtesting

I think the naming could be better though... "beta" to refer to a contrast is confusing, and as a contrast will never be anything but a scalar, calling it's variance "cov" also seems confusing.

I'm going to re-create the 'random improvements' list in a new message below.

nicholst commented 5 years ago

The following changes will make for easier usage and encourage good practice

TomMaullin commented 5 years ago

This issue has been seperated into #69 , #70 , #71 and #72 respectively.