-
Notifications
You must be signed in to change notification settings - Fork 532
PETPVC wrapper #1332
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
Comments
It would be a great addition! We would love to have more support for PET related software. Please send a PR. |
First solution given on #1335 |
Hi, it is really a nice work to implement this tool in nipype. Obviously, it is much easier for researchers to use than c++ version. I do appreciate it. Errors Message: My question is do I need to install the PETPVE (c++ source code) under a specific directory? |
Hi @ubersexualShupeng, you can find the documentation in http://nipype.readthedocs.io/en/latest/documentation.html. I hope this helps. Cheers, |
You'll need to install it somewhere so that running It appears there are Windows binaries available. I'm not sure whether this is an installer or a simple executable to be placed in your path. Their README also points to some requirements for Windows users. (The current link is bad; try: https://support.microsoft.com/en-us/help/3179560/update-for-visual-c-2013-and-visual-c-redistributable-package) Hope this helps. |
Hi @effigies , I install the binaries you provided and that is a bunch of .exe files. import sys The path is where the binaries (.exe) file placed. |
No, sorry, I mean your OS PATH, on Windows you may have to add the folder path where the petpvc binary is to your system path: |
It's better not to manipulate the PATH inside Python, but instead make sure that your programs are in the PATH. That way, your code doesn't depend on the exact setup of your system. You can test whether a program is in your PATH by opening a terminal and typing the program name (in this case, But if you're going to modify your PATH in Python, you probably need to make that a raw string ( |
Hi @alexsavio @effigies I do appreciate your help. I added the binaries in the system PATH. The error message as following: How can I fix this problem? |
Can you try running it in a from nipype.pipeline import engine as pe
from nipype.interfaces.petpvc import PETPVC
pvc = pe.Node(PETPVC(), name='pvc', base_dir=r'C:\tmp')
pvc.inputs.in_file = 'C:\Users\135173\Desktop\pvc_test\PET_nii\x_WB_CTAC_Body.nii.gz'
pvc.inputs.mask_file = 'C:\Users\135173\Desktop\pvc_test\mask_nill\skin_mask.nii.gz'
pvc.inputs.out_file = 'C:\Users\135173\Desktop\pvc_test\pet_pvc_rbv.nii.gz'
pvc.inputs.pvc = 'RBV'
pvc.inputs.fwhm_x = 2
pvc.inputs.fwhm_y = 2
pvc.inputs.fwhm_z = 2
output = pvc.run() This should create a file: Paste the contents of that file to a gist. And could you open a new issue? We're 8 posts into a closed issue, now. |
I just created a new issue |
Hi,
I have a wrapper for PETPVC, a new tool (very needed) for partial volume correction of PET images.
The wrapper code is here.
Do you think this would be a good addition? What else should I do to get this merged?
Thanks.
Cheers,
Alex
The text was updated successfully, but these errors were encountered: