Package: TRexSelector 2.0.3

Jasin Machkour

TRexSelector: T-Rex Selector: High-Dimensional Variable Selection and FDR Control

Variable selection for regression and classification in high-dimensional settings with control of the false discovery rate (FDR) at a user-specified target level. The implementations are primarily based on the T-Rex selector of Machkour, Muma and Palomar (2025) <doi:10.1016/j.sigpro.2025.109894> and its dependency-aware extension for correlated variables by Machkour, Muma and Palomar (2025) <doi:10.1016/j.sigpro.2025.109990>. Since version 2.0.0 the package comes as R bindings to the 'TRexSelector' C++ library, which replaces the pure-R implementation of the 1.x releases.

Authors:Jasin Machkour [aut, cre], Fabian Scheidt [aut], Simon Tien [ctb], Daniel P. Palomar [aut], Michael Muma [aut]

TRexSelector_2.0.3.tar.gz
TRexSelector_2.0.3.zip(r-4.7-x86_64)TRexSelector_2.0.3.zip(r-4.7-arm64)TRexSelector_2.0.3.zip(r-4.6-x86_64)TRexSelector_2.0.3.zip(r-4.6-arm64)
TRexSelector_2.0.3.tar.gz(r-4.7-arm64)TRexSelector_2.0.3.tar.gz(r-4.7-x86_64)TRexSelector_2.0.3.tar.gz(r-4.6-arm64)TRexSelector_2.0.3.tar.gz(r-4.6-x86_64)
TRexSelector_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
TRexSelector/json (API)

# Install 'TRexSelector' in R:
install.packages('TRexSelector', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/trexselector/trexselector/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • Gauss_data - Toy data generated from a Gaussian linear model

On CRAN:

Conda:

cppopenmp

4.32 score 827 downloads 65 exports 5 dependencies

Last updated from:80f6498da1. Checks:9 OK, 1 FAIL. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK468
linux-devel-x86_64OK467
source / vignettesOK966
linux-release-arm64OK453
linux-release-x86_64OK546
windows-devel-arm64OK630
windows-devel-x86_64OK508
windows-release-arm64OK635
windows-release-x86_64OK490
wasm-releaseFAIL337

Exports:mem_matrixmem_matrix_fromml_agglomerative_clusterml_cut_treeml_distance_metricml_linkage_methodMLElasticNetMLElasticNetCVMLLpNormScalerMLPCAMLRidgeMLRidgeCVMLSVDMLZScoreScalerTACGP_SolverTAFS_SolverTCDENET_SolverTCDIENET_SolverTCDLASSO_SolverTCDTIKNET_SolverTENET_SolverTENETAug_SolverTGP_SolverTIENET_SolverTIENETAug_SolverTIKNET_SolverTLARS_SolverTLASSO_SolverTMP_SolverTNCGMP_SolverTOMP_SolverTOOLS_Solvertrex_biobank_controltrex_build_group_centering_ktrex_controltrex_da_controltrex_default_lambda2_gridtrex_dummy_distributiontrex_fdptrex_fdp_densetrex_gamma_to_ktrex_get_max_threadstrex_get_num_threadstrex_gvs_controltrex_gvs_lambda2_power_ruletrex_normalize_designtrex_precisiontrex_recalltrex_screen_controltrex_set_num_threadstrex_spca_controltrex_tikhonov_controltrex_tikhonov_lambda2_power_ruletrex_tpptrex_tpp_denseTRexBiobankScreeningSelectorTRexDASelectorTRexGVSSelectorTRexScreeningSelectorTRexSelectorTRexSPCASelectorTRexTikhonovSelectortsolver_optionsTSTAGEWISE_SolverTSTEPWISE_Solver

Dependencies:BHR6RcerealRcppRcppEigen

Data dimensionality and FDR control
The variable selection problem | FDR and TPR | Three regimes | Low dimensionality, $n \geq p$ | High dimensionality, $p > n$ | Highest dimensionality, $p \gg n$ | The regimes in one map | The T-Rex selector across the regimes | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

Getting started with TRexSelector
What the package does | Installation | A first run | The result fields | T-Rex variants of the library | Citing the package | Bibliography

Last update: 2026-11-18
Started: 2026-11-06

Memory mapping: disk-backed designs
A design larger than the memory | Creating and opening a mapped matrix | Streaming a design into the file | Selectors on a mapped design | A read-only file | T-solvers and ML methods | When it pays | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

Screening: T-Rex+Screening and the biobank screening
Screening before selecting | T-Rex+Screening | A bootstrap confidence interval | Dependent variables | A response without signal | The biobank screening | Large designs | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

T-Rex+DA: dependent variables
Why dependent variables need a correction | An autoregressive design | The dependency methods | The penalty of the last step | Prior groups | Greedy solvers under T-Rex+DA | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

T-Rex+GVS: grouped variable selection
Groups of correlated variables | Data with groups | The elastic net policy | Choosing lambda_2 | The informed elastic net | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

T-Rex+SPCA: sparse principal components under FDR control
Sparse loadings with a guarantee | Data with two sparse factors | Running the selector | The control | Memory-mapped data | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

T-Rex+Tikhonov: a general penalty matrix
From the elastic net to a penalty matrix | A smooth coefficient profile | Running the selector | Choosing lambda_2 | Dummies for a structured penalty | Group centering | The solver | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

The T-Rex selector
FDR and TPR | The framework | Running the selector | Seeds | The number of random experiments | Early stopping of the T-loop | The result fields | The L-loop strategies | Dummy distributions | Scaling modes | The design is used in place | FDR control in a small simulation | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

The T-solvers
Terminating forward selection | One terminated path | The path as a picture | The options | Writers and readers | Saving and loading | Memory | Examples | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

The TRexSelector R package
User guide | Reference | Links | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

Working without data copies
The rule | Pass double matrices | Selectors: in place at construction, back at the end | T-solvers: writers and readers | Loading a saved solver | Mapped files are never read into memory | The low-memory engines | Measuring the footprint | Bibliography

Last update: 2026-11-18
Started: 2026-11-11

Parallelism: who owns the cores
Two layers of work | The default thread budget of the package | The solvers' passes | Parallel random experiments | Determinism | Combining with your own parallel loops | Builds without OpenMP | The CRAN rule | Bibliography

Last update: 2026-11-11
Started: 2026-11-11

The ML methods
The building blocks | Scalers | Ridge regression | The elastic net | SVD and PCA | Hierarchical clustering | Examples | Bibliography

Last update: 2026-11-11
Started: 2026-11-11

Readme and manuals

Help Manual

Help pageTopics
Extract or assign blocks in an mmap_matrix[.mmap_matrix [<-.mmap_matrix
Get Zero-Copy View as Numeric Vector (Block)as.matrix.mmap_matrix
Get mmap_matrix dimensionsdim.mmap_matrix
Toy data generated from a Gaussian linear modelGauss_data
Memory-Mapped Matrix Objectmem_matrix
Convert R Matrix to System Memory Mapped Matrixmem_matrix_from
Agglomerative Clusteringml_agglomerative_cluster
Cut Hierarchical Linkage Matrixml_cut_tree
Distance Metricsml_distance_metric
Linkage Methodsml_linkage_method
Elastic Net (coordinate-descent path)MLElasticNet
Elastic Net with Cross-ValidationMLElasticNetCV
Lp-Norm ScalerMLLpNormScaler
Principal Component AnalysisMLPCA
Ridge Regression SolverMLRidge
Ridge Regression with Cross-ValidationMLRidgeCV
SVD SolverMLSVD
Z-Score ScalerMLZScoreScaler
Print mmap_matrixprint.mmap_matrix
T-ACGP SolverTACGP_Solver
T-AFS SolverTAFS_Solver
T-CDENET Solver (deprecated)TCDENET_Solver
T-CDIENET Solver (deprecated)TCDIENET_Solver
T-CDLASSO Solver (deprecated)TCDLASSO_Solver
T-CDTIKNET Solver (deprecated)TCDTIKNET_Solver
T-ENET SolverTENET_Solver
T-ENET-Aug SolverTENETAug_Solver
T-GP SolverTGP_Solver
T-IENET Solver (native pathwise)TIENET_Solver
T-IENET-Aug SolverTIENETAug_Solver
T-TIKNET SolverTIKNET_Solver
T-LARS SolverTLARS_Solver
T-LASSO SolverTLASSO_Solver
T-MP SolverTMP_Solver
T-NCGMP SolverTNCGMP_Solver
T-OMP SolverTOMP_Solver
T-OLS SolverTOOLS_Solver
T-Rex Biobank Screening Control Parameterstrex_biobank_control
Build the centering penalty matrix of a group assignmenttrex_build_group_centering_k
T-Rex Control Parameterstrex_control
T-Rex+DA Control Parameterstrex_da_control
The default lambda_2 grid of the pilot rule and of the power rulestrex_default_lambda2_grid
T-Rex Dummy Variable Distributiontrex_dummy_distribution
Compute False Discovery Proportion (FDP) using index setstrex_fdp
Compute False Discovery Proportion (FDP) using dense vectorstrex_fdp_dense
Build a Tikhonov penalty matrix K from an operator Gammatrex_gamma_to_k
The library's thread budgettrex_get_max_threads trex_get_num_threads trex_set_num_threads
T-Rex+GVS Control Parameterstrex_gvs_control
The knee of the full lambda_2 profile of the T-Rex+GVS selectortrex_gvs_lambda2_power_rule
Apply the T-Rex data normalization to a designtrex_normalize_design
Compute Precision using index setstrex_precision
Compute Recall using index setstrex_recall
T-Rex+Screening Control Parameterstrex_screen_control
T-Rex+SPCA Control Parameterstrex_spca_control
T-Rex+Tikhonov Control Parameterstrex_tikhonov_control
The knee of the full lambda_2 profile of the T-Rex+Tikhonov selectortrex_tikhonov_lambda2_power_rule
Compute True Positive Proportion (TPP) using index setstrex_tpp
Compute True Positive Proportion (TPP) using dense vectorstrex_tpp_dense
Biobank Screening with the T-Rex SelectorTRexBiobankScreeningSelector
Dependency-Aware T-Rex Selector (T-Rex+DA)TRexDASelector
T-Rex Selector for Grouped Variable Selection (T-Rex+GVS)TRexGVSSelector
T-Rex Screening Selector (T-Rex+Screening)TRexScreeningSelector
T-Rex SelectorTRexSelector
T-Rex Sparse PCA Selector (T-Rex+SPCA)TRexSPCASelector
T-Rex Selector with a General Tikhonov Penalty (T-Rex+Tikhonov)TRexTikhonovSelector
T-Solver Optionstsolver_options
T-Stagewise SolverTSTAGEWISE_Solver
T-Stepwise SolverTSTEPWISE_Solver