Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a7aba85
Merge pull request #99 from germs-lab/release/v2.0.0
jibarozzo Apr 25, 2026
d63592f
Merge branch 'develop' into release/v2.0.1
jibarozzo Apr 27, 2026
25f1ff9
fix: Update vignette and docs for BRCore 2.0.2 CRAN submission
jibarozzo Apr 28, 2026
d0bc472
chore: remove parallel dependencies and clean up docs for CRAN v2.0.2
jibarozzo Apr 28, 2026
6b3106d
docs: update cran-comments.md for v2.0.2 resubmission
jibarozzo Apr 28, 2026
4871eeb
Increment version number to 2.0.2
jibarozzo Apr 28, 2026
1daeec4
docs: expand package description with methodology references and cita…
jibarozzo Apr 29, 2026
2de5f48
docs: improve documentation formatting and examples across neutral mo…
jibarozzo Apr 29, 2026
a12cd00
docs: improve examples, add `seealso` links, and remove \donttest wra…
jibarozzo Apr 30, 2026
a5c72fa
chore: Remove parallel computing utilities from pkgdown reference and…
jibarozzo Apr 30, 2026
e365934
docs: Add `switchgrass_core` precomputed dataset and refactor example…
jibarozzo Apr 30, 2026
b69fa19
docs: update `seealso` links and remove global warning suppression in…
jibarozzo Apr 30, 2026
b1651e5
fix: update DOI links to use canonical doi: format in docs and DESCRI…
jibarozzo Apr 30, 2026
12df251
docs: add switchgrass_core to pkgdown reference
jibarozzo Apr 30, 2026
00ae06f
chore: update CRAN comments for v2.0.3 resubmission and add Quarto to…
jibarozzo Apr 30, 2026
178cd53
Increment version number to 2.0.3
jibarozzo Apr 30, 2026
fcc3a09
fix: Suppress warnings from `dnorm` calls in `sncm.fit` likelihood fu…
jibarozzo Apr 30, 2026
1b68cf3
docs: Add `scnm.fit()` to README function list
jibarozzo Apr 30, 2026
ac4b1bc
Update release notes
jibarozzo Apr 30, 2026
7171fae
Increment version number to 2.0.4
jibarozzo Apr 30, 2026
cbb55aa
fix: typo `scnm.fit` → `sncm.fit` and use HTTPS for pkgdown URL
jibarozzo Apr 30, 2026
054b685
fix: Quote 'BRCore' in DESCRIPTION and fix README badge links
jibarozzo May 5, 2026
7d803ef
Increment version number to 2.0.4.9000
jibarozzo May 5, 2026
842b8ce
Merge branch 'main' into release/v2.0.4
jibarozzo May 5, 2026
40d79e4
Merge pull request #103 from germs-lab/release/v2.0.4
jibarozzo May 6, 2026
46eff6f
refactor: Refine plot axis styling and format y-axis as percent
jibarozzo May 18, 2026
5ba7a7c
fix: Add biocViews field to allow installation of Bioconductor depend…
jibarozzo May 18, 2026
b275861
refactor: Remove redundant `data("bcse")` calls from examples and reb…
jibarozzo May 18, 2026
95a42db
refactor: replace `suppressWarnings` with targeted warning capture in…
jibarozzo May 18, 2026
10727e6
docs: format code and remove `num_iter` param in README examples
jibarozzo May 18, 2026
46ef2ba
docs: update vignette output
jibarozzo May 18, 2026
d8d5856
style: Remove trailing whitespace and blank lines in vignette R script
jibarozzo May 18, 2026
3d3c0de
Merge pull request #106 from germs-lab/patch/07_v2.0.4_revisions2
jibarozzo May 18, 2026
3c345fd
Increment version number to 2.0.5
jibarozzo May 18, 2026
02afb7b
docs: update cran-comments and NEWS for v2.0.5.
jibarozzo May 18, 2026
a43bc71
docs: update cran-comments, README and NEWS for v2.0.5.
jibarozzo May 18, 2026
21a14fa
Increment version number to 2.0.6
jibarozzo May 19, 2026
5f0c0df
chore: clean up GitHub Actions workflow formatting. Added new R depen…
jibarozzo May 19, 2026
801afef
chore: guard CI data regeneration behind package availability check
jibarozzo May 19, 2026
68e9033
Merge branch 'docs/test_workflow_fixes' into release/v2.0.7
jibarozzo May 19, 2026
ad7bd4d
docs:
jibarozzo May 19, 2026
159ef53
Increment version number to 2.0.7
jibarozzo May 19, 2026
b25f181
Merge branch 'main' into release/v2.0.7
jibarozzo May 20, 2026
6a43404
Increment version number to 2.0.7.9000
jibarozzo May 20, 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
5 changes: 3 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ jobs:
extra-packages: |
any::rcmdcheck
any::tidyverse
any::devtools
needs: check

- name: Check package
uses: r-lib/actions/check-r-package@v2
with:
error-on: "\"error\""
error-on: '"error"'
upload-snapshots: true
build_args: "c(\"--no-manual\",\"--compact-vignettes=gs+qpdf\")"
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
- develop
release:
types: [ published ]
types: [published]
workflow_dispatch:

name: pkgdown.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
issue_comment:
types: [ created ]
types: [created]

name: pr-commands.yaml

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/render-rmarkdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches: [ main ]
branches: [main]
release:
types: [ published ]
types: [published]
workflow_dispatch:

name: render-rmarkdown.yaml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:

pull_request:
branches:
- main
Expand Down
25 changes: 12 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: BRCore
Title: Unified Framework for Identification and Ecological Interpretation of Microbial Data from Bioenergy Research Centers
Version: 2.0.4.9000
Title: A Unified Framework for Identification and Ecological Interpretation of Microbial Data from Bioenergy Research Centers
Version: 2.0.7.9000
Authors@R: c(
person("Bolívar", "Aponte Rolón",
email = "bolaponte@pm.me",
Expand Down Expand Up @@ -28,11 +28,9 @@ Authors@R: c(
role = c("cph", "fnd"))
)
Description: A unified framework for identification and ecological interpretation of core microbiomes across time and space, enhancing robustness and reproducibility in microbiome data analysis. 'BRCore' implements the workflow proposed by Shade and Stopnisek (2019) and incorporates additional rarefaction steps. The proposed workflow aims to identify persistent microbiomes using abundance-occupancy distributions and neutral community model fitting. For more details on abundance-occupancy distributions see Shade A, Stopnisek N (2019) <doi:10.1016/j.mib.2019.09.008>, for neutral models, see Sloan et al. (2006) <doi:10.1111/j.1462-2920.2005.00956.x> and Burns et al. (2015) <doi:10.1038/ismej.2015.142>.
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Depends:
R (>= 4.4)
biocViews:
Imports:
cli (>= 3.6.5),
dplyr (>= 1.1.4),
Expand All @@ -42,24 +40,25 @@ Imports:
Hmisc (>= 5.2.4),
magrittr (>= 2.0.4),
minpack.lm (>= 1.2.4),
phyloseq (>= 1.54.0),
phyloseq,
rlang (>= 1.1.6),
scales (>= 1.4.0),
stats4 (>= 4.5.2),
stats4,
tibble (>= 3.3.0),
tidyr (>= 1.3.1),
vegan (>= 2.7.2)
Suggests:
devtools (>= 2.4.5),
here (>= 1.0.1),
knitr (>= 1.50),
rmarkdown (>= 2.30),
testthat (>= 3.2.3),
tidyverse (>= 2.0.0),
viridis (>= 0.6.5)
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Config/testthat/edition: 3
Depends:
R (>= 4.4)
LazyData: true
VignetteBuilder: knitr
URL: https://github.com/germs-lab/BRCore, https://www.germslab.org/BRCore/
Expand Down
38 changes: 32 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# BRCore (development version)
* Fixes to quote 'BRCore' in DESCRIPTION and typo fix of `sncm.fit` in _pkgdown.yaml

# BRCore 2.0.7
2026-05-19

* [a43bc71](https://github.com/germs-lab/BRCore/commit/a43bc71d779c5b1b11b1291056570c6e00124212) Typo and instructions fixes to README and DESCRIPTION files.

# BRCore 2.0.5
2026-05-18

## Bug Fixes

* Relaxed version requirements for `phyloseq` and `stats4` to improve compatibility.

* [5ba7a7c](https://github.com/germs-lab/BRCore/commit/5ba7a7c3067a2044c34aee812795dc427869eb4b) Added `biocViews` field to DESCRIPTION to allow installation of Bioconductor dependencies via `install.packages()`.
* [40d79e4](https://github.com/germs-lab/BRCore/commit/40d79e448c632f590e4e52cbf16537496b29529f) Fixes to quote 'BRCore' in DESCRIPTION and typo fix of `sncm.fit` in _pkgdown.yaml

## Refactoring

* [95a42db](https://github.com/germs-lab/BRCore/commit/95a42db482675450157ec2099a658e0ce538901c) `sncm.fit()`: replaced `suppressWarnings()` with targeted warning capture via new internal helper `.internal_warn_sncm()`.
* [46eff6f](https://github.com/germs-lab/BRCore/commit/46eff6fb691fd370e5b3723e285bb3882760d742) `plot_neutral_model()`: refined plot axis styling and formatted y-axis as percent. Resized box annotation.
* [b275861](https://github.com/germs-lab/BRCore/commit/b275861e8434204d66dc4962d10499488d738513) Removed redundant `data("bcse")` calls from examples and README vignette.

## Documentation

* [46ef2ba](https://github.com/germs-lab/BRCore/commit/46ef2ba1ebb006736f9b86bfa7b06f3adca40f49) Updated vignette output.
* [b275861](https://github.com/germs-lab/BRCore/commit/b275861e8434204d66dc4962d10499488d738513) Removed deprecated `num_iter` parameter from README examples.
* Reordered DESCRIPTION fields.

# BRCore 2.0.4
Date: 2026-04-30
2026-04-30

* Fixes to documentation:
* DOI links updated to correct format
Expand All @@ -13,20 +39,20 @@ Date: 2026-04-30
* New APA 7th edition style for references

# BRCore 2.0.2
Date: 2026-04-28
2026-04-28

* Fixes to vignette and function documentation prior to CRAN submission.
* Removed "multiple rarefaction" concept from documentation.
* Removed `parallel_helpers.R` since we have moved away from parallel implementations.
* Cleaned NAMESPACE and DESCRIPTION.

# BRCore 2.0.1
Date: 2026-04-25
2026-04-25

* Resubmission to CRAN to address auto-check issues on Debian and Windows.

# BRCore 2.0.0
Date: 2026-04-24
2026-04-24

## Breaking Changes

Expand Down Expand Up @@ -68,7 +94,7 @@ Date: 2026-04-24
@jibarozzo @Gian77

# BRCore 1.0.2
Date: 2026-02-25
2026-02-25

## Bug Fixes

Expand Down
2 changes: 0 additions & 2 deletions R/add_rarefaction_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#' library(phyloseq)
#' library(BRCore)
#'
#' data("bcse", package = "BRCore")
#'
#' # Adding metrics to a "phyloseq" object
#' bcse_metrics <- add_rarefaction_metrics(data = bcse)
#' sample_data(bcse_metrics)|>
Expand Down
2 changes: 1 addition & 1 deletion R/brcore_theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# Axes ----
axis.title = element_text(
size = base_size,
face = "bold",
face = "plain",
colour = "black"
),
axis.text = element_text(
Expand Down
3 changes: 0 additions & 3 deletions R/identify_core.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@
#' \donttest{
#' library(BRCore)
#'
#' data("switchgrass", package = "BRCore")
#' data("bcse", package = "BRCore")
#'
#' # With rarefied data
#' res <- identify_core(
#' physeq_obj = switchgrass,
Expand Down
2 changes: 1 addition & 1 deletion R/multi_rarefy.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#'
#' @examples
#' library(BRCore)
#' data("bcse", package = "BRCore")
#'
#'
#' # Example rarefaction (single iteration, single core to keep examples fast)
#' otu_table_rare <- multi_rarefy(
Expand Down
9 changes: 5 additions & 4 deletions R/plot_identified_core.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ plot_identified_core <- function(
prop_range <- max_prop - min_prop

# Dynamic y positions for labels
elbow_y <- min_prop + 0.15 * prop_range
elbow_y <- min_prop + 0.1 * prop_range
lastCall_y <- min_prop + 0.35 * prop_range

# Adjust x position for labels if too close to edges
elbow_x_offset <- ifelse(
elbow < max_rank * 0.1,
elbow < max_rank * 1.2,
elbow + max_rank * 0.02,
elbow - max_rank * 0.02
)
Expand All @@ -86,7 +86,7 @@ plot_identified_core <- function(

# Base plot
p <- ggplot(new_data, aes(x = rank_num, y = proportionBC)) +
geom_point(size = 1.5, alpha = 0.7) +
geom_point(size = 2, alpha = 0.7) +
geom_vline(
xintercept = elbow,
linetype = "dashed",
Expand Down Expand Up @@ -162,9 +162,10 @@ plot_identified_core <- function(
" OTUs)"
),
x = "Ranked OTUs",
y = "% Bray-Curtis similarity"
y = "Bray-Curtis similarity"
) +
.brcore_theme() +
scale_y_continuous(labels = scales::label_percent(accuracy = 1)) +
scale_x_continuous(breaks = seq(0, max(new_data$rank_num), by = 5))

return(list(
Expand Down
5 changes: 3 additions & 2 deletions R/plot_neutral_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ plot_neutral_model <- function(fit_result) {
parse = TRUE,
hjust = 1,
vjust = -0.75,
size = 3,
size = 4.5,
fill = "white",
alpha = 0.9,
lineheight = 1.05
Expand All @@ -214,7 +214,8 @@ plot_neutral_model <- function(fit_result) {
title = "Neutral model",
x = "Log10(mean abundance)",
y = "Occupancy"
)
) +
scale_y_continuous(labels = scales::label_percent(accuracy = 1))
# change legend shape to avoid confusion with the scatter points.
p <- p +
guides(
Expand Down
2 changes: 0 additions & 2 deletions R/plot_rarefaction_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#' library(phyloseq)
#' library(BRCore)
#'
#' data("bcse", package = "BRCore")
#'
#' # Add rarefaction metrics to the phyloseq object
#' bcse_metrics <- add_rarefaction_metrics(bcse)
#'
Expand Down
1 change: 0 additions & 1 deletion R/plot_variance_propagation.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#' library(phyloseq)
#' library(BRCore)
#' # Example comparing hill q=1 between Poplar and Switchgrass plots
#' data("bcse", package = "BRCore")
#' bcse_filt <- bcse |>
#' subset_samples(Crop %in% c("Poplar", "Switchgrass"))
#'
Expand Down
Loading
Loading