Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare file_version & cran #9

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9ed4569
fix lecture fichier
SalebHet Apr 12, 2022
9da0394
corrections : add dependencies, add description in functions
Apr 12, 2022
d05b129
create new file utils.R and add documentation
Apr 13, 2022
48e6b3b
small changes in function descriptions
Apr 13, 2022
4d922ea
remove Dockerfile
Apr 13, 2022
7a402c6
remove KR_functions file
Apr 22, 2022
639d5b4
comment KR part in contest1D function
Apr 22, 2022
7cae998
modifications for spell_check
Apr 22, 2022
4169597
github actions on cran branch
borishejblum Apr 25, 2022
e0ea706
contributors
borishejblum Apr 25, 2022
0bc4b32
remove Selenium and Golem tests and their associated dependencies
Apr 28, 2022
88ae5cf
remove last unused dependencies and modify spelling
Apr 28, 2022
710bde9
full GHA
borishejblum Apr 28, 2022
f96f2a4
change GH url
May 2, 2022
2958f2b
change n° of version and add DOI of article
May 3, 2022
b8d2933
modification of DOI
May 17, 2022
aff8419
ready fro cran
borishejblum Jun 27, 2022
c62aa57
changing the size of the plot to download
Oct 25, 2022
f27138d
Fix Docker Build Error
Mar 13, 2023
2d69418
Update to match last update
May 26, 2023
91bbe86
labkey added to action branches
borishejblum Jun 25, 2023
f88e79a
Update to access Datasets
Sep 5, 2023
a53587f
fix bug
Sep 19, 2023
4b702d8
fix
Oct 27, 2023
aaa4df1
Merge branch 'master' of https://github.com/sistm/vici into cran
Jan 26, 2024
fbe2545
update CRAN version
Jan 26, 2024
8de46f2
Update for cran check
Jan 26, 2024
0a82f36
Add histogram code i forgot to add
Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
<<<<<<< HEAD
branches: [main, master, cran]
pull_request:
branches: [main, master, cran]
=======
branches: [main, master, cran, labkey]
pull_request:
branches: [main, master, cran, labkey]
>>>>>>> 4b702d8f21a61cae9312b45b8a221d3949aaf732

name: R-CMD-check

Expand All @@ -28,6 +34,24 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

<<<<<<< HEAD
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v1
=======
# steps:
# - uses: actions/checkout@v2
#
Expand Down Expand Up @@ -56,3 +80,4 @@ jobs:
# with:
# name: ${{ runner.os }}-r${{ matrix.config.r }}-results
# path: check
>>>>>>> 4b702d8f21a61cae9312b45b8a221d3949aaf732
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
.Rhistory
.RData
.Ruserdata
<<<<<<< HEAD
*.DS_Store
=======
*.Rproj
*.DS_Store
*.DS_Store
>>>>>>> 4b702d8f21a61cae9312b45b8a221d3949aaf732
36 changes: 17 additions & 19 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
Package: vici
Title: Vaccine Induced Cellular Immunogenicity with Bivariate Modeling
Version: 0.5.4
Date: 2019-08-21
Authors@R: person('Boris', 'Hejblum', email = 'boris.hejblum@u-bordeaux.fr', role = c('cre', 'aut'))
Version: 0.7.0
Date: 2022-06-27
Authors@R: c(person('Boris', 'Hejblum', email = 'boris.hejblum@u-bordeaux.fr', role = c('cre', 'aut')),
person('Melanie', 'Huchon', email = 'melanie.huchon@u-bordeaux.fr', role = c('aut')),
person('Clement', 'Nerestan', email = 'clement.nerestan@u-bordeaux.fr', role = c('aut'))
)
Description: A shiny app for accurate estimation of vaccine induced immunogenicity
with bivariate linear modeling. Method is detailed in: Lhomme, Hejblum, Lacabaratz,
Wiedemann, Lelievre, Levy, Thiebaut & Richert (2019). Submitted.
BugReports: https://github.com/borishejblum/vici/issues
Wiedemann, Lelievre, Levy, Thiebaut & Richert (2020). Journal of Immunological Methods,
477:112711. <doi:10.1016/j.jim.2019.112711>.
BugReports: https://github.com/sistm/vici/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
Expand All @@ -17,21 +21,15 @@ Imports:
grDevices,
ggpubr,
nlme,
numDeriv,
shiny,
stats,
stringr,
tidyr,
utils,
covr,
testthat,
RSelenium,
golem,
future,
pkgload,
processx,
numDeriv,
methods,
stringr,
MASS,
Matrix,
lmerTest
RoxygenNote: 7.1.2
scales,
shinyWidgets,
RColorBrewer
Suggests:
testthat
RoxygenNote: 7.2.3
33 changes: 0 additions & 33 deletions Dockerfile

This file was deleted.

9 changes: 7 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ export(mod_modelfit_ui)
export(mod_settings_pan_server)
export(mod_settings_pan_ui)
export(run_app)
import(Matrix)
import(RColorBrewer)
import(ggplot2)
import(ggpubr)
import(lmerTest)
import(scales)
import(shiny)
import(shinyWidgets)
importFrom(cowplot,plot_grid)
importFrom(grDevices,dev.off)
importFrom(grDevices,png)
importFrom(nlme,"coef<-")
importFrom(nlme,Initialize)
importFrom(nlme,asOneFormula)
importFrom(nlme,getGroups)
Expand All @@ -39,15 +41,18 @@ importFrom(stats,contrasts)
importFrom(stats,fitted)
importFrom(stats,formula)
importFrom(stats,logLik)
importFrom(stats,model.frame)
importFrom(stats,model.matrix)
importFrom(stats,na.fail)
importFrom(stats,na.omit)
importFrom(stats,nlminb)
importFrom(stats,optim)
importFrom(stats,pt)
importFrom(stats,qt)
importFrom(stats,relevel)
importFrom(stats,sigma)
importFrom(stats,terms)
importFrom(stats,update)
importFrom(stats,vcov)
importFrom(stringr,str_detect)
importFrom(tidyr,spread)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vici 0.6.0

* Added support for additional degree of freedom methods

# vici 0.5.3

* Added source code & CRAN link buttons
Expand Down
20 changes: 13 additions & 7 deletions R/BW_functions.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#' Between-Within functions to obtain Denominator degrees of freedom
#'
#' Internal function to calculate Between-Within degrees of freedom
#'
#' @param object a \code{gls} model object.
#' @param L a numeric vector of the same length as the number of fixed effects from \code{object}.
#'
#' @return a \code{number} object
#'
#' @keywords internal
#'
#' @importFrom stringr str_detect
Expand All @@ -15,7 +22,6 @@ ddf_BW <- function(object, L){

for (i in 1:length(sys.parents())){
if (exists("transformed_data", envir = parent.frame(n=i), inherits=FALSE)){
# formul <- get("myformul", envir = parent.frame(n=i), inherits=FALSE)
data.obj <- get("transformed_data", envir = parent.frame(n=i), inherits=FALSE)
}
if (exists("input", envir = parent.frame(n=i), inherits=FALSE)){
Expand All @@ -29,19 +35,19 @@ ddf_BW <- function(object, L){
armRef <- input.obj$selectRefArmInter
n_obs_armRef <- nrow(data.obj[which(data.obj$arm==armRef),])

n_param_interac <- length(stringr::str_detect(parameters, ":")[stringr::str_detect(parameters, ":")==TRUE])
n_param_interac <- length(str_detect(parameters, ":")[str_detect(parameters, ":")==TRUE])

n_param_bkg <- length(stringr::str_detect(parameters, "bkg")[stringr::str_detect(parameters, "bkg")==TRUE])
n_param_bkg <- length(str_detect(parameters, "bkg")[str_detect(parameters, "bkg")==TRUE])

# for inter-arm
if(input.obj$selectModel == "1"){
if(stringr::str_detect(est_param, "bkg")){
if(str_detect(est_param, "bkg")){
#ddf_between
ddf <- n_obs - n_indiv - n_param
} else if(stringr::str_detect(est_param, ":")){
}else if(str_detect(est_param, ":")){
#ddf_within for stim
ddf <- n_obs - n_obs_armRef - n_param_interac
} else{
}else{
#ddf_within for stim and arm
ddf <- n_obs_armRef - n_indiv - (n_param - n_param_interac - n_param_bkg)
}
Expand All @@ -50,7 +56,7 @@ ddf_BW <- function(object, L){
ddf <- n_obs - n_indiv - n_param
}

ddf
return(ddf)

}

Loading