Skip to main content

No project description provided

Project description

GlioMODA

Python Versions Stable Version Documentation Status tests codecov License

Features

Installation

With a Python 3.10+ environment, you can install gliomoda directly from PyPI:

pip install gliomoda

Use Cases and Tutorials

A minimal example to create a segmentation could look like this:

from gliomoda import Inferer

inferer = Inferer()

# Save NIfTI files
inferer.infer(
    t1c="path/to/t1c.nii.gz",
    t2f="path/to/t2f.nii.gz",
    t1n="path/to/t1n.nii.gz",
    t2w="path/to/t2w.nii.gz",
    segmentation_file="path/to/segmentation.nii.gz",
)

# Or directly use pre-loaded NumPy data. (Both works as well)
segmentation_np = inferer.infer(
    t1c=t1c_np,
    t2f=t2f_np,
    t1n=t1n_np,
    t2w=t2w_np,
)

Citation

If you use GlioMODA in your research, please cite it to support the development!

TODO: citation will be added asap

Trouble shoot

Multiprocessing error

If you get an error related to something like this:

RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

        To fix this issue, refer to the "Safe importing of main module"
        section in https://docs.python.org/3/library/multiprocessing.html

Please ensure you properly wrap your script:

if __name__ == "__main__":
    inferer = Inferer()
    ...

Contributing

We welcome all kinds of contributions from the community!

Reporting Bugs, Feature Requests and Questions

Please open a new issue here.

Code contributions

Nice to have you on board! Please have a look at our CONTRIBUTING.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gliomoda-0.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file gliomoda-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gliomoda-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/8.0.0 keyring/25.6.0 pkginfo/1.12.1.1 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for gliomoda-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 021a7d90c6428a5b7d6d1d684a3ee2c061ce9a3727541659fdf622c9d24ece8e
MD5 594c1f3d9e5d6f67ce5a4f0a7798ec2d
BLAKE2b-256 0ca9ce31c41cd36446cfbaea558ec1d930e827ed3c463f80e0829a5b804081d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page