Skip to main content

lno-prescreener

A high-performance, multiple hypothesis testing tool for pre-screening factor selection in high-dimensional data using the Leave-n-Out (LnO) approach.

Designed for researchers working with metabolomic, genomic, or clinical datasets, this library provides a robust, multi-core pipeline to filter out false discoveries using adaptive univariate testing and combinatorial resampling.

FEATURES

  • Scientifically Rigorous: Implements an adaptive decision tree (Anderson-Darling, Levene, KS, Mann-Whitney, t-tests) perfectly aligned with established LnO methodology.
  • Highly Flexible: Works with any Pandas DataFrame. You can define your own target columns, cohort labels, and index parameters.
  • Multi-Core Processing: Utilizes joblib parallel processing to evaluate thousands of features simultaneously, cutting compute times from hours to seconds.
  • Missing Data Handling: Automatically purges incomplete features to maintain strict data integrity.
  • Defensive Design: Explicit input validation prevents obscure math crashes and provides clear, human-readable errors if your data is misconfigured.

THE DETAILS OF THE LNO PRESCREENING METHOD CAN BE FOUND IN THE PAPER: Halil Arici, Fatir A. Qureshi, Jay Mulmule, Juergen Hahn,

Multiple hypothesis testing for pre-screening of factor selection for classification of high-dimensional data,

Journal of Process Control, Volume 152, 2025, 103469, ISSN 0959-1524, https://doi.org/10.1016/j.jprocont.2025.103469.

(https://www.sciencedirect.com/science/article/pii/S0959152425000976)

PLEASE CITE THE ORIGINAL PAPER IF THIS PACKAGE IS USED FOR YOUR RESEARCH OR PAPER.

INSTALLATION

You can install lno-prescreener directly from PyPI: pip install lno-prescreener

QUICK START

Here is a concise example of how to load your data and run the pre-screener pipeline.

from lno_prescreener import LnOPrescreener

Initialize the pre-screener

screener = LnOPrescreener( data_input="sqrt_transformed_data.csv", target_variable="Diagnosis", case_label="ASD", control_label="TD", index_col=0 #(int or None) The column number to use as the row labels (default: 0). Set to None if your data does not have an ID column. )

Run the multiple hypothesis testing pipeline

results = screener.multiple_hypothesis_testing( run_l2o=False, run_l3o=True, fdr_threshold=0.1, p_val_threshold=0.05 )

Save the full comprehensive results to CSV

results.to_csv("prescreening_results.csv", index=False)

API REFERENCE

Initialization LnOPrescreener(data_input, target_variable='Diagnosis', case_label='ASD', control_label='TD', index_col=0)

  • data_input: (str or DataFrame) Path to your CSV file, or a pre-loaded Pandas DataFrame.
  • target_variable: (str) The exact name of the column containing your class labels.
  • case_label: (str) The exact string used to identify cases in the target column.
  • control_label: (str) The exact string used to identify controls in the target column.
  • index_col: (int or None) The column number to use as the row labels (default: 0). Set to None if your data does not have an ID column.

Execution screener.multiple_hypothesis_testing(run_l2o=False, run_l3o=False, p_val_threshold=0.05, fdr_threshold=0.10)

  • run_l2o: (bool) If True, runs the Leave-2-Out permutation tests. Note: Computationally expensive for large N.
  • run_l3o: (bool) If True, runs the Leave-3-Out permutation tests. Note: Highly computationally expensive for large N.
  • p_val_threshold: (float) The alpha threshold for the baseline and adaptive univariate tests (default: 0.05).
  • fdr_threshold: (float) The maximum allowable False Discovery Rate for a feature to be flagged as significant (default: 0.10).

OUTPUT DATAFRAME The multiple_hypothesis_testing method returns a rich Pandas DataFrame containing:

  • The original and shifted p-values.
  • The specific statistical test applied by the adaptive decision tree.
  • Bonferroni and Benjamini-Hochberg corrected p-values.
  • Raw FDR scores and boolean Significant flags for Baseline, L1O, L2O, and L3O.

Metadata

Release files for lno-prescreener 0.1.3

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

Source distribution (sdist)

Source distribution for lno-prescreener 0.1.3
File Size Uploaded Provenance Actions
lno_prescreener-0.1.3.tar.gz 6.2 kB Without provenance Details for lno_prescreener-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lno-prescreener 0.1.3
File Interpreter ABI Platform Actions
lno_prescreener-0.1.3-py3-none-any.whl Python 3 none any Details for lno_prescreener-0.1.3-py3-none-any.whl

Total release size: 13.0 kB

Release files / lno_prescreener-0.1.3.tar.gz

Download URL lno_prescreener-0.1.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
20869e7976611649f106218f9a59e2c091fd73738c7d967173e12893e8d01e3e
BLAKE2b-256 checksum
How to use checksums
da0d2e2b6040d04b7ec7daa1e6fd871a11d4ca4f49f8dec131b8cebc0c9d9462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / lno_prescreener-0.1.3-py3-none-any.whl

Download URL lno_prescreener-0.1.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f06d32b8a618b4d17c444a89a40b9d344e7e2f852a0ed1b58120268a428605da
BLAKE2b-256 checksum
How to use checksums
a5d7f22e43eb15c7710037824e143e0c937c8d09c2d323bc13676a5510f8d7c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for lno-prescreener 0.1.3

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.

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