Skip to content
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

Estimate harmonization parameters on controls and apply them to patients #24

Open
ilariagabusi opened this issue Jan 30, 2023 · 0 comments

Comments

@ilariagabusi
Copy link

Hello,
We are trying to harmonize DTI maps of subjects scanned in 6 different sites. Since the participants are in majority patients, to avoid any bias due to the disease we would like to consider only the healthy controls and then, for each site, apply the estimated harmonization to all the other subjects.
Looking at the code, we saw that the function “adjust_data_final” employs the parameters returned in the “estimates” dictionary however in input it does not take the original data but “s_data”. So, to solve our problem we thought to do the following:

  1. Run the function neuroCombat passing in input dat=data_HC (which contains only the health controls’ data) and saving the dictionary estimates
  2. Run the code of neuroCombat up to standardize_across_features() (line 127) using dat=data_PT (which contains only the patients’ data)
  3. Call adjust_data_final(s_data, design, gamma_star, delta_star, s_mean, mod_mean, v_pool, info_dict, dat) using the gamma_star and delta_star obtained at step 1.

Is this approach correct or is there a more straightforward way to do it?
Thank you for the help.
Best,
Ilaria

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

No branches or pull requests

1 participant