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

fix methodology citations #360

Merged
merged 4 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: serocalculator
Title: Estimating Infection Rates from Serological Data
Version: 1.3.0.9011
Version: 1.3.0.9012
Authors@R: c(
person("Peter", "Teunis", , "[email protected]", role = c("aut", "cph"),
comment = "Author of the method and original code."),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## New features

* Fixed citations in `methodology.qmd` article (#360)

* Added outline to pkgdown website (#353)

* Added verbose option for `summary.seroincidence()` and
Expand Down
1 change: 1 addition & 0 deletions vignettes/methodology.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
%\VignetteIndexEntry{Methodology}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
bibliography: references.bib
---

{{< include articles/_macros.qmd >}}
Expand Down Expand Up @@ -189,22 +190,22 @@
library(dplyr)
# Import longitudinal antibody parameters from OSF
curves <-
"https://osf.io/download/rtw5k/" %>%

Check warning on line 193 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=193,col=36,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
load_curve_params() %>%

Check warning on line 194 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=194,col=23,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
filter(iter < 50)

# Import cross-sectional data from OSF and rename required variables:
xs_data <-
"https://osf.io/download//n6cp3/" %>%

Check warning on line 199 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=199,col=37,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
load_pop_data()

noise <- url("https://osf.io/download//hqy4v/") %>% readRDS()

Check warning on line 202 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=202,col=49,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
```

```{r}
#| fig-cap: "Example log(likelihood) curves"
#| label: fig-loglik
lik_HlyE_IgA <- graph_loglik(

Check warning on line 208 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=208,col=1,[object_name_linter] Variable and function name style should match snake_case or symbols.
pop_data = xs_data,
curve_params = curves,
noise_params = noise,
Expand All @@ -212,7 +213,7 @@
log_x = TRUE
)

lik_HlyE_IgG <- graph_loglik(

Check warning on line 216 in vignettes/methodology.qmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/methodology.qmd,line=216,col=1,[object_name_linter] Variable and function name style should match snake_case or symbols.
previous_plot = lik_HlyE_IgA,
pop_data = xs_data,
curve_params = curves,
Expand Down
Loading