Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
a3ece63
update stan and plot
lel4011 Jan 28, 2026
d54417a
fix unit test
lel4011 Mar 3, 2026
20fed92
limit prec_sd to one parameter for both modes
stemangiola Mar 31, 2026
1c450b3
simplify stan code
stemangiola Mar 31, 2026
fc2aa1a
prec_sd with sd of 1
stemangiola Mar 31, 2026
40dfc23
normalise all alphas including intercept
stemangiola Mar 31, 2026
1e13573
update model fitting to 1 prec_sd
stemangiola Mar 31, 2026
9e1ec96
update plot to accept intercept only model
stemangiola Mar 31, 2026
2f95cdd
add unit test for plotting intercept-only fit
stemangiola Mar 31, 2026
a5498b7
update docs
stemangiola Mar 31, 2026
814dcf8
drop prec_sd_2 from stan generation
stemangiola Mar 31, 2026
3570e02
update NAMESPACE
stemangiola Mar 31, 2026
e51de8a
Refactor model fitting and plotting to use new parameter structure fo…
stemangiola Mar 31, 2026
6a9fd3c
Enhance model fitting by introducing conditional initialization for i…
stemangiola Mar 31, 2026
2c0e749
Update documentation for plotting functions and residuals calculation…
stemangiola Mar 31, 2026
57a3d8a
Remove hyper priors from the Stan model for multi beta-binomial regre…
stemangiola Mar 31, 2026
78313bc
Refactor Stan model parameters for mean-variability regression by con…
stemangiola Mar 31, 2026
57a0b1e
Enhance plotting functionality by introducing a new `plot_scatterplot…
stemangiola Mar 31, 2026
2e66340
Enhance test coverage for plotting functions by updating significance…
stemangiola Mar 31, 2026
1240b63
Refactor plot_2D_intervals function to replace "unadjusted" terminolo…
stemangiola Mar 31, 2026
80c69e0
Add variability to composition mapping functionality
stemangiola Mar 31, 2026
53d543d
Add factor argument to plotting functions and implement subsetting by…
stemangiola Apr 3, 2026
2c83149
Refactor plotting functions to use new naming conventions and enhance…
stemangiola Apr 3, 2026
47981a8
Enhance variability to composition mapping functionality
stemangiola Apr 5, 2026
13ae3f1
Enhance Stan model integration and update plotting functions
stemangiola Apr 7, 2026
01adf1e
Refactor tests for parameter incorporation in Stan models
stemangiola Apr 7, 2026
a178f39
Refactor sccomp_estimate and sccomp_remove_outliers for improved para…
stemangiola Apr 7, 2026
52a459b
Refactor file deletion logic in sccomp_estimate for improved error ha…
stemangiola Apr 7, 2026
4d6d429
Update version to 2.1.31 and refine alpha normalization handling
stemangiola Apr 7, 2026
215c681
Enhance statistical summarization in draws_to_statistics function
stemangiola Apr 7, 2026
8ab8957
update docs
stemangiola Apr 7, 2026
5cf93ae
Refactor parameter incorporation functions for improved flexibility
stemangiola Apr 7, 2026
8a48453
Refactor parameter naming for consistency in incorporation functions
stemangiola Apr 7, 2026
8983354
Refactor parameter loading in incorporation functions for simplification
stemangiola Apr 7, 2026
64f095c
streamline the contrast calculation
stemangiola Apr 8, 2026
05a9d10
Add function to handle missing contrast names in mutate_from_expr_list
stemangiola Apr 8, 2026
9985687
Update variability contrast draws handling to accommodate fewer columns
stemangiola Apr 8, 2026
76b92d6
Refactor draws_to_tibble functions for improved data handling
stemangiola Apr 8, 2026
7619335
Remove unnecessary arrangement steps in draws_to_tibble functions for…
stemangiola Apr 8, 2026
80d4459
fix parameter incorporation logic in fit object function
stemangiola Apr 8, 2026
58087af
Refactor initialization logic in fit_model function for improved clar…
stemangiola Apr 8, 2026
e39c86d
Add NULL check for fit attribute in incorporate_parameters_into_sccom…
Copilot Apr 8, 2026
96fafec
Remove deprecated scatterplot function and its documentation from plot.R
stemangiola Apr 8, 2026
49e590b
Address review comments: imports, filter .env$, cat->message, !!.cell…
Copilot Apr 9, 2026
66226bd
Use !!factor instead of .env$factor in subset_results_by_factor filter
Copilot Apr 9, 2026
d995f4c
Merge branch 'improvements-stefano' of https://github.com/MangiolaLab…
stemangiola Apr 10, 2026
3f85c28
Refactor Stan model parameters and likelihood calculations for improv…
stemangiola Apr 13, 2026
733a949
Update Stan model to replace Student's t distribution with Normal dis…
stemangiola Apr 13, 2026
25ff71d
Add precision parameters to incorporate_parameters_into_sccomp_object…
stemangiola May 11, 2026
c3e0a0b
Bug fix
stemangiola May 11, 2026
a529921
Add ggside package support and new omit_ci parameter for interval plots
stemangiola May 11, 2026
b7a76cd
Merge pull request #275 from MangiolaLaboratory/improve-2d-plot
stemangiola May 11, 2026
f07b2b2
Modify sccomp_estimate function parameters
stemangiola May 11, 2026
a938c42
Update prior_overdispersion_mean_association parameters in sccomp_est…
stemangiola May 11, 2026
046c14e
Refactor precision parameters in glm_multi_beta_binomial Stan model
stemangiola May 11, 2026
9d160b3
document
stemangiola May 11, 2026
9746889
Enhance documentation for prior_overdispersion_mean_association param…
stemangiola May 11, 2026
f2d97ce
fix normalisation if I don't have association
stemangiola May 11, 2026
8557700
Merge pull request #276 from MangiolaLaboratory/refactor_stan_associa…
stemangiola May 15, 2026
ff3a94a
allow for up to 4 random effect, in perspective of allowing spline , …
stemangiola May 16, 2026
0799b2d
Enhance sccomp functions to support reproducibility and improve data …
stemangiola May 16, 2026
f130eee
Refactor glm_multi_beta_binomial_generate_data Stan model to modulari…
stemangiola May 16, 2026
b72e378
Add debug print statement for y values in glm_multi_beta_binomial Sta…
stemangiola May 16, 2026
d5c4445
Remove debug print statement for y values in glm_multi_beta_binomial …
stemangiola May 16, 2026
104c0dc
Update scatterplot and boxplot functions to use 'linewidth' and 'medi…
stemangiola May 17, 2026
a06e033
Implement random effect draws extraction and enhance contrast handlin…
stemangiola May 17, 2026
80aa801
Refactors the `incorporate_parameters_into_fit_object` and `incorpora…
stemangiola May 17, 2026
21c9ae8
Merge pull request #277 from MangiolaLaboratory/allow-N-random-effects
stemangiola May 17, 2026
3201197
This commit updates the package version to 2.1.33 and introduces func…
stemangiola May 19, 2026
7ef21ec
Initial plan: resolve merge conflicts between improvements-stefano an…
Copilot Jul 14, 2026
b305c11
Resolve merge conflicts with master: keep version 2.1.32 and metadata…
Copilot Jul 14, 2026
7bdd5cf
Merge pull request #278 from MangiolaLaboratory/splines
stemangiola Jul 14, 2026
21d020b
Update NEWS
stemangiola Jul 14, 2026
37dcad6
Fix CI: splines vignette basis access and missing docs
stemangiola Jul 15, 2026
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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^run_tests\.R$
^\.github$
^LICENSE\.md$
^README\.md$
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Rplot.pdf
sccomp_draws_files
.DS_Store
docs

/.quarto/
**/*.quarto_ipynb
.Renviron
*.exe
sccomp.Rcheck*
16 changes: 9 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Package: sccomp
Type: Package
Title: Differential Composition and Variability Analysis for Single-Cell Data
Version: 2.1.31
Date: 2026-04-05
Version: 2.1.33
Date: 2026-05-11
Authors@R: c(person("Stefano", "Mangiola", email = "stefano.mangiola@unimelb.edu.au", role = c("aut", "cre")), person("Alexandra J.", "Roth-Schulze", role = "aut"), person("Marie", "Trussart", role = "aut"), person("Enrique", "Zozaya-Valdés", role = "aut"), person("Mengyao", "Ma", role = "aut"), person("Zijie", "Gao", role = "aut"), person("Alan F.", "Rubin", role = "aut"), person("Terence P.", "Speed", role = "aut"), person("Heejung", "Shim", role = "aut"), person("Anthony T.", "Papenfuss", role = "aut"))
Description: Comprehensive R package for differential composition and variability analysis in single-cell RNA sequencing, CyTOF, and microbiome data. Provides robust Bayesian modeling with outlier detection, random effects, and advanced statistical methods for cell type proportion analysis. Features include probabilistic outlier identification, mixed-effect modeling, differential variability testing, and comprehensive visualization tools. Perfect for cancer research, immunology, developmental biology, and single-cell genomics applications.
License: GPL-3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Depends:
R (>= 4.3.0),
instantiate (>= 0.2.3)
Expand All @@ -30,13 +29,16 @@ Imports:
tibble,
ggplot2,
ggrepel,
ggside,
patchwork,
forcats,
readr,
stringr,
glue,
SingleCellExperiment
SingleCellExperiment,
posterior
Suggests:
mgcv,
knitr,
rmarkdown,
BiocStyle,
Expand All @@ -48,7 +50,6 @@ Suggests:
tidyseurat,
tidySingleCellExperiment,
bayesplot,
posterior,
remotes
Additional_repositories:
https://mc-stan.org/r-packages/
Expand All @@ -59,6 +60,7 @@ VignetteBuilder: knitr
URL: https://github.com/MangiolaLaboratory/sccomp, https://mangiolalaboratory.github.io/sccomp/
BugReports: https://github.com/MangiolaLaboratory/sccomp/issues
Config/testthat/edition: 3
Config/testthat/parallel: true
Config/testthat/snapshot/parallel: true
Config/testthat/parallel: false
Config/testthat/snapshot/parallel: false
Config/testthat/snapshot/parallel/workers: 2
Config/roxygen2/version: 8.0.0
30 changes: 29 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export(plot_2D_intervals)
export(sccomp_boxplot)
export(sccomp_calculate_residuals)
export(sccomp_estimate)
export(sccomp_plot_intervals_1D)
export(sccomp_plot_intervals_2D)
export(sccomp_predict)
export(sccomp_proportional_fold_change)
export(sccomp_remove_outliers)
Expand All @@ -42,6 +44,7 @@ importFrom(dplyr,all_of)
importFrom(dplyr,any_of)
importFrom(dplyr,arrange)
importFrom(dplyr,as_tibble)
importFrom(dplyr,bind_rows)
importFrom(dplyr,c_across)
importFrom(dplyr,count)
importFrom(dplyr,cummean)
Expand All @@ -62,24 +65,44 @@ importFrom(dplyr,rename)
importFrom(dplyr,row_number)
importFrom(dplyr,rowwise)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(dplyr,summarise)
importFrom(dplyr,where)
importFrom(dplyr,with_groups)
importFrom(forcats,fct_inorder)
importFrom(forcats,fct_relevel)
importFrom(forcats,fct_reorder)
importFrom(ggplot2,aes)
importFrom(ggplot2,annotate)
importFrom(ggplot2,element_blank)
importFrom(ggplot2,element_rect)
importFrom(ggplot2,element_text)
importFrom(ggplot2,facet_wrap)
importFrom(ggplot2,geom_blank)
importFrom(ggplot2,geom_errorbar)
importFrom(ggplot2,geom_hline)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,geom_point)
importFrom(ggplot2,geom_vline)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,guide_legend)
importFrom(ggplot2,guides)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_alpha_manual)
importFrom(ggplot2,scale_color_manual)
importFrom(ggplot2,scale_fill_manual)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_bw)
importFrom(ggplot2,xlab)
importFrom(ggplot2,ylab)
importFrom(ggrepel,geom_text_repel)
importFrom(ggside,geom_ysidedensity)
importFrom(ggside,scale_ysidex_continuous)
importFrom(ggside,theme_ggside_void)
importFrom(glue,glue)
importFrom(instantiate,stan_cmdstan_exists)
importFrom(instantiate,stan_package_compile)
importFrom(instantiate,stan_package_model)
importFrom(lifecycle,deprecate_soft)
importFrom(lifecycle,deprecate_warn)
importFrom(lifecycle,is_present)
importFrom(magrittr,"%$%")
Expand All @@ -91,6 +114,11 @@ importFrom(magrittr,not)
importFrom(magrittr,subtract)
importFrom(parallel,detectCores)
importFrom(patchwork,wrap_plots)
importFrom(posterior,as_draws_df)
importFrom(posterior,ess_bulk)
importFrom(posterior,ess_tail)
importFrom(posterior,rhat)
importFrom(posterior,summarise_draws)
importFrom(purrr,as_mapper)
importFrom(purrr,map)
importFrom(purrr,map2)
Expand Down
Loading
Loading