Add SCI-oriented sporotrichosis multinomial & ML analysis pipeline#2
Open
pifu-dabai wants to merge 1 commit intomainfrom
Open
Add SCI-oriented sporotrichosis multinomial & ML analysis pipeline#2pifu-dabai wants to merge 1 commit intomainfrom
pifu-dabai wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
analysis/sporotrichosis_analysis.py, which standardizesdiagnostic_typeandseason, excludes unknown onset sites, runsstatsmodels.MNLogitfor multivariable multinomial logistic regression, and exports OR/95%CI/p-values as CSV.PDF(vector, 600 dpi),PNG(transparent, 600 dpi), andTIFF(300 dpi) with black text suitable for medical journals viasave_figure_all_formats.CatBoostwhen available,RandomForest, and multinomialLogisticRegression) using stratified cross-validation and export model comparison metrics to CSV.analysis/README.mdwith usage examples, required input columns, and dependency instructions (pandas,numpy,matplotlib,seaborn,scikit-learn,statsmodels, optionalcatboost).Testing
python -m py_compile analysis/sporotrichosis_analysis.py, which completed successfully.analysis/sample.csvto exercise the pipeline and attempted to runpython analysis/sporotrichosis_analysis.py --input analysis/sample.csv --output-dir analysis/out --covariates age sex, but runtime execution failed due to missing plotting dependencymatplotlibin the environment.Codex Task