Skip to main content
drawing

cimcb lite

cimcb_lite is a lite version of the cimcb package containing a small number of basic tools for the statistical analysis of untargeted and targeted metabolomics data.

Installation

Dependencies

cimcb_lite requires:

  • Python (>=3.5)
  • Bokeh (>=1.0.0)
  • NumPy
  • SciPy
  • scikit-learn
  • Statsmodels
  • tqdm

User installation

The recommend way to install cimcb_lite and dependencies is to using conda:

conda install -c cimcb cimcb_lite

or pip:

pip install cimcb_lite

Alternatively, to install directly from github:

pip install https://github.com/cimcb/cimcb_lite/archive/master.zip

API

For futher detail on the usage refer to the docstring.

cimcb_lite.model

  • PLS_SIMPLS: Partial least-squares regression using the SIMPLS algorithm.
    • train: Fit the PLS model, save additional stats (as attributes) and return Y predicted values.
    • test: Calculate and return Y predicted value.
    • evaluate: Plots a figure containing a Violin plot, Distribution plot, ROC plot and Binary Metrics statistics.
    • calc_bootci: Calculates bootstrap confidence intervals based on bootlist.
    • plot_featureimportance: Plots feature importance metrics.
    • plot_permutation_test: Plots permutation test figures.

cimcb_lite.plot

  • boxplot: Creates a boxplot using Bokeh.
  • distribution: Creates a distribution plot using Bokeh.
  • pca: Creates a PCA scores and loadings plot using Bokeh.
  • permutation_test: Creates permutation test plots using Bokeh.
  • roc_plot: Creates a rocplot using Bokeh.
  • scatter: Creates a scatterplot using Bokeh.
  • scatterCI: Creates a scatterCI plot using Bokeh.

cimcb_lite.cross_val

  • kfold: Exhaustitive search over param_dict calculating binary metrics.

cimcb_lite.bootstrap

  • Perc: Returns bootstrap confidence intervals using the percentile boostrap interval.
  • BC: Returns bootstrap confidence intervals using the bias-corrected boostrap interval.
  • BCA: Returns bootstrap confidence intervals using the bias-corrected and accelerated boostrap interval.

cimcb_lite.utils

  • binary_metrics: Return a dict of binary stats with the following metrics: R2, auc, accuracy, precision, sensitivity, specificity, and F1 score.
  • ci95_ellipse: Construct a 95% confidence ellipse using PCA.
  • knnimpute: kNN missing value imputation using Euclidean distance.
  • load_dataXL: Loads and validates the DataFile and PeakFile from an excel file.
  • nested_getattr: getattr for nested attributes.
  • scale: Scales x (which can include nans) with method: 'auto', 'pareto', 'vast', or 'level'.
  • table_check: Error checking for DataTable and PeakTable (used in load_dataXL).
  • univariate_2class: Creates a table of univariate statistics (2 class).
  • wmean: Returns Weighted Mean. Ignores NaNs and handles infinite weights.

License

cimcb_lite is licensed under the MIT license.

Authors

Correspondence

Professor David Broadhurst, Director of the Centre for Integrative Metabolomics & Computation Biology at Edith Cowan University.

Metadata

Release files for cimcb-lite 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cimcb-lite 1.0.2
File Size Uploaded
cimcb_lite-1.0.2.tar.gz 33.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cimcb-lite 1.0.2
File Interpreter ABI Platform
cimcb_lite-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 81.3 kB

Release files / cimcb_lite-1.0.2.tar.gz

Download URL cimcb_lite-1.0.2.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e571f113fbf3d9558330ed7928fd63b5ebe667574f2fb978c4da1e8b62c2a413
BLAKE2b-256 checksum
How to use checksums
ffaba02de043255d367e4e7cf18834d3df2aa8220204c910f25cc6a8d482770d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / cimcb_lite-1.0.2-py3-none-any.whl

Download URL cimcb_lite-1.0.2-py3-none-any.whl
Size 47.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73ffd86af8c32905d1fde2ea16925f514236ecfc0d527172b9af0da71638cad5
BLAKE2b-256 checksum
How to use checksums
ec8384f21b56b4f11f77ea9dc7787bc2cf2daf851e41329a3e8c6002ad33e2cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.22

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page