-
Notifications
You must be signed in to change notification settings - Fork 65
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
Perfusion alignment doesn't output image #1235
Comments
Hi @chiharusako, this issue shoud be fixed buy #1291. Could you please verify this? The artifacts are here: https://dev.azure.com/CBICA/CaPTk/_build/results?buildId=2321&view=artifacts&type=publishedArtifacts I am compiling this on my home directory, as well and it should be available on |
@sarthakpati It still doesn't output an image. Also why do you need a t1ce input? Is it being used? If so, are there requirements for this, such as registered with perfusion etc?
|
I think the T1Gd DICOM is required [ref] and not NIfTI. |
That documentation is old. It no longer requires the 2. DSC dicom slice either.
This is what -h gives now. Is it using t1ce it in the calculation?
```
$ ~patis/testing/captkMyFork_1.8.0.nonRelease.20200908.834dc79/bin/PerfusionAlignment -h
Executable Name: PerfusionAlignment v1.8.0.nonRelease.20200908.834dc79
Description:
Perfusion Alignment of the input based based on specified time points
Usage:
:::Required parameters:::
[ -i, --input] The input DSC-MRI image.
Expected Type :: STRING
Expected Range ::
[ -c, --t1ce file] The input T1 post-weighted image.
Expected Type :: STRING
Expected Range ::
[ -b, --timepoints before drop] The number of time-points before the drop.
Expected Type :: STRING
Expected Range ::
[ -a, --timepoints after drop] The number of time-points after the drop.
Expected Type :: STRING
Expected Range ::
[ -t, --timedomain resolution] The time-interval between two consecutive volumes in time-domain (in seconds).
Expected Type :: FLOAT
Expected Range ::
[ -o, --output] The output directory.
Expected Type :: STRING
Expected Range ::
```
|
You are right; I was mistaken. The documentation needs to be updated after the usage has been finalized (I have no idea whether T1Gd is required or not). |
@chiharusako are you using the same input as you mentioned earlier? what time-resolution you are providing as input; this is different from echo time? time-resolution is generally 2sec for penn data having 45 time-points. the code needs the following parameters as input:
like this: |
@saimarathore Is the 6. time-resolution the time resolution (TR) for the input or output? Also why do you need a t1ce input? |
time-resolution is for the input perfusion image. it is actually the spacing in the 4th dimension, which is generally 2sec for perfusion images having 45 time-points. |
we need t1ce to write the aligned perfusion volumes in the t1ce space. |
I talked to @saimarathore Updated feedback:
Updated Results: (the output nii.gz were written in current directory but I moved to the output folder)
image of one of the outputs. The intensity is bright on the outside and very low inside brain |
From our meeting today, there are 2 things that need to be addressed:
Is that right @saimarathore? |
@sarthakpati Yes, and the 3 items I wrote before your comment.. |
Hey @chiharusako, I have made some changes. Could you please check on the cluster? It will be available in |
@sarthakpati It didn't finish. Did it work for you?
|
Yeah, I tried with a few images and it worked fine. Can you email/message the path to the image? |
/cbica/home/sakoc/comp_space/lab/captk/180b/perfalign4/input/AAAA_2007.01.21_perf_LPS.nii.gz |
Got it. I can replicate the seg-fault. I will debug and let you know. |
So, this is happening because the total number of volumes in the perfusion image is 45, drop is detected at 35 but the
Let me know if you want some other wording. |
@sarthakpati The drop is not at 35 out of 45. Perhaps it's confusing the drop after resampling to 1 sec. For this example, the drop is around 17 out of 45 (curve below), 2sec interval. Once you resample to 1sec, it will have 90 timepoints and drop will be at around 35 but it should have enough timepoints after. We can talk tomorrow if it helps. |
Ah, now I understand this much better. Yes, it was trying to perform the extraction on the original perfusion, hence the error. I am testing a fix right now. Update: e89823b seems to have fixed it. I am compiling on the cluster right now (and ready at |
After conversing with Hamed, the function |
Done. |
Describe the bug
PerfusionAlignment only outputs csv and not an image.
Also, help documentation needs to be updated.
To Reproduce
Expected behavior
Output an aligned perfusion image
CaPTk Version
1.8.0.Beta on cbica-cluster
Desktop (please complete the following information):
Additional context
Documentation example says
However there is no -d option in the required parameters.
Also, do we need the t1ce file and echo time? I gave it as parameters above as it won't run without it, but I am not sure if it is using it, especially if requiring the perfusion dicom as input.
The text was updated successfully, but these errors were encountered: