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

Error while plotting stats #23

Open
suheyla2 opened this issue Jan 3, 2021 · 2 comments
Open

Error while plotting stats #23

suheyla2 opened this issue Jan 3, 2021 · 2 comments

Comments

@suheyla2
Copy link

suheyla2 commented Jan 3, 2021

Hi Tashrif,

I received the following error below at the final step of debugging: plotting stats (harm_plot.py).
cvs files were generated successfully.

I think the error might be because my two sites do not have the same number of subjects, but the function assumes that they should have? FYI: In template creation, we expect two sites to not have a significantly different number of subjects to avoid bias but it is not necessary to have the exact same number of subjects in each site.

Thanks,
Suheyla

12/27/20 00:54,mean meanFA b2500
Reference_Dec262020_BU,0.3687987787675452
Target_Dec262020_NYU_before,0.3895502700221303
Target_Dec262020_NYU_after,0.3729605772701804

Traceback (most recent call last):
  File "/data/pnl/soft/pnlpipe3/multi-shell-dMRIharmonization/lib/harmonization.py", line 529, in <module>
    pipeline.run()
  File "/data/pnl/soft/pnlpipe3/miniconda3/envs/pnlpipe3/lib/python3.6/site-packages/plumbum/cli/application.py", line 572, in run
    retcode = inst.main(*tailargs)
  File "/data/pnl/soft/pnlpipe3/multi-shell-dMRIharmonization/lib/harmonization.py", line 522, in main
    self.post_debug()
  File "/data/pnl/soft/pnlpipe3/multi-shell-dMRIharmonization/lib/harmonization.py", line 358, in post_debug
    self.showStat()
  File "/data/pnl/soft/pnlpipe3/multi-shell-dMRIharmonization/lib/harmonization.py", line 409, in showStat
    outPrefix=pjoin(self.templatePath,'meanFAstat'), bshell_b=self.bshell_b)
  **File "/data/pnl/soft/pnlpipe3/multi-shell-dMRIharmonization/lib/harm_plot.py", line 27, in harm_plot
    num_series, num_sub= np.shape(ydata)
ValueError: not enough values to unpack (expected 2, got 1)**
@tashrifbillah
Copy link
Collaborator

Hi Suheyla,

FYI: In template creation, we expect two sites to not have a significantly different number of subjects to avoid bias but it is not necessary to have the exact same number of subjects in each site.

News for me but hasn't it always been that we shall need a set of matching reference and target subjects for template creation? For a match to happen, it will always be the same number across two sites.

@suheyla2
Copy link
Author

suheyla2 commented Jan 4, 2021 via email

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

2 participants