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

NA returned from getNTCP() #12

Closed
MelAMcIntyre opened this issue Oct 18, 2023 · 3 comments
Closed

NA returned from getNTCP() #12

MelAMcIntyre opened this issue Oct 18, 2023 · 3 comments

Comments

@MelAMcIntyre
Copy link

Hi there,

I am looking for some assistance with the NTCP calculation. getNTCP() is returning a NaN value for the attached DVH (from RayStation) with the following parameters.

> getNTCP(x=x[[1]], NTCPtd50=56, NTCPm=0.64, NTCPn=0.203, NTCPtype="probit")
  NTCP patID structure
1   NA    13   STOMACH
Warning message:
In getEUD.DVHs(x, EUDa = EUDa, EUDfn = EUDfn, EUDab = EUDab) :
  Numerical problems encountered, NA returned

I am wondering if you could point me in the right direction?

photontest.txt

@dwoll
Copy link
Owner

dwoll commented Oct 18, 2023

Hi Mel, Thank you for testing DVHmetrics! Currently, EUD calculation works with absolute volume only, so you have to supply information on structure volume when reading in the data via option raystation as follows:

x <- readDVH("/path/to/file.txt",
             type="RayStation",
             raystation=list(list(date="2023-10-21",
                                  doseRx="54Gy",
                                  volumeUnit="CC",
                                  structVol=c("STOMACH"=150))))

Please see #6 for an example of reading in multiple files, or for having more than 1 structure per file.

Does this work?

@dwoll
Copy link
Owner

dwoll commented Oct 18, 2023

On second thought, I implemented gEUD calculation based on information on relative volume. If you do remotes::install_github("dwoll/DVHmetrics"), and run your code again, it should work. Feedback welcome!

@MelAMcIntyre
Copy link
Author

Yes this has done the trick! Thank you so much for the quick response :)

On second thought, I implemented gEUD calculation based on information on relative volume. If you do remotes::install_github("dwoll/DVHmetrics"), and run your code again, it should work. Feedback welcome!

@dwoll dwoll closed this as completed Oct 19, 2023
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