MyNixOS website logo
Description

Plant Stress Response Index Calculator - Softmax Method.

Implements the softmax aggregation method for calculating Plant Stress Response Index (PSRI) from time-series germination data under environmental stressors including prions, xenobiotics, osmotic stress, heavy metals, and chemical contaminants. Provides zero-robust PSRI computation through adaptive softmax weighting of germination components (Maximum Stress-adjusted Germination, Maximum Rate of Germination, complementary Mean Time to Germination, and Radicle Vigor Score), eliminating the zero-collapse failure mode of the geometric mean approach implemented in 'PSRICalc'. Includes perplexity-based temperature parameter calibration and modular component functions for transparent germination analysis. Built on the methodological foundation of the Osmotic Stress Response Index (OSRI) framework developed by Walne et al. (2020) <doi:10.1002/agg2.20087>. Note: This package implements methodology currently under peer review. Please contact the author before publication using this approach. Development followed an iterative human-machine collaboration where all algorithmic design, statistical methodologies, and biological validation logic were conceptualized, tested, and iteratively refined by Richard A. Feiss through repeated cycles of running experimental data, evaluating analytical outputs, and selecting among candidate algorithms and approaches. AI systems (Anthropic Claude and OpenAI GPT) served as coding assistants and analytical sounding boards under continuous human direction. The selection of statistical methods, evaluation of biological plausibility, and all final methodology decisions were made by the human author. AI systems did not independently originate algorithms, statistical approaches, or scientific methodologies.

PSRICalcSM: Plant Stress Response Index Calculator - Softmax Method

CRAN status Downloads

PSRICalcSM implements the softmax aggregation method for calculating Plant Stress Response Index (PSRI) from time-series germination data. Built on the methodological foundation of the Osmotic Stress Response Index (OSRI) framework developed by Walne et al. (2020), it is the companion package to PSRICalc (geometric mean method), providing a zero-robust alternative that eliminates the zero-collapse failure mode.

Why Softmax?

The geometric PSRI collapses to zero when any component equals zero:

PSRI_GM = (MSG × MRG × (1-MTG))^(1/3) × RVF
# If MRG = 0 → PSRI_GM = 0 (complete data loss)

The softmax PSRI handles zeros through adaptive reweighting:

PSRI_SM = Σ Wᵢ · Cᵢ
# If MRG = 0 → W_MRG ≈ 0, other weights renormalize
# Information from MSG and cMTG is preserved

In our prion-germination experiments: geometric PSRI lost 72% of barley replicates to zero-collapse; softmax PSRI retained 100%.

Installation

# From CRAN (when available)
install.packages("PSRICalcSM")

# Development version
# devtools::install_github("RFeissIV/PSRICalcSM")

Quick Start

library(PSRICalcSM)

# Basic PSRI_SM (3 components: MSG, MRG, cMTG)
compute_psri_sm(
  germination_counts = c(5, 15, 20),
  timepoints = c(3, 5, 7),
  total_seeds = 25
)

# With radicle vigor (4 components: MSG, MRG, cMTG, RVS)
compute_psri_sm(
  germination_counts = c(5, 15, 20),
  timepoints = c(3, 5, 7),
  total_seeds = 25,
  radicle_count = 18
)

# Detailed output with components and weights
result <- compute_psri_sm(
  germination_counts = c(5, 15, 20),
  timepoints = c(3, 5, 7),
  total_seeds = 25,
  radicle_count = 18,
  return_components = TRUE
)
result$psri_sm
result$components
result$weights

Temperature Calibration

The temperature parameter T controls how sharply the softmax concentrates weight on dominant components. The default T = 0.13 was calibrated via perplexity targeting (effective components ≈ 2.0 out of 3). For your own data:

# Gather representative component profiles from your experiment
profiles <- list(
  control = c(MSG = 0.80, MRG = 0.90, cMTG = 0.60),
  treated = c(MSG = 0.20, MRG = 0.15, cMTG = 0.50)
)

cal <- calibrate_temperature(profiles, target_perplexity = 2.0)
cal$optimal_T

# Use calibrated T
compute_psri_sm(
  germination_counts = c(5, 15, 20),
  timepoints = c(3, 5, 7),
  total_seeds = 25,
  temperature = cal$optimal_T
)

Method Selection Guide

CriterionGeometric (PSRICalc)Softmax (PSRICalcSM)
Zero componentsCollapses to 0Graceful degradation
Sample size>25 seeds × 4 repsAny size
Treatment effectsSignificant expectedAny
Data retentionMay lose replicates100% retention
Radicle integrationDiscrete (1.0/1.05/1.10)Continuous (0–1)

Components

ComponentDescriptionRange
MSGMaximum Stress-adjusted Germination[0, 1]
MRGMaximum Rate of Germination[0, ~3]
cMTGComplementary Mean Time to Germination[0, 1]
RVSRadicle Vigor Score (optional)[0, 1]

Citation

If you use this package, please cite:

Feiss, R.A. (2026). PSRICalcSM: Plant Stress Response Index Calculator
- Softmax Method. R package version 1.0.0.
https://CRAN.R-project.org/package=PSRICalcSM

Scientific Attribution

PSRICalcSM builds directly on the Osmotic Stress Response Index (OSRI) methodology established by:

Walne, C.H., Gaudin, A., Henry, W.B., and Reddy, K.R. (2020). In vitro seed germination response of corn hybrids to osmotic stress conditions. Agrosystems, Geosciences & Environment, 3(1), e20087. https://doi.org/10.1002/agg2.20087

References

  • Walne, C.H., Gaudin, A., Henry, W.B., & Reddy, K.R. (2020). In vitro seed germination response of corn hybrids to osmotic stress conditions. Agrosystems, Geosciences & Environment, 3(1), e20087. https://doi.org/10.1002/agg2.20087
  • Feiss, R.A. (2025). PSRICalc: Plant Stress Response Index Calculator. https://CRAN.R-project.org/package=PSRICalc

Human-AI Development Transparency

Development followed an iterative human-machine collaboration. All algorithmic design, statistical methodologies, and biological validation logic were conceptualized, tested, and iteratively refined by Richard A. Feiss through repeated cycles of running experimental data, evaluating analytical outputs, and selecting among candidate algorithms and approaches.

AI systems (Anthropic Claude and OpenAI GPT) served as coding assistants and analytical sounding boards under continuous human direction, helping with:

  • Code implementation and syntax validation
  • Exploratory analysis of candidate approaches
  • Documentation consistency and clarity
  • Package compliance checking

The selection of statistical methods, evaluation of biological plausibility, and all final methodology decisions were made by the human author. AI systems did not independently originate algorithms, statistical approaches, or scientific methodologies.

Author

Richard A. Feiss IV, Ph.D. Minnesota Center for Prion Research and Outreach (MNPRO) University of Minnesota

License

MIT © University of Minnesota.

Metadata

Version

1.0.0

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows