WSSmod 0.1.0
First release.
Module scores
-
calculate_WSS()computes Weighted Sum Score module-level summaries from proteomic data, using STRING network connectivity and biomarker-association weighting to align and aggregate protein-level signal into module scores. Supportsdedup_byandmin_module_sizeoptions for controlling how genes assigned to multiple modules are deduplicated and how small modules are filtered. -
load_prebuilt_wss(),list_prebuilt_wss(), andload_prebuilt_terms()provide access to a bundled reference module/weighting table ("core_AD_plasma_biomarkers") and its module term labels. -
calculate_WSS()accepts a data frame asresult(converted to a data.table) and rejects other classes with an informative error. -
calculate_WSS()stops with a clear error that names the affected proteins when a protein used by a module has a missing value. This also covers the case where every module has one, which previously returnedNAscores without any message. - The documentation now states that a module with none of its proteins in the matrix is reported with all-
NAscores and amodule_sdof 0.
Prediction from core biomarkers
-
predict_WSS()predicts all 75 module scores for the"core_AD_plasma_biomarkers"reference set from Age, Gender, and 8 core plasma biomarkers, using a bundledjoinettwo-layer elastic net model, without requiring the full proteomic panel. -
normalize_wss_biomarkers()builds the rank-normalized biomarker inputspredict_WSS()requires from raw biomarker values, via eithermethod = "project"(projecting onto a bundled, anonymized baseline reference distribution, usingproject_rank_norm()– supports a single new patient) ormethod = "self"(rank-normalizing within your own cohort). -
project_rank_norm()andload_prebuilt_biomarker_reference()expose the underlying projection utility and reference distribution directly.
Documentation
- Added a citation (
citation("WSSmod")) and links to the accompanying preprint. - New vignette, “Calculating Weighted Sum Scores”, covering input normalization, the bundled and custom module tables, and scoring new samples against a reference cohort.
- New vignette, “Predicting Weighted Sum Scores from plasma biomarkers”, covering the biomarker inputs, the two normalization methods, and reading the predicted module scores.
- New vignette, “Exploring the bundled datasets”, describing each bundled file, its loader and what it can be used for.
- A package-level help page (
?WSSmod) gives an overview of the functions and bundled data. -
calculate_WSS()now documents what input scale it expects.
Example data
-
wss_example_expressionandwss_example_biomarkersare small, fully simulated datasets (no participant data) for trying outcalculate_WSS(),normalize_wss_biomarkers()andpredict_WSS().
The bundled model and reference data were verified end-to-end against the original analysis’s held-out follow-up cohort, reproducing published predictions to floating-point precision.
