EDA-NIf (EDA NIfTI)
Tool for Exploratory Data Analysis of Neuroimaging Informatics Technology Initiative(NIfTI) format
EDA-NIf creates a dataframe containing meta information of NIfTi file format and provides several useful functions.
Installation
pip install edanif
Beta versions with official documentation are provided starting from major version 1.
Tutorial
We provide tutorial notebooks for all the features we offer. We plan to provide additional docstrings or documentation from the official distribution version (major version 1 or higher).
- Main-tutorials: https://github.com/DSDanielPark/EDA-NIf/blob/main/tutorials/edanif_tutorial.ipynb
- Sub-tutorial-folder: https://github.com/DSDanielPark/EDA-NIf/tree/main/tutorials
Main Feature
See sample data folder tree...
The sample data folder is designed with an unnecessary and complex structure to show that all nifti files under the top-level folder path are collected recursively. If you are using the BIDS format, you only need to insert keywords properly.
Example folder tree
edanif.eda_nif.meta_df
If you enter only the top-level folder containing nifti files, you can get a data frame for all nifti files.
-
In case of raw nifti files
import edanif raw_nifti_folder= '../data/raw_nifti' df_raw_nii = edanif.meta_df(raw_nifti_folder, 'nii.gz', 'df_raw_nii_meta.csv', False)
result dataframe: https://github.com/DSDanielPark/EDA-NIf/blob/main/tutorials/result/df_raw_nii_meta.csv
-
In case of mask nifti files (binary files
only)import edanif mask_nifti_folder= '../data/mask_nifti' df_mask_nii = edanif.meta_df(mask_nifti_folder, 'mask.nii.gz', 'df_mask_nii_meta.csv', True)
result dataframe: https://github.com/DSDanielPark/EDA-NIf/blob/main/tutorials/result/df_mask_nii_meta.csv
Features
-
edanif.eda_nif
1.1count_center_voxel_labels
1.2meta_df: enter only the top-level folder containing nifti files, you can get a data frame for all nifti files. -
edanif.vis_nif
2.1save_nifti_images -
edanif.utils.util
3.1find_all_files
3.2save_print_instance -
edanif.process.preprocess
4.1count_center_voxel_labels
4.2if_minus_return_0
4.3get_nonzero3d
4.4get_nonzero3d_shape
4.5get_hardcrop
4.6threshold_at_two
4.7monai_cropforeground
4.8get_nonzero_xyz_of_nii -
edanif.process.registration
5.1RegistrationMetric -
edanif.process.resampling
6.1make_isotropic
6.2resample_fixedsize_fixedspacing
6.3resampling -
edanif.process.trans_morph
7.1voxel_erosion
7.2voxel_dilation
7.3get_boundary_diff_index
- Feature development and unit testing are ongoing. We will update it whenever time permits.
References
[1] NiBabel https://nipy.org/nibabel/
[2] SimpleITK https://simpleitk.org/
[3] MONAI https://monai.io/
[4] AntsPy https://github.com/ANTsX/ANTsPy
Contacts
Maintainer: Daniel Park, South Korea e-mail parkminwoo1991@gmail.com
Metadata
Release files for edanif 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edanif-0.1.7.tar.gz | 15.1 kB | Without provenance | Details for edanif-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edanif-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for edanif-0.1.7-py3-none-any.whl |
Total release size: 31.1 kB
Release files / edanif-0.1.7.tar.gz
| Download URL | edanif-0.1.7.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5860d9eaa454ebf644a98327c66e95361b80fa1724353705ba306c8206759e3c
|
|
BLAKE2b-256 checksum How to use checksums |
a9f101a649570877e6d69493b878d70b60a375d0513679c390c752123f95d701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / edanif-0.1.7-py3-none-any.whl
| Download URL | edanif-0.1.7-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
607ffec84abbee4f5ce60606f2a05382f83e9c83370bf7b3caf7e3deee871235
|
|
BLAKE2b-256 checksum How to use checksums |
abfec9bcfb8f219f76f0d9b6f5c42cbc1c3bce84671d2a0972443be500e991f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for edanif 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.