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

Release OsteoBioR 25.02.0 #75

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9a82634
Version 23.09.1: Feat/26 extend x scale (#29)
arunge Sep 6, 2023
6fe29ef
remove not needed
arunge Sep 7, 2023
360666d
add column name
arunge Sep 12, 2023
42953de
add test, fix labs
arunge Sep 12, 2023
a085067
fix label for upper xLim (#32)
arunge Oct 4, 2023
dcb82cf
Feat/ apply model import from dataTools (#33)
arunge Oct 6, 2023
6834d10
Update cosign-installer version
jan-abel-inwt Nov 1, 2023
250b7de
update cran mirror in Rprofile
arunge Dec 6, 2023
b2e608b
fix in model down- and upload
arunge Dec 6, 2023
18203a3
merge main
arunge Dec 6, 2023
0cf23e1
print elapsed time of model fit
arunge Dec 8, 2023
88aa487
add elapsed model fitting time to UI
arunge Dec 11, 2023
8d70d81
fixed seed option (#39)
arunge Dec 11, 2023
bc4e2ab
add seed to model download
arunge Dec 11, 2023
a9244e5
new DataTools version, update config
arunge Dec 19, 2023
0ff6dbd
remove library xlsx
arunge Dec 19, 2023
9a4662e
exclude first column in check during import (#40)
arunge Jan 9, 2024
c5a54ce
add custom help text
arunge Jan 10, 2024
77289cf
fix issue that prevented using multiple cures
arunge Jan 12, 2024
c843d50
fix left comma
arunge Jan 16, 2024
c4b165e
new checkbox to use rownames as indVar (#42)
arunge Jan 29, 2024
7f42977
Merge branch 'main' into beta
arunge Apr 3, 2024
94147a8
apply module plotPoints from shinyTools (#44)
arunge Apr 24, 2024
ca5158e
Feat/43 multi plot (#46)
arunge Apr 24, 2024
b9a161c
fix overlapping of UIs
arunge Apr 25, 2024
83656af
update config
arunge Jun 6, 2024
bbb45bc
OsteoBioR 24.08.0: prevent dropUp (#58)
arunge Aug 7, 2024
3b980e9
catch error if empty model output (#60)
arunge Aug 9, 2024
c6f8370
OsteoBioR 24.08.2: include break point detection with mcp package (#62)
arunge Aug 28, 2024
d78f80a
merge updates from main
arunge Sep 20, 2024
09ef45d
OsteoBioR 24.09.0: two more methods for model comparison (#65)
arunge Sep 26, 2024
7417530
OsteoBioR 24.09.3.1: Hide parse button for sub and superscripts (#68)
arunge Sep 27, 2024
dcc7516
merge maintenance from main
arunge Oct 2, 2024
a8c0b22
OsteoBioR 24.10.0: Feat/51 updates for time plot (#73)
arunge Oct 15, 2024
3d743e7
OsteoBioR 24.11.0: integrate ChangeR modules (#74)
arunge Nov 5, 2024
cec8a2f
merge main
arunge Nov 5, 2024
e60249c
return needed example data
arunge Nov 5, 2024
b772686
OsteoBioR 25.02.0: apply customPoints module, plotLegend module (#76)
arunge Feb 4, 2025
f184860
update upload-artifacts from v3 to v4
Feb 4, 2025
6e1c925
update download-artifacts from v3 to v4
jan-abel-inwt Feb 4, 2025
b0b9545
push shinyTools version with fix for custom points
arunge Feb 5, 2025
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
6 changes: 3 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4

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

- name: Compile rstan files via rstantools
run: |
# R is already installed in the base-image
Expand All @@ -49,7 +49,7 @@ jobs:

# Save the generated site to be shared with the next job
- name: Upload site artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: site
path: docs
Expand All @@ -67,7 +67,7 @@ jobs:
uses: actions/checkout@v4

- name: Download site artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: site
path: docs
Expand Down
14 changes: 4 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: OsteoBioR
Version: 24.10.0
Version: 25.02.0.1
Title: Temporal Estimation of Isotopic Values
Description: Estimates the temporal changes of isotopic values of bone and teeth data solely based on the renewal rate of different bones/teeth and given measurements. The package furthermore provides plotting and exporting functionalities.
Authors@R: c(
Expand All @@ -13,19 +13,13 @@ LazyData: true
ByteCompile: true
Depends: R (>= 3.5.0), Rcpp (>= 0.12.0)
Imports:
colourpicker,
ChangeR (>= 24.11.0.4),
dplyr,
ggplot2 (>= 2.2.1),
DataTools (>= 23.12.2.3),
DataTools (>= 24.10.0.2),
futile.logger,
htmltools,
jsonlite,
loo,
magrittr,
mcp,
methods,
modules,
openxlsx,
parallel,
rlang,
rstan (>= 2.18.1),
Expand All @@ -36,7 +30,7 @@ Imports:
shinyMatrix,
shinyWidgets,
shinythemes,
shinyTools (>= 24.10.0),
shinyTools (>= 25.02.0.2),
yaml
LinkingTo: StanHeaders (>= 2.18.0), rstan (>= 2.18.1), BH (>= 1.66.0), Rcpp (>= 0.12.0), RcppEigen (>= 0.3.3.3.0)
Suggests:
Expand Down
25 changes: 7 additions & 18 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ export(config)
export(defaultInputsForUI)
export(estimateIntervals)
export(estimateTimePoint)
export(exportCSV)
export(exportFilename)
export(exportJSON)
export(exportXLSX)
export(extractIndividuals)
export(extractModelOutputs)
export(extractSavedModels)
export(getEntry)
export(getExampleDataMatrix)
export(getExampleIsotopeVals)
export(getHelp)
export(getSeed)
export(getShiftTime)
export(getSiteStayTimes)
Expand Down Expand Up @@ -45,6 +40,8 @@ import(methods)
import(rstantools)
import(shiny)
import(shinythemes)
importFrom(ChangeR,changePointsServer)
importFrom(ChangeR,changePointsUI)
importFrom(DataTools,checkAnyNonNumericColumns)
importFrom(DataTools,downloadModelServer)
importFrom(DataTools,downloadModelUI)
Expand All @@ -54,7 +51,7 @@ importFrom(DataTools,importOptions)
importFrom(DataTools,importServer)
importFrom(DataTools,importUI)
importFrom(DataTools,renameExistingNames)
importFrom(colourpicker,colourInput)
importFrom(dplyr,"%>%")
importFrom(dplyr,arrange)
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
Expand Down Expand Up @@ -87,23 +84,17 @@ importFrom(ggplot2,scale_x_continuous)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,sec_axis)
importFrom(ggplot2,theme)
importFrom(htmltools,save_html)
importFrom(jsonlite,toJSON)
importFrom(loo,loo)
importFrom(loo,loo_compare)
importFrom(loo,waic)
importFrom(magrittr,"%>%")
importFrom(mcp,mcp)
importFrom(openxlsx,write.xlsx)
importFrom(parallel,detectCores)
importFrom(rlang,.data)
importFrom(rstan,extract)
importFrom(rstan,sampling)
importFrom(shinyTools,addCustomPointsToGGplot)
importFrom(shinyTools,calculateRescalingFactors)
importFrom(shinyTools,customPointsServer)
importFrom(shinyTools,customPointsUI)
importFrom(shinyTools,dataExportButton)
importFrom(shinyTools,dataExportServer)
importFrom(shinyTools,extractTitle)
importFrom(shinyTools,formatLegendOfGGplot)
importFrom(shinyTools,formatPointsOfGGplot)
importFrom(shinyTools,formatScalesOfGGplot)
importFrom(shinyTools,formatTitlesOfGGplot)
Expand All @@ -117,6 +108,7 @@ importFrom(shinyTools,plotRangesServer)
importFrom(shinyTools,plotRangesUI)
importFrom(shinyTools,plotTitlesServer)
importFrom(shinyTools,plotTitlesUI)
importFrom(shinyTools,setLegendThemeOfGGplot)
importFrom(shinyTools,shinyTryCatch)
importFrom(shinyWidgets,pickerInput)
importFrom(shinyWidgets,updatePickerInput)
Expand All @@ -125,16 +117,13 @@ importFrom(shinyjs,alert)
importFrom(shinyjs,enable)
importFrom(shinyjs,runjs)
importFrom(stats,approx)
importFrom(stats,as.formula)
importFrom(stats,dnorm)
importFrom(stats,lm)
importFrom(stats,median)
importFrom(stats,na.omit)
importFrom(stats,quantile)
importFrom(stats,sd)
importFrom(utils,combn)
importFrom(utils,read.csv)
importFrom(utils,write.csv)
importFrom(utils,write.table)
importFrom(yaml,read_yaml)
useDynLib(OsteoBioR, .registration = TRUE)
13 changes: 13 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# OsteoBioR 25.02.0

## New Features
- option to add custom points to a plot
- option to use custom legend labels for the plot (#69)
- new logos and links in header

# OsteoBioR 24.11.0

## Updates
- integration of modules from _ChangeR_ package for break-point detection (#72)
- option to set the "x" and "y" columns for mcp modelling

# OsteoBioR 24.10.0

## Updates
Expand Down
20 changes: 12 additions & 8 deletions R/01-plotFormatting.R
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
getStyleForIndividuals <- function(pointStyleList, input) {
# pointStyleList are reactive values -> lapply over the names and not(!) the list itself
style <- lapply(names(pointStyleList), function(x) {pointStyleList[[x]][input]}) %>%
style <- lapply(names(pointStyleList), function(individual) {pointStyleList[[individual]][input]}) %>%
unlist()
names(style) <- names(pointStyleList)

style
}

getDefaultPointFormatForModels <- function(pointStyleList, modelNames) {
# Get the default point format for models
#
# @param pointStyleList list of point styles for each model
# @param modelNames names of the models
# @param isFullReset if TRUE, all point styles are reset to the default values
getDefaultPointFormatForModels <- function(pointStyleList, modelNames, isFullReset = FALSE) {
# default colours
defaultColours <- ggplot2::scale_color_discrete()$palette(n = length(modelNames))
names(defaultColours) <- modelNames

# setup lists with default values for style specs
for (i in modelNames) {
if (is.null(pointStyleList[[i]]))
if (is.null(pointStyleList[[i]]) || isFullReset) {
pointStyleList[[i]] <- config()[["defaultPointStyle"]][["dataPoints"]]
# use default colour per model
pointStyleList[[i]]["color"] <- defaultColours[i]
# use default colour per model
pointStyleList[[i]]["color"] <- defaultColours[i]
}
}

return(pointStyleList)
}

getDefaultTextFormat <- function() {
list(legendTitle = config()[["defaultIntervalTimePlotTitle"]],
legendText = config()[["defaultIntervalTimePlotText"]],
plotTitle = config()[["defaultIntervalTimePlotTitle"]],
list(plotTitle = config()[["defaultIntervalTimePlotTitle"]],
xAxisTitle = config()[["defaultIntervalTimePlotTitle"]],
yAxisTitle = config()[["defaultIntervalTimePlotTitle"]],
yAxisTitle2 = config()[["defaultIntervalTimePlotTitle"]],
Expand Down
Loading