Giter Club home page Giter Club logo

dvh-analytics-bokeh's People

Contributors

bastula avatar bzawislak avatar cutright avatar davidjuliano avatar keithoffer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dvh-analytics-bokeh's Issues

Surface area calculations incorrect

surface area calculation for ROIs has been rewritten for calculation at time of DICOM import here: 0bd6268

  • Need to add ability to recalculate surface areas of ROIs already in database
  • Need to validate calculations against a TPS or maybe CERR

another isue

Hi Cutright,

Thanks for quick response. I almost there, but still have issues to run as shown below. By the way, where the import directories (review, inbox,imported) are created by default?

Thanks,

tom

C:\ProgramData\Anaconda2\lib\site-packages\fuzzywuzzy-0.15.1-py2.7.egg\fuzzywuzzy\fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
Loading create_tables.sql
Executing create_tables.sql
Tables created
True
2017-10-18 13:40:58,976 Starting Bokeh server version 0.12.7 (running on Tornado 4.4.2)
2017-10-18 13:40:58,984 Bokeh app running at: http://localhost:5006/dvh
2017-10-18 13:40:58,984 Starting Bokeh server with process id: 9532
2017-10-18 13:41:04,216 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x0000000008FB8710>: list index out of range
File "main.py", line 496, in init:
self.select_value = Select(value=self.values[0], options=self.values, width=420) Traceback (most recent call last):
File "C:\ProgramData\Anaconda2\lib\site-packages\bokeh\application\handlers\code_runner.py", line 125, in run
exec(self._code, module.dict)
File "C:\AitangResearch\DVHAnalytics\dvh\main.py", line 3487, in
button_add_selector_row()
File "C:\AitangResearch\DVHAnalytics\dvh\main.py", line 220, in button_add_selector_row
query_row.append(SelectorRow())
File "C:\AitangResearch\DVHAnalytics\dvh\main.py", line 496, in init
self.select_value = Select(value=self.values[0], options=self.values, width=420)
IndexError: list index out of range

2017-10-18 13:41:04,226 200 GET /dvh (::1) 4141.00ms
2017-10-18 13:41:04,430 304 GET /dvh/static/images/logo.jpg (::1) 162.00ms
2017-10-18 13:41:04,555 WebSocket connection opened
2017-10-18 13:41:04,555 ServerConnection created
2017-10-18 13:41:04,585 404 GET /favicon.ico (::1) 0.00ms

MLC Analyzer does not work for RayStation

The MLC Analyzer module was designed with Pinnacle DICOM files. I recently tested with a RayStation plan and it crashed. Modifications need to be made for other TPSs.

Question about physician ROI remap

Hi,

I found the institutional ROI and physician ROI are all uncategorized after data importing, so I go to the ROI name manager to remap ROIs. But there is a error:

error handling message Message u'EVENT' (revision 1) content: u'{"event_name":"button_click","event_values":{"model_id":"2221"}}': KeyError('',)

I don't know if it is a bug or what, could you please give me some hints? Thanks!

Best,

Zeyu

Pre-emptive data integrity check at query

Would be nice to have potential issues with query posted to help explain why certain modules may be failing. For example:

  • Non-numerical data detected for numerical SQL columns
  • Missing data (e.g., common ones could be simulation date, age, physician, etc.)
  • Missing PTV in a plan
  • Missing PTV Distance and PTV Overlap calculations

DICOM to Python import assumes Beam Dose Specification Point exists in the RTPLAN file

I noticed trying to import some data I have on hand that the importer assumes that the Beam Dose Specification Point is set in the RTPLAN file. The exact lines of code that handle that are here. As far as I understand, this isn't required by the DICOM specification, and as such there is no guarantee this is set (note that I could easily be wrong here as I'm not a DICOM expert). At the moment any RTPLAN files without this attribute will crash the importer. I'm not sure what exactly the point is used for elsewhere in the program for analysis, or what should be stored in the database if the point isn't present.

ROI Viewer scrolling scrolls browser window

This is been a known bug for a long time, it's more of a nuisance than a bug. Does anyone know how to turn off or cancel the browser scrolling in javascript? I don't believe Bokeh provides explicit methods for this.

I am having issue with the mlc_analyzer

Error:

AttributeErrorTraceback (most recent call last)
<ipython-input-42-a660279469d7> in <module>()

from dvh import mlc_analyzer as mlca
----> 1 pcs = mlca.Plan(rtplan1_dcm)

C:\AppData\Local\conda\conda\envs\mppy27\lib\site-packages\dvh\mlc_analyzer.pyc in __init__(self, rt_plan)
     16 class Plan:
     17     def __init__(self, rt_plan):
---> 18         self.fx_group = [FxGroup(fx_grp_seq, rt_plan.BeamSequence) for fx_grp_seq in rt_plan.FractionGroupSequence]

AttributeError: 'str' object has no attribute 'FractionGroupSequence'

Although rtplan.ds.FractionGroupSequence does exist.
Please, how do i get around this.
Thank you.

could not find the import-settings.txt

Hi Cutright,
Thanks a lot for developing this great tools. When I setup and try to run the main.py, the following errors occurred. Could you help me to resolve this? Thanks.

tom

File "C:\AitangResearch\DVHAnalytics\dvh\main.py", line 50, in
temp_dvh_info = Temp_DICOM_FileSet()
File "C:\AitangResearch\DVHAnalytics\dvh\utilities.py", line 31, in init
with open(abs_file_path, 'r') as document:

IOError: [Errno 2] No such file or directory: 'C:\AitangResearch\DVHAnalytics\dvh\preferences/import_settings.txt'

Automate composite dose processing

We intend to add automation of composite DVH calculation based on multiple DICOM RT Dose files

Because not all treatment planning systems can export a composite plan (e.g., putting all rxs in a single rt plan file), functionality to import all rt plan files for a given study instance UID was added (see 3e3db72).

Currently, DVH Analytics will still only import the latest dose and struct files for a given study instance UID, so the user may need to use other software to generate a single rt dose file of the composite dose. We plan to do this for you in a future update.

In summary, DVH Analytics assumes:

  • All rt plan files in the inbox are pertinent (unless IMPORT_LATEST_PLAN_ONLY is set to True in options.py)
  • Only the latest rt plan and rt struct files will be used, and are assumed to reflect a composite
    • All DICOM files for a given study instance UID will still be catalogued, even if their data is not added to the Plans, Beams, Rxs, or DVHs tables

Beam MU shift in Eclipse plans

Hi

First of all, thank you for this extremely useful tool.
I am tried to feed in Pinnacle and Eclipse treatment plans into the system and strangely experienced a shift in beam MUs at the eclipse plans. I have checked the dcm files and the beam numbers are correct and referencing the correct amount of MUs. Have you come cross this issue? Is there a compatibility issue with eclipse versions?
We don`t have problems with the Pinnacle plans, those are coming through fine.

Thank you

about installation

i am very insterseted in it for my reserach,but there are many componennts to install after configuring python 2.7 ,can you describe the simplified installation procedure?thanks

__main__.py not updated for 0.4.6

In __main__.py, Temp_DICOM_FileSet is still referenced from dvh/utilities.py instead of dvh/bokeh_components/utilities.py

__main__.py is the entry point for pip installed versions of DVH Analytics, therefore 0.4.6 is not runnable via 'dvh' calls from a pip install or in docker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.