Skip to content

Commit a9952a7

Browse files
authored
Merge pull request #5 from fbertran/IntoDoMC
Merge 2.2 updates into doMC branch
2 parents 5e9d36c + e19fc20 commit a9952a7

File tree

865 files changed

+10012
-7379
lines changed

Some content is hidden

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

865 files changed

+10012
-7379
lines changed

.Rbuildignore

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
genlogo.R
2+
.gitignore
3+
^codecov\.yml$
4+
^revdep$
5+
^_pkgdown\.yml$
6+
^figure$
7+
^pkgdown$
18
^Meta$
2-
^doc$
9+
#^doc$
310
#All packages
411
^.*\.Rproj$
512
^\.Rproj\.user$
@@ -13,15 +20,31 @@
1320
#If README too big, not on CRAN but only on git
1421
^man/figures*$
1522
^README\.Rmd$
16-
^README\.md$
23+
#^README\.md$
1724
#Specific
1825
^fullrespdf*$
1926
^inst/animation*$
2027
^articles*$
28+
^review*$
29+
^\.github$
30+
31+
#For the cached chunks of the vignettes
32+
^vignettes.*cache$
33+
#For the image outputs of the vignettes
34+
^vignettes.*files$
35+
#Specific
36+
^animation.gif$
37+
^evolution_example*$
38+
^add_data
39+
^doc$
40+
^Meta$
41+
^cran-comments[.].*$
42+
2143
#Vignette cache
2244
^cran-comments[.].*$
2345
^vignettes/.*[.](pdf|PDF)$
2446
^vignettes/.*[.](r|R)$
2547
^vignettes/[.]install_extras$
2648
^vignettes/.*_cache$
2749
^vignettes/.*_files$
50+

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2+
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
name: R-CMD-check
14+
15+
jobs:
16+
R-CMD-check:
17+
runs-on: macOS-latest
18+
env:
19+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: r-lib/actions/setup-r@v1
23+
- name: Install ghostscript on macOS
24+
if: runner.os == 'macOS'
25+
run: brew install ghostscript
26+
- name: Install Magick on macOS
27+
if: runner.os == 'macOS'
28+
run: brew install imagemagick
29+
- name: Install dependencies
30+
run: |
31+
install.packages(c("remotes", "rcmdcheck"))
32+
remotes::install_deps(dependencies = TRUE)
33+
shell: Rscript {0}
34+
- name: Check
35+
run: |
36+
options(crayon.enabled = TRUE)
37+
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
38+
shell: Rscript {0}

.gitignore

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
1-
Meta
2-
doc
3-
inst/doc
41
# History files
52
.Rhistory
63
.Rapp.history
74

85
# Session Data files
96
.RData
7+
108
# RStudio files
119
.Rproj.user/
10+
.Rproj.user/*
11+
12+
.DS_Store
13+
1214
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
1315
.httr-oauth
16+
1417
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
1518
rsconnect/
1619
.Rproj.user
17-
.DS_Store
20+
21+
# Files for review
22+
review/
23+
24+
#doc
25+
Meta
26+
27+
# User-specific files
28+
.Ruserdata
29+
doc
30+
inst/doc

DESCRIPTION

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Package: SelectBoost
22
Type: Package
33
Title: A General Algorithm to Enhance the Performance of Variable Selection Methods in Correlated Datasets
4-
Version: 1.3.0
5-
Date: 2019-05-03
4+
Version: 2.2.0
5+
Date: 2021-03-20
66
Depends: R (>= 2.10)
7-
Imports: lars, glmnet, igraph, parallel, msgps, Rfast, doMC, foreach, methods, Cascade, graphics, grDevices
7+
biocViews:
8+
Imports: lars, glmnet, igraph, parallel, msgps, Rfast, doMC, foreach, methods, Cascade, graphics, grDevices, varbvs, spls, abind
89
Suggests:
910
knitr,
1011
rmarkdown,
@@ -17,11 +18,12 @@ Authors@R: c(
1718
person(given = "Nicolas", family= "Jung", role = c("ctb"), email = "[email protected]"))
1819
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]
1920
Maintainer: Frederic Bertrand <[email protected]>
20-
Description: The 'selectboost' algorithm (Aouadi et al. 2018, <arXiv:1810.01670>) is a general algorithm which 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.
21+
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.
2122
License: GPL-3
2223
Encoding: UTF-8
2324
Classification/MSC: 62H11, 62J12, 62J99
25+
LazyData: true
2426
VignetteBuilder: knitr
25-
RoxygenNote: 6.1.1
26-
URL: https://github.com/fbertran/SelectBoost, http://www-irma.u-strasbg.fr/~fbertran/
27-
BugReports: https://github.com/fbertran/SelectBoost/issues
27+
RoxygenNote: 7.1.1
28+
URL: https://fbertran.github.io/SelectBoost/, https://github.com/fbertran/SelectBoost/
29+
BugReports: https://github.com/fbertran/SelectBoost/issues/

NAMESPACE

+16
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ S3method(summary,selectboost)
99
S3method(trajC0,selectboost)
1010
export(AICc_glmnetB)
1111
export(BIC_glmnetB)
12+
export(alasso_enet_msgps_all)
13+
export(alasso_msgps_all)
1214
export(auto.analyze)
1315
export(autoboost)
1416
export(boost.Xpass)
@@ -21,43 +23,57 @@ export(boost.normalize)
2123
export(boost.random)
2224
export(boost.select)
2325
export(compsim)
26+
export(enet_msgps_all)
2427
export(enetf_msgps_AICc)
2528
export(enetf_msgps_BIC)
2629
export(enetf_msgps_Cp)
2730
export(enetf_msgps_GCV)
2831
export(fastboost)
32+
export(force.non.inc)
2933
export(group_func_1)
3034
export(group_func_2)
3135
export(lasso_cascade)
3236
export(lasso_cv_glmnet_1se)
3337
export(lasso_cv_glmnet_1se_weighted)
38+
export(lasso_cv_glmnet_all_5f)
3439
export(lasso_cv_glmnet_bin_1se)
40+
export(lasso_cv_glmnet_bin_all)
3541
export(lasso_cv_glmnet_bin_min)
3642
export(lasso_cv_glmnet_min)
3743
export(lasso_cv_glmnet_min_weighted)
3844
export(lasso_cv_lars_1se)
3945
export(lasso_cv_lars_min)
4046
export(lasso_glmnet_bin_AICc)
4147
export(lasso_glmnet_bin_BIC)
48+
export(lasso_glmnet_bin_all)
4249
export(lasso_msgps_AICc)
4350
export(lasso_msgps_BIC)
4451
export(lasso_msgps_Cp)
4552
export(lasso_msgps_GCV)
53+
export(lasso_msgps_all)
4654
export(rerr)
4755
export(ridge_logistic)
4856
export(selectboost)
57+
export(sgpls_spls_all)
4958
export(simulation_DATA)
5059
export(simulation_X)
5160
export(simulation_cor)
61+
export(spls_spls_all)
62+
export(splsda_spls_all)
5263
export(trajC0)
64+
export(varbvs_binomial_all)
65+
export(varbvs_linear_all)
5366
exportClasses(network.confidence)
5467
exportMethods(plot)
5568
import(glmnet)
5669
import(lars)
5770
import(msgps)
71+
import(spls)
72+
import(varbvs)
5873
importClassesFrom(Cascade,micro_array)
5974
importFrom(Rfast,rvmf)
6075
importFrom(Rfast,vmf.mle)
76+
importFrom(abind,abind)
6177
importFrom(doMC,registerDoMC)
6278
importFrom(foreach,"%dopar%")
6379
importFrom(foreach,foreach)

NEWS

-25
This file was deleted.

NEWS.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
# SelectBoost 1.3.0
1+
# SelectBoost 2.2.0
2+
3+
* Add more badges, logo and update pkgdown site
4+
* Add github actions
5+
* Added reference to a Leukemia article that used the Selectboost algorithm to decypher multi-omics networks.
6+
7+
# SelectBoost 2.1.0
8+
9+
* Added reference for the article about the Selectboost algorithm that was published in Bioinformatics
10+
11+
# SelectBoost 2.0.0
12+
13+
* Major imrovement of the package with new c0 sequences: "mixed", "zoom_l" and "zoom_q". The use of the "zoom_l" sequence is recommended. New function to perform a post-processing step that ensures that the proportion of times a variable is selected is non-increasing with respect to 1-c0.
14+
15+
# SelectBoost 1.4.1
16+
17+
* Update to datalist, lazyload data to fix CRAN check, correct some typos in readme and in compsim.simuls help page.
18+
19+
# SelectBoost 1.4.0
20+
21+
* Fixes to get in CRAN.
222

323
* Completed third vignette.
424

R/BIC_AICc_glmnet.R

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#' @name AICc_BIC_glmnetB
1010
#'
1111
#' @return A list relevant to model selection.
12-
#' @author Eric C. Chi, slightly modified by Frederic Bertrand, \email{frederic.bertrand@@math.unistra.fr}
13-
#' @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, \url{https://doi.org/10.1080/10618600.2012.737296}.
12+
#' @author Frederic Bertrand, \email{frederic.bertrand@@math.unistra.fr}
13+
#' @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
1616
#' set.seed(314)
@@ -125,7 +125,7 @@ BIC_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
125125
corzz = function(zz) {
126126
if(is.infinite(exp(zz))){
127127
return(zz)
128-
cat(L[i],"\n")
128+
#cat(L[i],"\n")
129129
} else {
130130
return(log(1 + exp(zz)))
131131
}
@@ -149,7 +149,7 @@ BIC_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
149149
corzz = function(zz) {
150150
if(is.infinite(exp(zz))){
151151
return(zz)
152-
cat(L[i],"\n")
152+
#cat(L[i],"\n")
153153
} else {
154154
return(log(1 + exp(zz)))
155155
}
@@ -184,7 +184,7 @@ BIC_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
184184
corzz = function(zz) {
185185
if(is.infinite(exp(zz))){
186186
return(zz)
187-
cat(L[i],"\n")
187+
#cat(L[i],"\n")
188188
} else {
189189
return(log(1 + exp(zz)))
190190
}
@@ -208,7 +208,7 @@ BIC_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
208208
corzz = function(zz) {
209209
if(is.infinite(exp(zz))){
210210
return(zz)
211-
cat(L[i],"\n")
211+
#cat(L[i],"\n")
212212
} else {
213213
return(log(1 + exp(zz)))
214214
}
@@ -279,7 +279,7 @@ AICc_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
279279
corzz = function(zz) {
280280
if(is.infinite(exp(zz))){
281281
return(zz)
282-
cat(L[i],"\n")
282+
#cat(L[i],"\n")
283283
} else {
284284
return(log(1 + exp(zz)))
285285
}
@@ -303,7 +303,7 @@ AICc_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
303303
corzz = function(zz) {
304304
if(is.infinite(exp(zz))){
305305
return(zz)
306-
cat(L[i],"\n")
306+
#cat(L[i],"\n")
307307
} else {
308308
return(log(1 + exp(zz)))
309309
}
@@ -338,7 +338,7 @@ AICc_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
338338
corzz = function(zz) {
339339
if(is.infinite(exp(zz))){
340340
return(zz)
341-
cat(L[i],"\n")
341+
#cat(L[i],"\n")
342342
} else {
343343
return(log(1 + exp(zz)))
344344
}
@@ -362,7 +362,7 @@ AICc_glmnetB = function(Z, Y, glmnet.model, alpha, modelSet, reducer='median') {
362362
corzz = function(zz) {
363363
if(is.infinite(exp(zz))){
364364
return(zz)
365-
cat(L[i],"\n")
365+
#cat(L[i],"\n")
366366
} else {
367367
return(log(1 + exp(zz)))
368368
}

R/SelectBoost-package.R

+25-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
#'
1313
#' @docType package
1414
#' @name SelectBoost
15-
#' @references \emph{selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets}, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Frédéric Bertrand, \url{https://arxiv.org/abs/1810.01670}
15+
#' @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}
16+
#'
17+
#' SelectBoost was used to decypher networks in
18+
#' 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}.
19+
#'
1620
# @import lars glmnet igraph parallel msgps Rfast doMC foreach
17-
#' @import lars glmnet msgps
21+
#' @import lars glmnet msgps spls varbvs
22+
#' @importFrom abind abind
1823
#' @importFrom methods new
1924
#' @importFrom utils head tail
2025
#' @importFrom stats coef cor heatmap predict var
@@ -28,5 +33,22 @@
2833
#' @importFrom igraph graph.adjacency infomap.community communities
2934
#' @importFrom grDevices rgb gray
3035
#' @importFrom graphics image layout
31-
36+
#' @examples
37+
#' set.seed(314)
38+
#' xran=matrix(rnorm(75),15,5)
39+
#' ybin=sample(0:1,15,replace=TRUE)
40+
#' yran=rnorm(15)
41+
#'
42+
#' #For quick test purpose, not meaningful, should be run with greater value of B
43+
#' #(disabling parallel computing as well)
44+
#' res.fastboost <- fastboost(xran,yran,B=3,use.parallel=FALSE)
45+
#'
46+
#' \donttest{
47+
#' fastboost(xran,yran)
48+
#' #Customize resampling levels
49+
#' fastboost(xran,yran,steps.seq=c(.99,.95,.9),c0lim=FALSE)
50+
#'
51+
#' #Binary logistic regression
52+
#' fastboost(xran,ybin,func=lasso_cv_glmnet_bin_min)
53+
#'}
3254
NULL

0 commit comments

Comments
 (0)