seminal

Getting Started

  • Getting Started
    • FSH alone
    • Full logistic model
    • Semen parameters against the WHO reference distribution
    • Score a cohort
    • Library overview
    • Table of Contents
  • seminal quickstart
    • One patient
    • The FSH curve
    • Scoring a cohort
    • Explaining a prediction
    • WHO 2021 semen reference
    • Where to go next

Documentation

  • Usage Guide
    • FSH alone: azoospermia_fsh
    • Full model: azoospermia_lr
      • Explaining a prediction
    • Cohorts: add_azoospermia_risk_cols
  • Input Requirements and Common Pitfalls
    • Inputs
    • Common pitfalls
  • The Models
    • Outcome
    • Development
    • FSH-only quadratic
    • Logistic regression
    • What the reproduction shows
    • Discrimination
    • What is not implemented
  • WHO 2021 Semen Reference Distributions
    • Where a value sits
    • Lower reference limits
    • Cohorts
    • The table
    • Things to know
  • The Data
    • Tradewell et al. 2022
    • Download and harmonize
    • Two exclusion rules
    • Things to know
  • Reproducing Tradewell et al. 2022
    • 1. Cohort reconstruction
    • 2. Table 1
    • 3. Refit on the Miami development cohort
    • 4. External validation in depth
    • 5. Recalibration per site
    • 6. Sensitivity analyses
    • Summary
  • Reproducing Campbell et al. 2021 (WHO 2021 reference distribution)
    • 1. The reference men
    • 2. Table 3: recompute the nine centiles
    • 3. Table 2: the 2010 to 2020 studies
    • 4. Uncertainty on the 5th centile
    • 5. Heterogeneity between studies
    • 6. How good is the interpolated percentile?
    • 7. Scoring a cohort with add_semen_percentile_cols
    • Summary
  • API Reference
    • Single patient
      • azoospermia_fsh()
      • azoospermia_lr()
    • Cohorts
      • add_azoospermia_risk_cols()
    • WHO 2021 semen reference distributions
      • semen_percentile()
      • lower_reference_limit()
      • below_reference()
      • semen_reference()
      • add_semen_percentile_cols()
    • Constants

About seminal

  • Contributors/Maintainers
  • Acknowledgements
  • Citing seminal
  • Changelog
    • Version 0.0.1a1 (2026-11-21)
    • Version 0.0.0a4 (2026-11-20)
    • Version 0.0.0a3 (2026-11-20)
    • Version 0.0.0a2 (2026-11-20)
    • Version 0.0.0a1 (2026-11-20)
  • References
seminal
  • Index

seminal Python library

Index

A | B | L | S

A

  • add_azoospermia_risk_cols() (in module seminal)
  • add_semen_percentile_cols() (in module seminal)
  • azoospermia_fsh() (in module seminal)
  • azoospermia_lr() (in module seminal)

B

  • below_reference() (in module seminal)

L

  • lower_reference_limit() (in module seminal)

S

  • semen_percentile() (in module seminal)
  • semen_reference() (in module seminal)

© Copyright 2026, Leon Shpaner.

Built with Sphinx using a theme provided by Read the Docs.