habitat-analysis 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- habitat_analysis-1.0.1/CITATION.cff +29 -0
- habitat_analysis-1.0.1/LICENSE +202 -0
- habitat_analysis-1.0.1/MANIFEST.in +36 -0
- habitat_analysis-1.0.1/NOTICE +42 -0
- habitat_analysis-1.0.1/PKG-INFO +147 -0
- habitat_analysis-1.0.1/README.md +88 -0
- habitat_analysis-1.0.1/README_en.md +67 -0
- habitat_analysis-1.0.1/habit/__init__.py +74 -0
- habitat_analysis-1.0.1/habit/__main__.py +26 -0
- habitat_analysis-1.0.1/habit/_public_api.py +330 -0
- habitat_analysis-1.0.1/habit/_version.py +17 -0
- habitat_analysis-1.0.1/habit/adapters/__init__.py +29 -0
- habitat_analysis-1.0.1/habit/adapters/directory.py +215 -0
- habitat_analysis-1.0.1/habit/adapters/habitat_image_writer.py +87 -0
- habitat_analysis-1.0.1/habit/adapters/image_refs.py +125 -0
- habitat_analysis-1.0.1/habit/adapters/writers.py +432 -0
- habitat_analysis-1.0.1/habit/api/__init__.py +50 -0
- habitat_analysis-1.0.1/habit/api/analysis.py +135 -0
- habitat_analysis-1.0.1/habit/api/clinical.py +449 -0
- habitat_analysis-1.0.1/habit/api/contracts.py +135 -0
- habitat_analysis-1.0.1/habit/api/dicom_sort.py +70 -0
- habitat_analysis-1.0.1/habit/api/estimators.py +585 -0
- habitat_analysis-1.0.1/habit/api/exceptions.py +47 -0
- habitat_analysis-1.0.1/habit/api/habitat.py +279 -0
- habitat_analysis-1.0.1/habit/api/image.py +521 -0
- habitat_analysis-1.0.1/habit/api/machine_learning.py +204 -0
- habitat_analysis-1.0.1/habit/api/plugins.py +403 -0
- habitat_analysis-1.0.1/habit/api/preprocessing.py +474 -0
- habitat_analysis-1.0.1/habit/api/provenance.py +216 -0
- habitat_analysis-1.0.1/habit/api/radiomics.py +283 -0
- habitat_analysis-1.0.1/habit/api/registry.py +35 -0
- habitat_analysis-1.0.1/habit/api/utils.py +87 -0
- habitat_analysis-1.0.1/habit/cli.py +469 -0
- habitat_analysis-1.0.1/habit/commands/__init__.py +19 -0
- habitat_analysis-1.0.1/habit/commands/cmd_check_config.py +278 -0
- habitat_analysis-1.0.1/habit/commands/cmd_compare.py +74 -0
- habitat_analysis-1.0.1/habit/commands/cmd_dicom_info.py +177 -0
- habitat_analysis-1.0.1/habit/commands/cmd_extract_features.py +72 -0
- habitat_analysis-1.0.1/habit/commands/cmd_gui.py +169 -0
- habitat_analysis-1.0.1/habit/commands/cmd_habitat.py +677 -0
- habitat_analysis-1.0.1/habit/commands/cmd_icc.py +69 -0
- habitat_analysis-1.0.1/habit/commands/cmd_merge_csv.py +249 -0
- habitat_analysis-1.0.1/habit/commands/cmd_migrate_config.py +96 -0
- habitat_analysis-1.0.1/habit/commands/cmd_ml.py +815 -0
- habitat_analysis-1.0.1/habit/commands/cmd_preprocess.py +81 -0
- habitat_analysis-1.0.1/habit/commands/cmd_radiomics.py +67 -0
- habitat_analysis-1.0.1/habit/commands/cmd_sort_dicom.py +75 -0
- habitat_analysis-1.0.1/habit/commands/cmd_test_retest.py +76 -0
- habitat_analysis-1.0.1/habit/commands/common.py +250 -0
- habitat_analysis-1.0.1/habit/common.py +230 -0
- habitat_analysis-1.0.1/habit/compat/__init__.py +46 -0
- habitat_analysis-1.0.1/habit/compat/config_validator.py +216 -0
- habitat_analysis-1.0.1/habit/compat/configurator_base.py +130 -0
- habitat_analysis-1.0.1/habit/compat/dicom_sort_runner.py +152 -0
- habitat_analysis-1.0.1/habit/compat/engines/__init__.py +15 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/__init__.py +67 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/checkpoint/__init__.py +66 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/checkpoint/manager.py +780 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/checkpoint/recipe.py +44 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/checkpoint/stage.py +534 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/checkpoint/step.py +83 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/__init__.py +49 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/base_clustering.py +785 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/cluster_search_parallel.py +386 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/cluster_validation_methods.py +17 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/custom_clustering_template.py +150 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/gmm_clustering.py +94 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/kmeans_clustering.py +88 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/slic_clustering.py +418 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering/test_validation_methods.py +145 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/__init__.py +154 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/base_extractor.py +171 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/concat_feature_extractor.py +127 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/custom_feature_extractor_template.py +87 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/feature_expression_parser.py +299 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/feature_extractor_factory.py +244 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/kinetic_feature_extractor.py +154 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/local_entropy_extractor.py +174 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/mean_voxel_features_extractor.py +259 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/method_binding_validation.py +168 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/method_param_spec.py +166 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/my_feature_extractor.py +103 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/raw_feature_extractor.py +114 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/supervoxel_radiomics_extractor.py +469 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/test_parser.py +78 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/test_supervoxel_parser.py +65 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/clustering_features/voxel_radiomics_extractor.py +302 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/config_schemas.py +21 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/configurator.py +223 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_extraction_loader.py +29 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/__init__.py +76 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/base_preprocessing.py +213 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/builtin_methods.py +550 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/custom_preprocessing_template.py +76 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/dataframe_utils.py +76 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/method_config_utils.py +114 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/pipeline.py +219 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/preprocessing_state.py +151 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/feature_preprocessing/value_transforms.py +244 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/habitat_analysis.py +1045 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/__init__.py +64 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/base_pipeline.py +549 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/habitat_subject_data.py +157 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/pipeline_serialization.py +163 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/__init__.py +45 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/group_clustering.py +266 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/group_preprocessing.py +90 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/individual_clustering.py +191 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/individual_preprocessing.py +58 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/mean_voxel_features.py +73 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/supervoxel_combination.py +82 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/supervoxel_feature_extraction.py +84 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/supervoxel_feature_merge.py +223 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/voxel_concatenation.py +79 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/pipelines/steps/voxel_feature_extraction.py +63 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/run.py +170 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/services/__init__.py +37 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/services/clustering_service.py +638 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/services/feature_service.py +744 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/services/habitat_image_writer.py +388 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_analysis/services/result_publisher.py +148 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/__init__.py +15 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/configurator.py +126 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/feature_registry.py +353 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/__init__.py +39 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/basic_features.py +93 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/builtin_plugins.py +647 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/custom_habitat_feature_template.py +150 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/feature_utils.py +133 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/get_msi_features.py +269 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/habitat_analyzer.py +416 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/habitat_radiomics.py +185 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/ith_features.py +155 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/msi_features.py +215 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/traditional_radiomics_extractor.py +458 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/habitat_features/utils.py +64 -0
- habitat_analysis-1.0.1/habit/compat/engines/habitat_extraction/run.py +49 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/__init__.py +91 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/config_schemas.py +21 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/configurator.py +140 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/contracts/__init__.py +41 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/contracts/dataset.py +86 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/contracts/plan.py +63 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/contracts/protocols.py +49 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/contracts/results.py +464 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/data_manager.py +389 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/__init__.py +15 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/calculations.py +454 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/explainability.py +108 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/metrics.py +829 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/model_evaluation.py +698 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/prediction_container.py +222 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/evaluation/threshold_manager.py +49 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/__init__.py +59 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/_io.py +169 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/anova_selector.py +149 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/chi2_selector.py +158 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/correlation_selector.py +127 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc/__init__.py +85 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc/config.py +17 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc/habitat_test_retest_mapper.py +24 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc/icc.py +25 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc/icc_analyzer.py +17 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/icc_selector.py +142 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/lasso_selector.py +291 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/mrmr_selector.py +113 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/python_stepwise_selector.py +594 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/rfecv_selector.py +168 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/selector_registry.py +338 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/statistical_test_selector.py +217 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/univariate_logistic_selector.py +114 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/variance_selector.py +160 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/feature_selectors/vif_selector.py +161 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/__init__.py +51 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/adaboost_model.py +133 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/autogluon_model.py +303 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/base.py +170 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/custom_model_example.py +106 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/decision_tree_model.py +135 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/ensemble.py +112 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/factory.py +116 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/gradient_boosting_model.py +137 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/knn_model.py +130 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/logistic_regression_model.py +135 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/mlp_model.py +186 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/naive_bayes_model.py +316 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/random_forest_model.py +144 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/svm_model.py +291 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/utils.py +84 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/models/xgboost_model.py +152 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/pipeline_builder.py +405 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/reporting/__init__.py +47 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/reporting/model_store.py +129 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/reporting/plot_composer.py +144 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/reporting/report_exporter.py +202 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/reporting/report_writer.py +242 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/resampling.py +297 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/run.py +145 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/__init__.py +33 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/base.py +95 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/context.py +64 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/holdout.py +211 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/inference.py +233 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/runners/kfold.py +258 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/statistics/__init__.py +15 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/statistics/delong_test.py +449 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/statistics/hosmer_lemeshow_test.py +234 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/statistics/spiegelhalter_z_test.py +57 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/visualization/__init__.py +33 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/visualization/km_survival.py +19 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/visualization/plot_manager.py +474 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/visualization/plotting.py +862 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/workflows/__init__.py +14 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/workflows/base.py +182 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/workflows/comparison_workflow.py +994 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/workflows/holdout_workflow.py +201 -0
- habitat_analysis-1.0.1/habit/compat/engines/machine_learning/workflows/kfold_workflow.py +123 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/__init__.py +42 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/adaptive_histogram_equalization.py +194 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/base_preprocessor.py +57 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/config_schemas.py +21 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/configurator.py +48 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/custom_preprocessor_template.py +80 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/dcm2niix_converter.py +515 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/dcm2niix_runner.py +123 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/elastix_cli_runner.py +293 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/histogram_standardization.py +324 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/image_processor_pipeline.py +634 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/load_image.py +167 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/n4_correction.py +180 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/preprocessor_factory.py +32 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/__init__.py +19 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/ants_backend.py +117 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/base.py +66 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/elastix_backend.py +413 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/registration_preprocessor.py +327 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/registration/sitk_backend.py +207 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/reorientation.py +198 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/resample.py +210 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/run.py +50 -0
- habitat_analysis-1.0.1/habit/compat/engines/preprocessing/zscore_normalization.py +187 -0
- habitat_analysis-1.0.1/habit/compat/estimator_bridge.py +35 -0
- habitat_analysis-1.0.1/habit/compat/feature_extraction_loader.py +118 -0
- habitat_analysis-1.0.1/habit/compat/feature_extraction_runner.py +72 -0
- habitat_analysis-1.0.1/habit/compat/graph_plugin.py +58 -0
- habitat_analysis-1.0.1/habit/compat/habitat_runner.py +121 -0
- habitat_analysis-1.0.1/habit/compat/icc_analyzer.py +682 -0
- habitat_analysis-1.0.1/habit/compat/icc_runner.py +126 -0
- habitat_analysis-1.0.1/habit/compat/legacy_core.py +239 -0
- habitat_analysis-1.0.1/habit/compat/ml_runner.py +307 -0
- habitat_analysis-1.0.1/habit/compat/monai.py +413 -0
- habitat_analysis-1.0.1/habit/compat/nnunet.py +410 -0
- habitat_analysis-1.0.1/habit/compat/orchestrator.py +125 -0
- habitat_analysis-1.0.1/habit/compat/plugin_registries.py +74 -0
- habitat_analysis-1.0.1/habit/compat/preprocess_runner.py +45 -0
- habitat_analysis-1.0.1/habit/compat/registry_facade.py +84 -0
- habitat_analysis-1.0.1/habit/compat/sklearn.py +675 -0
- habitat_analysis-1.0.1/habit/compat/test_retest_mapper.py +446 -0
- habitat_analysis-1.0.1/habit/contracts/__init__.py +91 -0
- habitat_analysis-1.0.1/habit/contracts/geometry.py +121 -0
- habitat_analysis-1.0.1/habit/contracts/habitat.py +702 -0
- habitat_analysis-1.0.1/habit/contracts/image.py +317 -0
- habitat_analysis-1.0.1/habit/contracts/manifest.py +502 -0
- habitat_analysis-1.0.1/habit/contracts/ops.py +278 -0
- habitat_analysis-1.0.1/habit/contracts/outcome.py +390 -0
- habitat_analysis-1.0.1/habit/contracts/provenance.py +176 -0
- habitat_analysis-1.0.1/habit/contracts/subject.py +551 -0
- habitat_analysis-1.0.1/habit/contracts/table.py +174 -0
- habitat_analysis-1.0.1/habit/datasets/__init__.py +21 -0
- habitat_analysis-1.0.1/habit/datasets/synthetic.py +340 -0
- habitat_analysis-1.0.1/habit/domain/__init__.py +413 -0
- habitat_analysis-1.0.1/habit/domain/assembly.py +342 -0
- habitat_analysis-1.0.1/habit/domain/assignment/__init__.py +29 -0
- habitat_analysis-1.0.1/habit/domain/assignment/nearest_centroid.py +146 -0
- habitat_analysis-1.0.1/habit/domain/assignment/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/classification/__init__.py +83 -0
- habitat_analysis-1.0.1/habit/domain/classification/_base.py +114 -0
- habitat_analysis-1.0.1/habit/domain/classification/autogluon.py +180 -0
- habitat_analysis-1.0.1/habit/domain/classification/models.py +758 -0
- habitat_analysis-1.0.1/habit/domain/classification/registry.py +37 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/__init__.py +115 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/_base.py +103 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/metrics.py +440 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/registry.py +37 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/regression_metrics.py +128 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/regression_registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/statistics.py +317 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/survival_metrics.py +263 -0
- habitat_analysis-1.0.1/habit/domain/evaluation/survival_registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/feature_preprocessing/__init__.py +91 -0
- habitat_analysis-1.0.1/habit/domain/feature_preprocessing/chains.py +482 -0
- habitat_analysis-1.0.1/habit/domain/feature_preprocessing/methods.py +707 -0
- habitat_analysis-1.0.1/habit/domain/feature_preprocessing/registry.py +39 -0
- habitat_analysis-1.0.1/habit/domain/feature_selection/__init__.py +77 -0
- habitat_analysis-1.0.1/habit/domain/feature_selection/_base.py +139 -0
- habitat_analysis-1.0.1/habit/domain/feature_selection/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/feature_selection/selectors.py +1758 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/__init__.py +59 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/_base.py +66 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/_radiomics.py +232 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/each_habitat.py +166 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/ith.py +95 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/msi.py +94 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/non_radiomics.py +92 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/traditional.py +132 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/volume.py +83 -0
- habitat_analysis-1.0.1/habit/domain/habitat_features/whole_habitat.py +109 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/__init__.py +32 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/_base.py +153 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/_selection.py +154 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/gmm.py +286 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/kmeans.py +278 -0
- habitat_analysis-1.0.1/habit/domain/habitat_model/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/outcome_access.py +195 -0
- habitat_analysis-1.0.1/habit/domain/pipeline.py +768 -0
- habitat_analysis-1.0.1/habit/domain/protocols.py +420 -0
- habitat_analysis-1.0.1/habit/domain/regression/__init__.py +49 -0
- habitat_analysis-1.0.1/habit/domain/regression/_base.py +99 -0
- habitat_analysis-1.0.1/habit/domain/regression/models.py +276 -0
- habitat_analysis-1.0.1/habit/domain/regression/registry.py +37 -0
- habitat_analysis-1.0.1/habit/domain/split.py +169 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel/__init__.py +36 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel/_base.py +59 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel/feature_clustering.py +229 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel/slic.py +166 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel_features/__init__.py +39 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel_features/_base.py +190 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel_features/mean.py +97 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel_features/radiomics.py +339 -0
- habitat_analysis-1.0.1/habit/domain/supervoxel_features/registry.py +33 -0
- habitat_analysis-1.0.1/habit/domain/survival/__init__.py +37 -0
- habitat_analysis-1.0.1/habit/domain/survival/_base.py +136 -0
- habitat_analysis-1.0.1/habit/domain/survival/models.py +310 -0
- habitat_analysis-1.0.1/habit/domain/survival/registry.py +37 -0
- habitat_analysis-1.0.1/habit/domain/table_preprocessing/__init__.py +57 -0
- habitat_analysis-1.0.1/habit/domain/table_preprocessing/_base.py +126 -0
- habitat_analysis-1.0.1/habit/domain/table_preprocessing/methods.py +549 -0
- habitat_analysis-1.0.1/habit/domain/table_preprocessing/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/table_protocols.py +424 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/__init__.py +64 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/_base.py +188 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/concat.py +175 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/expression.py +456 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/kinetic.py +256 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/local_entropy.py +133 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/raw.py +101 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/registry.py +31 -0
- habitat_analysis-1.0.1/habit/domain/voxel_features/voxel_radiomics.py +285 -0
- habitat_analysis-1.0.1/habit/exceptions.py +133 -0
- habitat_analysis-1.0.1/habit/execution/__init__.py +35 -0
- habitat_analysis-1.0.1/habit/execution/backends.py +236 -0
- habitat_analysis-1.0.1/habit/execution/checkpoint.py +213 -0
- habitat_analysis-1.0.1/habit/execution/process_pool.py +921 -0
- habitat_analysis-1.0.1/habit/image/__init__.py +48 -0
- habitat_analysis-1.0.1/habit/kernels/__init__.py +80 -0
- habitat_analysis-1.0.1/habit/kernels/cluster_selection.py +294 -0
- habitat_analysis-1.0.1/habit/kernels/cluster_validation_metadata.py +236 -0
- habitat_analysis-1.0.1/habit/kernels/feature_transforms.py +590 -0
- habitat_analysis-1.0.1/habit/kernels/habitat_metrics.py +269 -0
- habitat_analysis-1.0.1/habit/kernels/icc.py +111 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/__init__.py +84 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/__init__.py +252 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/_fallback.py +370 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/src/_sv_cmatrices.c +528 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/src/sv_cmatrices.c +904 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/src/sv_cmatrices.h +88 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/cext/torch_batch.py +563 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/settings.py +47 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/supervoxel_batch.py +1390 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsBase.py +72 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsFirstOrder.py +439 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsGLCM.py +695 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsGLDM.py +410 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsGLRLM.py +413 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsGLSZM.py +425 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/TorchRadiomicsNGTDM.py +219 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/torchradiomics/__init__.py +62 -0
- habitat_analysis-1.0.1/habit/kernels/radiomics/voxel_maps.py +283 -0
- habitat_analysis-1.0.1/habit/kernels/statistics.py +329 -0
- habitat_analysis-1.0.1/habit/kernels/voxel_texture.py +99 -0
- habitat_analysis-1.0.1/habit/plugins/__init__.py +33 -0
- habitat_analysis-1.0.1/habit/py.typed +1 -0
- habitat_analysis-1.0.1/habit/radiomics/__init__.py +29 -0
- habitat_analysis-1.0.1/habit/recipes/__init__.py +91 -0
- habitat_analysis-1.0.1/habit/recipes/auxiliary.py +260 -0
- habitat_analysis-1.0.1/habit/recipes/comparison.py +88 -0
- habitat_analysis-1.0.1/habit/recipes/features.py +87 -0
- habitat_analysis-1.0.1/habit/recipes/habitat.py +761 -0
- habitat_analysis-1.0.1/habit/recipes/icc.py +51 -0
- habitat_analysis-1.0.1/habit/recipes/modeling.py +660 -0
- habitat_analysis-1.0.1/habit/recipes/preprocess.py +119 -0
- habitat_analysis-1.0.1/habit/recipes/result.py +342 -0
- habitat_analysis-1.0.1/habit/recipes/sort_dicom.py +52 -0
- habitat_analysis-1.0.1/habit/recipes/study.py +380 -0
- habitat_analysis-1.0.1/habit/recipes/test_retest.py +55 -0
- habitat_analysis-1.0.1/habit/recipes/yaml_runner.py +1205 -0
- habitat_analysis-1.0.1/habit/registry/__init__.py +21 -0
- habitat_analysis-1.0.1/habit/registry/base.py +323 -0
- habitat_analysis-1.0.1/habit/registry/core.py +174 -0
- habitat_analysis-1.0.1/habit/resources/__init__.py +21 -0
- habitat_analysis-1.0.1/habit/resources/radiomics/__init__.py +28 -0
- habitat_analysis-1.0.1/habit/resources/radiomics/parameter.yaml +73 -0
- habitat_analysis-1.0.1/habit/resources/radiomics/parameter_habitat.yaml +72 -0
- habitat_analysis-1.0.1/habit/resources/radiomics/params_supervoxel_radiomics.yaml +69 -0
- habitat_analysis-1.0.1/habit/resources/radiomics/params_voxel_radiomics.yaml +74 -0
- habitat_analysis-1.0.1/habit/schemas/__init__.py +51 -0
- habitat_analysis-1.0.1/habit/schemas/base.py +220 -0
- habitat_analysis-1.0.1/habit/schemas/field_reflect.py +361 -0
- habitat_analysis-1.0.1/habit/schemas/reflect.py +81 -0
- habitat_analysis-1.0.1/habit/schemas/registry.py +120 -0
- habitat_analysis-1.0.1/habit/schemas/steps/__init__.py +25 -0
- habitat_analysis-1.0.1/habit/schemas/steps/feature_selection.py +176 -0
- habitat_analysis-1.0.1/habit/schemas/steps/ml_models.py +268 -0
- habitat_analysis-1.0.1/habit/schemas/steps/preprocessing.py +414 -0
- habitat_analysis-1.0.1/habit/schemas/validation.py +97 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/__init__.py +43 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/dicom_sort.py +141 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/habitat.py +740 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/icc.py +187 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/ml.py +543 -0
- habitat_analysis-1.0.1/habit/schemas/workflows/preprocessing.py +149 -0
- habitat_analysis-1.0.1/habit/spec/__init__.py +57 -0
- habitat_analysis-1.0.1/habit/spec/legacy.py +1954 -0
- habitat_analysis-1.0.1/habit/spec/policy.py +208 -0
- habitat_analysis-1.0.1/habit/spec/specs.py +684 -0
- habitat_analysis-1.0.1/habit/spec/yaml_io.py +114 -0
- habitat_analysis-1.0.1/habit/utils/__init__.py +55 -0
- habitat_analysis-1.0.1/habit/utils/browser_utils.py +470 -0
- habitat_analysis-1.0.1/habit/utils/config_loader.py +597 -0
- habitat_analysis-1.0.1/habit/utils/deprecation.py +135 -0
- habitat_analysis-1.0.1/habit/utils/dice_calculator.py +165 -0
- habitat_analysis-1.0.1/habit/utils/dicom_preprocess_path_utils.py +115 -0
- habitat_analysis-1.0.1/habit/utils/dicom_utils.py +898 -0
- habitat_analysis-1.0.1/habit/utils/docker_path_utils.py +374 -0
- habitat_analysis-1.0.1/habit/utils/estimator_utils.py +420 -0
- habitat_analysis-1.0.1/habit/utils/feature_selection_utils.py +92 -0
- habitat_analysis-1.0.1/habit/utils/file_system_utils.py +215 -0
- habitat_analysis-1.0.1/habit/utils/font_config.py +226 -0
- habitat_analysis-1.0.1/habit/utils/gradio_patches.py +122 -0
- habitat_analysis-1.0.1/habit/utils/gui_paths.py +80 -0
- habitat_analysis-1.0.1/habit/utils/habitat_postprocess_utils.py +279 -0
- habitat_analysis-1.0.1/habit/utils/habitats_results_io.py +205 -0
- habitat_analysis-1.0.1/habit/utils/image_converter.py +149 -0
- habitat_analysis-1.0.1/habit/utils/import_utils.py +275 -0
- habitat_analysis-1.0.1/habit/utils/io_utils.py +386 -0
- habitat_analysis-1.0.1/habit/utils/isolated_runner.py +767 -0
- habitat_analysis-1.0.1/habit/utils/job_cancel.py +144 -0
- habitat_analysis-1.0.1/habit/utils/lazy_exports.py +57 -0
- habitat_analysis-1.0.1/habit/utils/log_utils.py +466 -0
- habitat_analysis-1.0.1/habit/utils/logging_usage_examples.py +295 -0
- habitat_analysis-1.0.1/habit/utils/optional_deps.py +100 -0
- habitat_analysis-1.0.1/habit/utils/parallel_gpu_utils.py +195 -0
- habitat_analysis-1.0.1/habit/utils/parallel_utils.py +528 -0
- habitat_analysis-1.0.1/habit/utils/persistent_worker_entry.py +166 -0
- habitat_analysis-1.0.1/habit/utils/persistent_worker_protocol.py +69 -0
- habitat_analysis-1.0.1/habit/utils/persistent_worker_runner.py +751 -0
- habitat_analysis-1.0.1/habit/utils/progress_utils.py +81 -0
- habitat_analysis-1.0.1/habit/utils/project_urls.py +33 -0
- habitat_analysis-1.0.1/habit/utils/radiomics_params_utils.py +310 -0
- habitat_analysis-1.0.1/habit/utils/radiomics_preset_utils.py +174 -0
- habitat_analysis-1.0.1/habit/utils/random_utils.py +118 -0
- habitat_analysis-1.0.1/habit/utils/sitk_geometry_diagnostics.py +106 -0
- habitat_analysis-1.0.1/habit/utils/subprocess_utils.py +137 -0
- habitat_analysis-1.0.1/habit/utils/torch_radiomics_utils.py +535 -0
- habitat_analysis-1.0.1/habit/utils/visualization.py +598 -0
- habitat_analysis-1.0.1/habit/utils/visualization_utils.py +198 -0
- habitat_analysis-1.0.1/habit/utils/yaml_utils.py +91 -0
- habitat_analysis-1.0.1/habit/viz/__init__.py +91 -0
- habitat_analysis-1.0.1/habit/viz/habitat_clustering.py +524 -0
- habitat_analysis-1.0.1/habit/viz/km_survival_plotter.py +452 -0
- habitat_analysis-1.0.1/habit/viz/labels.py +83 -0
- habitat_analysis-1.0.1/habit/viz/regression.py +307 -0
- habitat_analysis-1.0.1/habit/viz/style.py +255 -0
- habitat_analysis-1.0.1/habit/viz/survival.py +560 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/PKG-INFO +147 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/SOURCES.txt +485 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/dependency_links.txt +1 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/entry_points.txt +2 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/requires.txt +65 -0
- habitat_analysis-1.0.1/habitat_analysis.egg-info/top_level.txt +1 -0
- habitat_analysis-1.0.1/pyproject.toml +181 -0
- habitat_analysis-1.0.1/setup.cfg +4 -0
- habitat_analysis-1.0.1/setup.py +190 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: >-
|
|
3
|
+
If you use HABIT in scientific work, please cite it using the metadata below.
|
|
4
|
+
title: "HABIT: Habitat Analysis - Biomedical Imaging Toolkit"
|
|
5
|
+
abstract: >-
|
|
6
|
+
HABIT is an open-source toolkit for tumour habitat analysis and intratumoral
|
|
7
|
+
heterogeneity quantification. It covers image preprocessing, voxel-level
|
|
8
|
+
feature construction, supervoxel and population-level habitat clustering,
|
|
9
|
+
habitat-level feature extraction (including multiregional spatial interaction
|
|
10
|
+
and intratumoral heterogeneity scores), and downstream machine-learning
|
|
11
|
+
modelling and evaluation.
|
|
12
|
+
type: software
|
|
13
|
+
authors:
|
|
14
|
+
- family-names: Li
|
|
15
|
+
given-names: Chao
|
|
16
|
+
email: lichao19870617@163.com
|
|
17
|
+
- family-names: Dong
|
|
18
|
+
given-names: Mengshi
|
|
19
|
+
- name: HABIT Contributors
|
|
20
|
+
version: 0.1.0
|
|
21
|
+
license: Apache-2.0
|
|
22
|
+
repository-code: "https://github.com/lichao312214129/HABIT"
|
|
23
|
+
url: "https://lichao312214129.github.io/HABIT"
|
|
24
|
+
keywords:
|
|
25
|
+
- radiomics
|
|
26
|
+
- tumour habitat
|
|
27
|
+
- intratumoral heterogeneity
|
|
28
|
+
- medical imaging
|
|
29
|
+
- machine learning
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Apache-2.0 requires the license and the NOTICE attributions to travel with
|
|
2
|
+
# every redistribution, so they must be present in source distributions too.
|
|
3
|
+
include LICENSE
|
|
4
|
+
include NOTICE
|
|
5
|
+
include CITATION.cff
|
|
6
|
+
include README.md
|
|
7
|
+
include README_en.md
|
|
8
|
+
include pyproject.toml
|
|
9
|
+
include setup.py
|
|
10
|
+
|
|
11
|
+
# Include C sources for supervoxel texture matrix extension in sdists.
|
|
12
|
+
recursive-include habit/kernels/radiomics/cext/src *.c
|
|
13
|
+
recursive-include habit/kernels/radiomics/cext/src *.h
|
|
14
|
+
|
|
15
|
+
# Bundled PyRadiomics parameter presets (default params_file fallbacks).
|
|
16
|
+
recursive-include habit/resources/radiomics *.yaml
|
|
17
|
+
|
|
18
|
+
# PEP 561 marker for users of static type checkers.
|
|
19
|
+
include habit/py.typed
|
|
20
|
+
|
|
21
|
+
# Keep published sdists lean: never ship the developer test suite or local
|
|
22
|
+
# build / demo artefacts (they are not part of the installable package).
|
|
23
|
+
prune tests
|
|
24
|
+
prune demo_data
|
|
25
|
+
prune docs
|
|
26
|
+
prune developer
|
|
27
|
+
prune .github
|
|
28
|
+
prune build
|
|
29
|
+
prune dist
|
|
30
|
+
|
|
31
|
+
# Next-generation web GUI (API bridge, presets, built frontend).
|
|
32
|
+
recursive-include habit-gui/bridge *.py
|
|
33
|
+
recursive-include habit-gui/api *.py
|
|
34
|
+
recursive-include habit-gui/presets *.yaml
|
|
35
|
+
recursive-include habit-gui/web/dist *
|
|
36
|
+
prune habit-gui/web/node_modules
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
HABIT (Habitat Analysis: Biomedical Imaging Toolkit)
|
|
2
|
+
Copyright (c) 2024-2026 Li Chao, Dong Mengshi and HABIT Contributors.
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0. A copy of the
|
|
5
|
+
license is included in the LICENSE file at the root of this distribution.
|
|
6
|
+
|
|
7
|
+
If you redistribute HABIT or a derivative work, Apache-2.0 section 4(d)
|
|
8
|
+
requires that you also carry a readable copy of the attribution notices below.
|
|
9
|
+
|
|
10
|
+
When HABIT is used in scientific work, the authors additionally request -- but
|
|
11
|
+
do not require as a condition of this license -- that you cite the project. See
|
|
12
|
+
CITATION.cff for citation metadata.
|
|
13
|
+
|
|
14
|
+
---------------------------------------------------------------------------
|
|
15
|
+
Third-party components incorporated into HABIT
|
|
16
|
+
---------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
1. VMAF
|
|
19
|
+
https://github.com/Netflix/vmaf
|
|
20
|
+
Copyright (c) 2020 Netflix, Inc.
|
|
21
|
+
Licensed under BSD-2-Clause-Patent
|
|
22
|
+
|
|
23
|
+
The DeLong AUC comparison routines in
|
|
24
|
+
habit/core/machine_learning/statistics/delong_test.py are adapted from this
|
|
25
|
+
project.
|
|
26
|
+
|
|
27
|
+
2. PyTorchRadiomics
|
|
28
|
+
https://github.com/lyhyl/pytorchradiomics
|
|
29
|
+
Copyright (c) lyhyl and PyTorchRadiomics contributors
|
|
30
|
+
Licensed under the MIT License
|
|
31
|
+
|
|
32
|
+
The GPU feature classes in habit/kernels/radiomics/torchradiomics/ are
|
|
33
|
+
vendored from this project and adapted for HABIT.
|
|
34
|
+
|
|
35
|
+
---------------------------------------------------------------------------
|
|
36
|
+
Runtime dependencies
|
|
37
|
+
---------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
HABIT depends on third-party packages that are installed separately and remain
|
|
40
|
+
governed by their own licenses, including PyRadiomics, SimpleITK, ANTsPy,
|
|
41
|
+
scikit-learn, scikit-image, pandas, NumPy, SciPy, XGBoost, and pydicom. Those
|
|
42
|
+
licenses are not reproduced here; consult each package's own distribution.
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: habitat-analysis
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Habitat Analysis: Biomedical Imaging Toolkit (HABIT)
|
|
5
|
+
Author: lichao19870617@163.com
|
|
6
|
+
Author-email: Li Chao <lichao19870617@163.com>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Science/Research
|
|
10
|
+
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Python: >=3.10,<3.13
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
License-File: NOTICE
|
|
20
|
+
Requires-Dist: numpy<2,>=1.26
|
|
21
|
+
Requires-Dist: SimpleITK<3,>=2.2
|
|
22
|
+
Requires-Dist: matplotlib<4,>=3.8
|
|
23
|
+
Requires-Dist: scipy<2,>=1.11
|
|
24
|
+
Requires-Dist: openpyxl<4,>=3.1
|
|
25
|
+
Requires-Dist: pandas<3,>=2.1
|
|
26
|
+
Requires-Dist: tqdm<5,>=4.66
|
|
27
|
+
Requires-Dist: scikit-learn<2,>=1.4
|
|
28
|
+
Requires-Dist: joblib<2,>=1.3
|
|
29
|
+
Requires-Dist: scikit-image<0.27,>=0.23
|
|
30
|
+
Requires-Dist: seaborn<1,>=0.13
|
|
31
|
+
Requires-Dist: PyYAML<7,>=6.0
|
|
32
|
+
Requires-Dist: click<9,>=8.1
|
|
33
|
+
Requires-Dist: chardet<8,>=5.0
|
|
34
|
+
Requires-Dist: pydicom<4,>=3.0
|
|
35
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
36
|
+
Requires-Dist: kneed<1,>=0.8
|
|
37
|
+
Requires-Dist: pyarrow<22,>=15
|
|
38
|
+
Provides-Extra: radiomics
|
|
39
|
+
Requires-Dist: pyradiomics<3.1,>=3.0.1; extra == "radiomics"
|
|
40
|
+
Provides-Extra: gui
|
|
41
|
+
Requires-Dist: fastapi>=0.100; extra == "gui"
|
|
42
|
+
Requires-Dist: uvicorn[standard]>=0.22; extra == "gui"
|
|
43
|
+
Provides-Extra: ml
|
|
44
|
+
Requires-Dist: xgboost<4,>=2.1; extra == "ml"
|
|
45
|
+
Requires-Dist: imbalanced-learn<1,>=0.12; extra == "ml"
|
|
46
|
+
Requires-Dist: mrmr-selection<1,>=0.2.8; extra == "ml"
|
|
47
|
+
Requires-Dist: statsmodels<1,>=0.14; extra == "ml"
|
|
48
|
+
Provides-Extra: registration
|
|
49
|
+
Requires-Dist: antspyx<1,>=0.4.2; extra == "registration"
|
|
50
|
+
Provides-Extra: analysis
|
|
51
|
+
Requires-Dist: krippendorff<1,>=0.8; extra == "analysis"
|
|
52
|
+
Requires-Dist: shap<1,>=0.45; extra == "analysis"
|
|
53
|
+
Requires-Dist: plotly<7,>=5.20; extra == "analysis"
|
|
54
|
+
Requires-Dist: pingouin<1,>=0.5.4; extra == "analysis"
|
|
55
|
+
Requires-Dist: lifelines<1,>=0.28; extra == "analysis"
|
|
56
|
+
Requires-Dist: scikit-survival<1,>=0.23; extra == "analysis"
|
|
57
|
+
Provides-Extra: automl
|
|
58
|
+
Requires-Dist: autogluon.tabular[catboost,lightgbm]<2,>=1.2; extra == "automl"
|
|
59
|
+
Provides-Extra: all
|
|
60
|
+
Requires-Dist: pyradiomics<3.1,>=3.0.1; extra == "all"
|
|
61
|
+
Requires-Dist: xgboost<4,>=2.1; extra == "all"
|
|
62
|
+
Requires-Dist: imbalanced-learn<1,>=0.12; extra == "all"
|
|
63
|
+
Requires-Dist: mrmr-selection<1,>=0.2.8; extra == "all"
|
|
64
|
+
Requires-Dist: statsmodels<1,>=0.14; extra == "all"
|
|
65
|
+
Requires-Dist: antspyx<1,>=0.4.2; extra == "all"
|
|
66
|
+
Requires-Dist: krippendorff<1,>=0.8; extra == "all"
|
|
67
|
+
Requires-Dist: shap<1,>=0.45; extra == "all"
|
|
68
|
+
Requires-Dist: plotly<7,>=5.20; extra == "all"
|
|
69
|
+
Requires-Dist: pingouin<1,>=0.5.4; extra == "all"
|
|
70
|
+
Requires-Dist: lifelines<1,>=0.28; extra == "all"
|
|
71
|
+
Requires-Dist: scikit-survival<1,>=0.23; extra == "all"
|
|
72
|
+
Requires-Dist: autogluon.tabular[catboost,lightgbm]<2,>=1.2; extra == "all"
|
|
73
|
+
Requires-Dist: fastapi>=0.100; extra == "all"
|
|
74
|
+
Requires-Dist: uvicorn[standard]>=0.22; extra == "all"
|
|
75
|
+
Provides-Extra: torch
|
|
76
|
+
Requires-Dist: torch<3,>=2.4; extra == "torch"
|
|
77
|
+
Dynamic: author
|
|
78
|
+
Dynamic: license-file
|
|
79
|
+
Dynamic: requires-python
|
|
80
|
+
|
|
81
|
+
# Habitat Analysis: Biomedical Imaging Toolkit (HABIT)
|
|
82
|
+
|
|
83
|
+
**Tumor habitat analysis and intratumoral heterogeneity quantification** for clinical and radiomics research. Workflows are driven by YAML configs: preprocessing, habitat segmentation, feature extraction, and optional machine learning.
|
|
84
|
+
|
|
85
|
+
**Language / 语言**:[English](https://github.com/lichao312214129/HABIT/blob/main/README_en.md) | [简体中文](https://github.com/lichao312214129/HABIT/blob/main/README.md)
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Documentation
|
|
90
|
+
|
|
91
|
+
**Online docs**: [https://lichao312214129.github.io/HABIT](https://lichao312214129.github.io/HABIT)
|
|
92
|
+
|
|
93
|
+
Local build: `cd docs && make html` → `docs/build/html/index.html`
|
|
94
|
+
|
|
95
|
+
### Suggested learning path
|
|
96
|
+
|
|
97
|
+
| Step | Topic | Link |
|
|
98
|
+
|------|--------|------|
|
|
99
|
+
| 1 | Install HABIT | [Installation](https://lichao312214129.github.io/HABIT/tutorial/installation.html) |
|
|
100
|
+
| 2 | Demo workflow | [Quickstart](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html) |
|
|
101
|
+
| 3 | Web GUI (under development) | [Web GUI](https://lichao312214129.github.io/HABIT/gui/index.html) |
|
|
102
|
+
| 4 | Step-by-step how-to | [How-to index](https://lichao312214129.github.io/HABIT/how_to/index.html) |
|
|
103
|
+
| 5 | YAML parameters | [Configuration](https://lichao312214129.github.io/HABIT/configuration/index.html) |
|
|
104
|
+
|
|
105
|
+
### Workflow chapters
|
|
106
|
+
|
|
107
|
+
| Step | Link |
|
|
108
|
+
|------|------|
|
|
109
|
+
| Prepare data | [Prepare data](https://lichao312214129.github.io/HABIT/how_to/prepare_data.html) |
|
|
110
|
+
| Preprocessing | [Preprocess](https://lichao312214129.github.io/HABIT/how_to/preprocess.html) |
|
|
111
|
+
| Habitat segmentation | [Segment habitat](https://lichao312214129.github.io/HABIT/how_to/segment_habitat.html) |
|
|
112
|
+
| Feature extraction | [Extract features](https://lichao312214129.github.io/HABIT/how_to/extract_features.html) |
|
|
113
|
+
| Machine learning | [Train model](https://lichao312214129.github.io/HABIT/how_to/train_model.html) |
|
|
114
|
+
| Model comparison | [Compare models](https://lichao312214129.github.io/HABIT/how_to/compare_models.html) |
|
|
115
|
+
| FAQ | [FAQ](https://lichao312214129.github.io/HABIT/troubleshooting/faq.html) |
|
|
116
|
+
|
|
117
|
+
### Tools & more
|
|
118
|
+
|
|
119
|
+
| Topic | Link |
|
|
120
|
+
|--------|------|
|
|
121
|
+
| CLI overview | [CLI reference](https://lichao312214129.github.io/HABIT/reference/cli.html) |
|
|
122
|
+
| Contributing | [Contributing](https://lichao312214129.github.io/HABIT/development/contributing.html) |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Bundled config templates
|
|
127
|
+
|
|
128
|
+
After cloning or unpacking the repo, use the **`config/`** folder at the **project root** (sibling to the `habit/` Python package). See [`config/README_CONFIG.md`](https://github.com/lichao312214129/HABIT/blob/main/config/README_CONFIG.md) and [Configuration reference](https://lichao312214129.github.io/HABIT/configuration/index.html).
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Source & demo data
|
|
133
|
+
|
|
134
|
+
- **Windows lightweight one-click installer (recommended)**: [Installation](https://lichao312214129.github.io/HABIT/tutorial/installation.html)
|
|
135
|
+
- Extract to a short ASCII-only path, open `launchers/`, run `一键安装HABIT.bat`, then use `启动HABIT命令行.bat`
|
|
136
|
+
- The default environment contains imaging, habitat, and standard ML dependencies only; run `一键启用HABIT-AutoML.bat` or `一键启用HABIT-进阶分析.bat` from `launchers/` only when those features are needed
|
|
137
|
+
- Optional NVIDIA acceleration is installed separately with `launchers/一键启用HABIT-GPU.bat`, after the CPU environment passes verification
|
|
138
|
+
- **Source**: [GitHub](https://github.com/lichao312214129/HABIT)
|
|
139
|
+
- **Demo data**: [Quickstart](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html)
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Support & citation
|
|
144
|
+
|
|
145
|
+
- **Issues**: [GitHub Issues](https://github.com/lichao312214129/HABIT/issues)
|
|
146
|
+
- **Citation**: see [CITATION.cff](https://github.com/lichao312214129/HABIT/blob/main/CITATION.cff)
|
|
147
|
+
- **License**: [Apache License 2.0](https://github.com/lichao312214129/HABIT/blob/main/LICENSE). Free for academic and commercial use; the only obligation is to retain the copyright and license notices and to ship [NOTICE](https://github.com/lichao312214129/HABIT/blob/main/NOTICE) with redistributions. When HABIT supports scientific work, the authors request -- but do not require as a license condition -- that you cite it
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Habitat Analysis: Biomedical Imaging Toolkit (HABIT)
|
|
2
|
+
|
|
3
|
+
**肿瘤生境(Habitat)分析与瘤内异质性评估工具箱** — 面向临床与影像组学研究,通过 YAML 配置驱动预处理、生境分割、特征提取与机器学习。
|
|
4
|
+
|
|
5
|
+
**语言 / Language**:[简体中文](https://github.com/lichao312214129/HABIT/blob/main/README.md) | [English](https://github.com/lichao312214129/HABIT/blob/main/README_en.md)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 文档(主要内容请在此阅读)
|
|
10
|
+
|
|
11
|
+
**在线文档(推荐,英文)**:[https://lichao312214129.github.io/HABIT](https://lichao312214129.github.io/HABIT)
|
|
12
|
+
|
|
13
|
+
本地构建:进入 `docs/` 目录执行 `make html`,在 `docs/build/html/index.html` 打开。
|
|
14
|
+
|
|
15
|
+
### 推荐学习路径
|
|
16
|
+
|
|
17
|
+
| 顺序 | 说明 | 链接 |
|
|
18
|
+
|------|------|------|
|
|
19
|
+
| 1 | **安装** HABIT(Windows 推荐便携包) | [安装](https://lichao312214129.github.io/HABIT/tutorial/installation.html) |
|
|
20
|
+
| 2 | 跑通 Demo | [Demo 教程](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html) |
|
|
21
|
+
| 3 | 图形界面(开发中,暂不建议日常使用) | [Web GUI](https://lichao312214129.github.io/HABIT/gui/index.html) |
|
|
22
|
+
| 4 | 用自己的数据逐步操作 | [操作指南](https://lichao312214129.github.io/HABIT/how_to/index.html) |
|
|
23
|
+
| 5 | 修改 YAML 参数 | [配置参考](https://lichao312214129.github.io/HABIT/configuration/index.html) |
|
|
24
|
+
| 6 | 查特征公式(写论文) | [特征参考](https://lichao312214129.github.io/HABIT/reference/features/index.html) |
|
|
25
|
+
|
|
26
|
+
### 按流程查阅
|
|
27
|
+
|
|
28
|
+
| 步骤 | 文档 |
|
|
29
|
+
|------|------|
|
|
30
|
+
| 准备数据 | [准备数据](https://lichao312214129.github.io/HABIT/how_to/prepare_data.html) |
|
|
31
|
+
| 影像预处理 | [预处理](https://lichao312214129.github.io/HABIT/how_to/preprocess.html) |
|
|
32
|
+
| 生境分割 | [生境分割](https://lichao312214129.github.io/HABIT/how_to/segment_habitat.html) |
|
|
33
|
+
| 特征提取 | [特征提取](https://lichao312214129.github.io/HABIT/how_to/extract_features.html) |
|
|
34
|
+
| 机器学习 | [机器学习](https://lichao312214129.github.io/HABIT/how_to/train_model.html) |
|
|
35
|
+
| 模型对比 | [模型对比](https://lichao312214129.github.io/HABIT/how_to/compare_models.html) |
|
|
36
|
+
| 遇到问题 | [常见问题](https://lichao312214129.github.io/HABIT/troubleshooting/faq.html) |
|
|
37
|
+
|
|
38
|
+
### 其它
|
|
39
|
+
|
|
40
|
+
| 主题 | 文档 |
|
|
41
|
+
|------|------|
|
|
42
|
+
| 命令索引 | [命令参考](https://lichao312214129.github.io/HABIT/reference/cli.html) |
|
|
43
|
+
| 参与开发 | [贡献指南](https://lichao312214129.github.io/HABIT/development/contributing.html) |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 内置配置模板
|
|
48
|
+
|
|
49
|
+
获取源码后,在**项目根目录**(与 Python 包 `habit/` 同级,而非 `habit/` 包内部)提供 [`config/`](config/) 目录,内含预处理、生境分割、特征提取、机器学习等**可参考的示例 YAML**。建议先阅读 [`config/README_CONFIG.md`](config/README_CONFIG.md) 中的场景索引,再复制对应文件并按 `#%%====` 块修改路径;各字段含义见 [配置参考](https://lichao312214129.github.io/HABIT/configuration/index.html)。
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 源码与演示数据
|
|
54
|
+
|
|
55
|
+
- **pip 安装(开发者 / 嵌入其它环境)**:需要 Python **3.10–3.12**
|
|
56
|
+
```bash
|
|
57
|
+
pip install habitat-analysis
|
|
58
|
+
# 或从源码:
|
|
59
|
+
pip install .
|
|
60
|
+
habit --version
|
|
61
|
+
# 代码中仍然:import habit
|
|
62
|
+
```
|
|
63
|
+
PyRadiomics **不是**默认依赖。需要组学特征时(已本地验证的可靠写法):
|
|
64
|
+
```bash
|
|
65
|
+
conda install -c conda-forge pyradiomics
|
|
66
|
+
# 或 pip(务必钉死 3.0.1;不要裸装最新 3.1.0,源码包会失败):
|
|
67
|
+
pip install "pyradiomics==3.0.1"
|
|
68
|
+
```
|
|
69
|
+
其它可选能力:`pip install "habitat-analysis[ml,analysis,registration]"`。详见[安装指南](https://lichao312214129.github.io/HABIT/tutorial/installation.html)。
|
|
70
|
+
- **Windows 轻量一键安装(推荐)**:[安装指南](https://lichao312214129.github.io/HABIT/tutorial/installation.html)
|
|
71
|
+
- 解压轻量 ZIP 到纯英文、无空格的短路径(例如 `D:\HABIT`)
|
|
72
|
+
- 打开 `launchers/`,双击 `一键安装HABIT.bat`;安装器会在项目内创建锁定的 Python 3.10 环境,不要求预装 Python 或 Conda,也不会修改用户 PATH
|
|
73
|
+
- 安装完成后,在 `launchers/` 中双击 `启动HABIT命令行.bat`
|
|
74
|
+
- 默认环境只包含基础影像、habitat 与常规模型依赖;仅在确实使用对应功能时,在 `launchers/` 中运行 `一键启用HABIT-AutoML.bat` 或 `一键启用HABIT-进阶分析.bat`
|
|
75
|
+
- NVIDIA GPU 为可选增强:先保证 CPU 环境通过自检,再在 `launchers/` 中双击 `一键启用HABIT-GPU.bat`;失败时基础 CPU 环境仍可用
|
|
76
|
+
- 轻量 ZIP 已包含 `config/`;跑 Demo 时仅需从网盘下载 [`demo_data.rar`](https://pan.baidu.com/s/1K1m8U47wUWV9CCUNahNZuw?pwd=9ws9)(提取码 **9ws9**)— 见 [Demo 教程](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html)
|
|
77
|
+
- **源码**:[GitHub 仓库](https://github.com/lichao312214129/HABIT) · [下载 ZIP](https://github.com/lichao312214129/HABIT/archive/refs/heads/main.zip)(安装见 [安装指南](https://lichao312214129.github.io/HABIT/tutorial/installation.html))
|
|
78
|
+
- **演示数据 / 测试**:[`demo_data.rar`](https://pan.baidu.com/s/1K1m8U47wUWV9CCUNahNZuw?pwd=9ws9)(**9ws9**);可选 [`tests.zip` 打包目录](https://pan.baidu.com/s/1EAcC2s4qIKGp1h08UtbApA?pwd=vv2c)(**vv2c**)。`config/` 已内置于源码和轻量 ZIP — 见 [Demo 教程](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 支持与引用
|
|
83
|
+
|
|
84
|
+
- **问题反馈**:[GitHub Issues](https://github.com/lichao312214129/HABIT/issues) · [lichao19870617@163.com](mailto:lichao19870617@163.com)
|
|
85
|
+
- **引用**:见 [CITATION.cff](CITATION.cff) 与文档 [致谢](https://lichao312214129.github.io/HABIT/acknowledgments.html)
|
|
86
|
+
- **许可**:[Apache License 2.0](LICENSE)。可自由用于学术与商业用途,唯一义务是保留版权与许可声明,并在再分发时附带 [NOTICE](NOTICE)。用于科研工作时,作者恳请(但不作为许可条件)引用 HABIT
|
|
87
|
+
|
|
88
|
+
**开发团队**:HABIT 开发团队(详见 [致谢](https://lichao312214129.github.io/HABIT/acknowledgments.html))
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Habitat Analysis: Biomedical Imaging Toolkit (HABIT)
|
|
2
|
+
|
|
3
|
+
**Tumor habitat analysis and intratumoral heterogeneity quantification** for clinical and radiomics research. Workflows are driven by YAML configs: preprocessing, habitat segmentation, feature extraction, and optional machine learning.
|
|
4
|
+
|
|
5
|
+
**Language / 语言**:[English](https://github.com/lichao312214129/HABIT/blob/main/README_en.md) | [简体中文](https://github.com/lichao312214129/HABIT/blob/main/README.md)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
**Online docs**: [https://lichao312214129.github.io/HABIT](https://lichao312214129.github.io/HABIT)
|
|
12
|
+
|
|
13
|
+
Local build: `cd docs && make html` → `docs/build/html/index.html`
|
|
14
|
+
|
|
15
|
+
### Suggested learning path
|
|
16
|
+
|
|
17
|
+
| Step | Topic | Link |
|
|
18
|
+
|------|--------|------|
|
|
19
|
+
| 1 | Install HABIT | [Installation](https://lichao312214129.github.io/HABIT/tutorial/installation.html) |
|
|
20
|
+
| 2 | Demo workflow | [Quickstart](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html) |
|
|
21
|
+
| 3 | Web GUI (under development) | [Web GUI](https://lichao312214129.github.io/HABIT/gui/index.html) |
|
|
22
|
+
| 4 | Step-by-step how-to | [How-to index](https://lichao312214129.github.io/HABIT/how_to/index.html) |
|
|
23
|
+
| 5 | YAML parameters | [Configuration](https://lichao312214129.github.io/HABIT/configuration/index.html) |
|
|
24
|
+
|
|
25
|
+
### Workflow chapters
|
|
26
|
+
|
|
27
|
+
| Step | Link |
|
|
28
|
+
|------|------|
|
|
29
|
+
| Prepare data | [Prepare data](https://lichao312214129.github.io/HABIT/how_to/prepare_data.html) |
|
|
30
|
+
| Preprocessing | [Preprocess](https://lichao312214129.github.io/HABIT/how_to/preprocess.html) |
|
|
31
|
+
| Habitat segmentation | [Segment habitat](https://lichao312214129.github.io/HABIT/how_to/segment_habitat.html) |
|
|
32
|
+
| Feature extraction | [Extract features](https://lichao312214129.github.io/HABIT/how_to/extract_features.html) |
|
|
33
|
+
| Machine learning | [Train model](https://lichao312214129.github.io/HABIT/how_to/train_model.html) |
|
|
34
|
+
| Model comparison | [Compare models](https://lichao312214129.github.io/HABIT/how_to/compare_models.html) |
|
|
35
|
+
| FAQ | [FAQ](https://lichao312214129.github.io/HABIT/troubleshooting/faq.html) |
|
|
36
|
+
|
|
37
|
+
### Tools & more
|
|
38
|
+
|
|
39
|
+
| Topic | Link |
|
|
40
|
+
|--------|------|
|
|
41
|
+
| CLI overview | [CLI reference](https://lichao312214129.github.io/HABIT/reference/cli.html) |
|
|
42
|
+
| Contributing | [Contributing](https://lichao312214129.github.io/HABIT/development/contributing.html) |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Bundled config templates
|
|
47
|
+
|
|
48
|
+
After cloning or unpacking the repo, use the **`config/`** folder at the **project root** (sibling to the `habit/` Python package). See [`config/README_CONFIG.md`](https://github.com/lichao312214129/HABIT/blob/main/config/README_CONFIG.md) and [Configuration reference](https://lichao312214129.github.io/HABIT/configuration/index.html).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Source & demo data
|
|
53
|
+
|
|
54
|
+
- **Windows lightweight one-click installer (recommended)**: [Installation](https://lichao312214129.github.io/HABIT/tutorial/installation.html)
|
|
55
|
+
- Extract to a short ASCII-only path, open `launchers/`, run `一键安装HABIT.bat`, then use `启动HABIT命令行.bat`
|
|
56
|
+
- The default environment contains imaging, habitat, and standard ML dependencies only; run `一键启用HABIT-AutoML.bat` or `一键启用HABIT-进阶分析.bat` from `launchers/` only when those features are needed
|
|
57
|
+
- Optional NVIDIA acceleration is installed separately with `launchers/一键启用HABIT-GPU.bat`, after the CPU environment passes verification
|
|
58
|
+
- **Source**: [GitHub](https://github.com/lichao312214129/HABIT)
|
|
59
|
+
- **Demo data**: [Quickstart](https://lichao312214129.github.io/HABIT/tutorial/quickstart.html)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Support & citation
|
|
64
|
+
|
|
65
|
+
- **Issues**: [GitHub Issues](https://github.com/lichao312214129/HABIT/issues)
|
|
66
|
+
- **Citation**: see [CITATION.cff](https://github.com/lichao312214129/HABIT/blob/main/CITATION.cff)
|
|
67
|
+
- **License**: [Apache License 2.0](https://github.com/lichao312214129/HABIT/blob/main/LICENSE). Free for academic and commercial use; the only obligation is to retain the copyright and license notices and to ship [NOTICE](https://github.com/lichao312214129/HABIT/blob/main/NOTICE) with redistributions. When HABIT supports scientific work, the authors request -- but do not require as a license condition -- that you cite it
|