Skip to content

Commit 3d03d92

Browse files
committed
Unit tests
Remove CRAN notes Update maintainer email
1 parent 5610332 commit 3d03d92

File tree

504 files changed

+40928
-6414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

504 files changed

+40928
-6414
lines changed

DESCRIPTION

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
Package: SelectBoost
22
Type: Package
33
Title: A General Algorithm to Enhance the Performance of Variable Selection Methods in Correlated Datasets
4-
Version: 2.2.2
5-
Date: 2022-11-29
6-
Depends: R (>= 2.10)
4+
Version: 2.3.0
5+
Date: 2025-09-10
6+
Depends:
7+
R (>= 3.5)
78
biocViews:
89
Imports: lars, glmnet, igraph, parallel, msgps, Rfast, methods, Cascade, graphics, grDevices, varbvs, spls, abind
910
Suggests:
1011
knitr,
1112
markdown,
1213
rmarkdown,
1314
mixOmics,
14-
CascadeData
15+
CascadeData,
16+
testthat (>= 3.0.0)
1517
Authors@R: c(
16-
person(given = "Frederic", family= "Bertrand", role = c("cre", "aut"), email = "frederic.bertrand@utt.fr", comment = c(ORCID = "0000-0002-0837-8281")),
17-
person(given = "Myriam", family= "Maumy-Bertrand", role = c("aut"), email = "myriam.maumy-bertrand@utt.fr", comment = c(ORCID = "0000-0002-4615-1512")),
18+
person(given = "Frederic", family= "Bertrand", role = c("cre", "aut"), email = "frederic.bertrand@lecnam.net", comment = c(ORCID = "0000-0002-0837-8281")),
19+
person(given = "Myriam", family= "Maumy-Bertrand", role = c("aut"), email = "myriam.maumy@ehesp.fr", comment = c(ORCID = "0000-0002-4615-1512")),
1820
person(given = "Ismail", family= "Aouadi", role = c("ctb"), email = "[email protected]"),
1921
person(given = "Nicolas", family= "Jung", role = c("ctb"), email = "[email protected]"))
2022
Author: Frederic Bertrand [cre, aut] (<https://orcid.org/0000-0002-0837-8281>), Myriam Maumy-Bertrand [aut] (<https://orcid.org/0000-0002-4615-1512>), Ismail Aouadi [ctb], Nicolas Jung [ctb]
21-
Maintainer: Frederic Bertrand <frederic.bertrand@utt.fr>
23+
Maintainer: Frederic Bertrand <frederic.bertrand@lecnam.net>
2224
Description: An implementation of the selectboost algorithm (Bertrand et al. 2020, 'Bioinformatics', <doi:10.1093/bioinformatics/btaa855>), which is a general algorithm that improves the precision of any existing variable selection method. This algorithm is based on highly intensive simulations and takes into account the correlation structure of the data. It can either produce a confidence index for variable selection or it can be used in an experimental design planning perspective.
2325
License: GPL-3
2426
Encoding: UTF-8
2527
Classification/MSC: 62H11, 62J12, 62J99
2628
LazyData: true
2729
VignetteBuilder: knitr
28-
RoxygenNote: 7.2.1
30+
RoxygenNote: 7.3.2
2931
URL: https://fbertran.github.io/SelectBoost/, https://github.com/fbertran/SelectBoost/
3032
BugReports: https://github.com/fbertran/SelectBoost/issues/
33+
Config/testthat/edition: 3

NEWS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
# SelectBoost 2.3.0
2+
3+
* Maintainer email update
4+
* Added unit tests
5+
* Fix the package to get rid of CRAN check notes
6+
17
# SelectBoost 2.2.2
28

3-
* Update email maintainer address
9+
* Maintainer email update
410

511
# SelectBoost 2.2.1
612

R/BIC_AICc_glmnet.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#' @name AICc_BIC_glmnetB
1010
#'
1111
#' @return A list relevant to model selection.
12-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
12+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
1313
#' @references \emph{Robust Parametric Classification and Variable Selection by a Minimum Distance Criterion}, Chi and Scott, Journal of Computational and Graphical Statistics, \bold{23}(1), 2014, p111--128, \doi{10.1080/10618600.2012.737296}.
1414
#' @seealso \code{\link{var_select}}
1515
#' @examples

R/SelectBoost-package.R

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,15 @@
1-
#' SelectBoost
2-
#'
3-
#' Motivation: With the growth of big data, variable selection has become one of the major
4-
#' challenges in statistics. Although many methods have been proposed in the literature their
5-
#' performance in terms of recall and precision are limited in a context where the number of
6-
#' variables by far exceeds the number of observations or in a high correlated setting.
7-
#' Results: This package implements a new general algorithm which improves the precision of any
8-
#' existing variable selection method. This algorithm is based on highly intensive simulations and
9-
#' takes into account the correlation structure of the data. Our algorithm can either produce a
10-
#' confidence index for variable selection or it can be used in an experimental design planning
11-
#' perspective.
12-
#'
13-
#' @docType package
14-
#' @name SelectBoost
1+
#' @keywords internal
2+
#' @aliases SelectBoost-package SelectBoost NULL
3+
#'
154
#' @references F. Bertrand, I. Aouadi, N. Jung, R. Carapito, L. Vallat, S. Bahram, M. Maumy-Bertrand (2020). SelectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets, \emph{Bioinformatics}. \doi{10.1093/bioinformatics/btaa855}
165
#'
176
#' SelectBoost was used to decypher networks in
187
#' C. Schleiss, [...], M. Maumy-Bertrand, S. Bahram, F. Bertrand, and L. Vallat. (2021). Temporal multiomic modelling reveals a B-cell receptor proliferative program in chronic lymphocytic leukemia. \emph{Leukemia}.
198
#'
20-
# @import parallel doMC foreach
21-
#' @import lars glmnet msgps spls varbvs
22-
#' @importFrom abind abind
23-
#' @importFrom methods new
24-
#' @importFrom utils head tail
25-
#' @importFrom stats coef cor heatmap predict var
26-
#' @importFrom grDevices rainbow
27-
#' @importFrom graphics abline axis barplot matplot mtext par plot points segments
28-
#' @importFrom stats binom.test median plogis pt qbinom quantile rbinom rnorm runif sd t.test wilcox.test
29-
#' @importFrom Rfast vmf.mle rvmf
30-
# #' @importFrom parallel detectCores makeCluster clusterEvalQ clusterExport parLapply stopCluster
31-
# #' @importFrom doMC registerDoMC
32-
# #' @importFrom foreach foreach "%dopar%"
33-
#' @importFrom igraph graph.adjacency infomap.community communities
34-
#' @importFrom grDevices rgb gray
35-
#' @importFrom graphics image layout
36-
#' @importFrom parallel detectCores
9+
#'#' @author This package has been written by Frédéric Bertrand, Myriam
10+
#' Maumy-Bertrand, Ismail Aouadi and Nicolas Jung.
11+
#' Maintainer: Frédéric Bertrand <frederic.bertrand@@lecnam.net>
12+
#'
3713
#' @examples
3814
#' set.seed(314)
3915
#' xran=matrix(rnorm(75),15,5)
@@ -52,4 +28,25 @@
5228
#' #Binary logistic regression
5329
#' fastboost(xran,ybin,func=lasso_cv_glmnet_bin_min)
5430
#'}
31+
#'
32+
"_PACKAGE"
33+
34+
# @import parallel doMC foreach
35+
#' @import lars glmnet msgps spls varbvs
36+
#' @importFrom abind abind
37+
#' @importFrom methods new
38+
#' @importFrom utils head tail
39+
#' @importFrom stats coef cor heatmap predict var
40+
#' @importFrom grDevices rainbow
41+
#' @importFrom graphics abline axis barplot matplot mtext par plot points segments
42+
#' @importFrom stats binom.test median plogis pt qbinom quantile rbinom rnorm runif sd t.test wilcox.test
43+
#' @importFrom Rfast vmf.mle rvmf
44+
# #' @importFrom parallel detectCores makeCluster clusterEvalQ clusterExport parLapply stopCluster
45+
# #' @importFrom doMC registerDoMC
46+
# #' @importFrom foreach foreach "%dopar%"
47+
#' @importFrom igraph graph.adjacency infomap.community communities
48+
#' @importFrom grDevices rgb gray
49+
#' @importFrom graphics image layout
50+
#' @importFrom parallel detectCores
51+
#'
5552
NULL

R/autoboost.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#'
4343
#' @return A numeric matrix with attributes.
4444
#' @family Selectboost functions
45-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
45+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
4646
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
4747
#' @seealso \code{\link{boost}}, \code{\link{fastboost}}, \code{\link{plot.selectboost}}
4848
#' @examples
@@ -371,7 +371,7 @@ autoboost<-function(X,Y,ncores=4,group=group_func_1,func=lasso_msgps_AICc,corrfu
371371
#'
372372
#' @return A numeric matrix with attributes.
373373
#' @family Selectboost functions
374-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
374+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
375375
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
376376
#' @seealso \code{\link{boost}}, \code{\link{autoboost}}, \code{\link{plot.selectboost}}
377377
#' @examples
@@ -845,7 +845,7 @@ fastboost <-
845845
#'
846846
#' @return A matrix with the results.
847847
#' @family Selectboost analyse functions
848-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
848+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
849849
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
850850
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}}
851851
NULL
@@ -898,7 +898,7 @@ force.non.inc = function(object){
898898
#'
899899
#' @return An invisible list.
900900
#' @family Selectboost analyse functions
901-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
901+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
902902
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
903903
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}}
904904
#' @examples
@@ -1062,7 +1062,7 @@ plot.selectboost <-
10621062
#'
10631063
#' @return A list with the results.
10641064
#' @family Selectboost analyse functions
1065-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
1065+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
10661066
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
10671067
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}}
10681068
NULL
@@ -1232,7 +1232,7 @@ summary.selectboost <-
12321232
#'
12331233
#' @return An invisible list.
12341234
#' @family Selectboost analyze functions
1235-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
1235+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
12361236
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
12371237
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}} and \code{\link{summary.selectboost}}
12381238
NULL
@@ -1285,7 +1285,7 @@ plot.summary.selectboost <- function(x, ...)
12851285
#'
12861286
#' @return An invisible list.
12871287
#' @family Selectboost analyze functions
1288-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
1288+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
12891289
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
12901290
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}} and \code{\link{summary.selectboost}}
12911291
NULL
@@ -1444,7 +1444,7 @@ trajC0.selectboost <-
14441444
#'
14451445
#' @family Selectboost analyze functions
14461446
#'
1447-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
1447+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
14481448
#'
14491449
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
14501450
#' @seealso \code{\link{fastboost}} and \code{\link{autoboost}}

R/boost.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#'
77
#' @return Various types depending on the function.
88
#' @family Selectboost functions
9-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
9+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
1010
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
1111
#' @seealso \code{\link{fastboost}}, \code{\link{autoboost}}
1212
#' @examples

R/datasets.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
#' @format A numerical matrix frame with 100 rows and 200 variables or a numerical vector of length 100.
8888
#' @rdname reverse
8989
#' @name results_simuls_reverse_engineering_v3
90-
#' @docType data
9190
NULL
9291
#' @rdname reverse
9392
"test.seq_C"

R/group_func_1.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' \item "type": "normal"
1414
#' \item "length.groups" the length of each groups.
1515
#' }
16-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
16+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
1717
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
1818
#' @seealso \code{\link{group_func_2}} and \code{\link{boost.findgroups}}
1919
#' @examples

R/group_func_2.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' \item "type": "normal"
1515
#' \item "length.groups" the length of each groups.
1616
#' }
17-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
17+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
1818
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
1919
#' @seealso \code{\link{group_func_2}} \code{\link{boost.findgroups}}, \code{\link[igraph]{infomap.community}} and \code{\link[igraph]{igraph}}.
2020
#' @examples

R/lasso_cv.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#'
2525
#' @return A vector of coefficients.
2626
#' @family Variable selection functions
27-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
27+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
2828
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
2929
#' @seealso \code{\link[glmnet]{glmnet}}, \code{\link[glmnet]{cv.glmnet}}, \code{\link{AICc_BIC_glmnetB}}, \code{\link[lars]{lars}}, \code{\link[lars]{cv.lars}}, \code{\link[msgps]{msgps}}
3030
#' @examples
@@ -514,7 +514,7 @@ cv.lars1 <- function (x, y, K = 10, index, trace = FALSE, plot.it = TRUE,
514514
#'
515515
#' @return A vector or matrix of coefficients.
516516
#' @family Variable selection functions
517-
#' @author Frederic Bertrand, \email{frederic.bertrand@@utt.fr}
517+
#' @author Frederic Bertrand, \email{frederic.bertrand@@lecnam.net}
518518
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. \doi{10.1093/bioinformatics/btaa855}
519519
#' @seealso \code{\link[glmnet]{glmnet}}, \code{\link[glmnet]{cv.glmnet}}, \code{\link[msgps]{msgps}}, \code{\link{AICc_BIC_glmnetB}}, \code{\link[spls]{spls}}, \code{\link[spls]{cv.spls}}, \code{\link[spls]{correct.spls}}, \code{\link[spls]{splsda}}, \code{\link[spls]{cv.splsda}}, \code{\link[spls]{sgpls}}, \code{\link[spls]{cv.sgpls}}, \code{\link[varbvs]{varbvs}}
520520
#' @examples

0 commit comments

Comments
 (0)