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

runRMINCTestbed() failing #321

Open
lgazdzin opened this issue May 29, 2024 · 1 comment
Open

runRMINCTestbed() failing #321

lgazdzin opened this issue May 29, 2024 · 1 comment

Comments

@lgazdzin
Copy link

lgazdzin commented May 29, 2024

I've just installed RMINC into R version 4.4.0. runRMINCTestbed() fails in several places with what looks to be a python version issue. I've tried installing python2.7 and pointing the volume_from_labels_only python script to it, but then it can't find python-stuffs and fails again. I've also tried pointing it to my Homebrew installation of python2.7, but that fails for other reasons. It also looks like the testbed terminates early, presumably because it hits to many errors.

Is this going to be a problem with regular RMINC use or is this unique to the testing sets? Is there an easy fix for this?

Thanks!

Here is the output to where this first occurs and the last bit of testing before it terminates early:

> RMINC::runRMINCTestbed()


Running tests in:  /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RMINC/user_tests/ 


✔ | F W  S  OK | Context
✔ |         23 | anatAnova [5.6s]                                                                                            
✔ |   1      1 | anatApply [5.8s]                                                                                            
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Warning (test_anatApply.R:18:1): (code run outside of `test_that()`)
Coercing gf$Primary.Diagnosis to a factor

Backtrace:
    ▆
 1. └─RMINC::anatApply(gf$lobeThickness, gf$Primary.Diagnosis)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ |         46 | anatFDR [7.9s]                                                                                              
⠏ |          0 | anatGet                                                                                                     sh: /usr/local/bin/volumes_from_labels_only: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
✖ | 2 1     21 | anatGet [1.7s]      

...................

Error (test_mincTFCE.R:105:3): Vertex TFCE approximately matches mincTFCE
Error in `mincFileCheck(filename)`: The following file could not be read (full filename is between the dashes): ---/var/folders/1f/r_t77pqx0rq1kdy4719pn45h5v1b8w/T//RtmpHDoyxN/minc_tfce_out44561ecfa36.mnc---
Backtrace:
    ▆
 1. ├─RMINC::mincTFCE(first_vol, d = 0.0027) at test_mincTFCE.R:105:3
 2. └─RMINC:::mincTFCE.mincSingleDim(first_vol, d = 0.0027)
 3.   └─RMINC::mincGetVolume(output_file)
 4.     └─RMINC:::mincFileCheck(filename)

[ FAIL 10 | WARN 12 | SKIP 0 | PASS 247 ]
══ Terminated early ═════════════════════════════════════════════════════════════════════════════════════════════════════════
Error: Test failures
@gdevenyi
Copy link
Contributor

gdevenyi commented Jun 6, 2024

Technically, this is a failure of volumes_from_labels_only, a script from minc-stuffs:
https://github.com/Mouse-Imaging-Centre/minc-stuffs/blob/main/python/volumes_from_labels_only

I have confirmed volumes_from_labels_only works in python3.10 with properly installed minc-toolkit-v2 and pyminc

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