Skip to content

Commit 7ee78e0

Browse files
committed
Deploying to gh-pages from @ ea1d0e5 🚀
1 parent 4b30ca5 commit 7ee78e0

35 files changed

+271
-164
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE-text.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/compare-experiments.html

Lines changed: 57 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/compare-experiments.md

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ We will start by loading the relevant packages.
2929
``` r
3030
library(tidyverse)
3131
library(tinyvamp)
32+
library(dplyr)
33+
filter <- dplyr::filter
3234
```
3335

3436
Now let’s load the relevant data and inspect it. This dataset contains
@@ -161,7 +163,7 @@ X <- protocol_df %>%
161163
qq = ifelse(Protocol == "Q" & !is.na(Protocol), 1, 0),
162164
ww = ifelse(Protocol == "W" & !is.na(Protocol), 1, 0)) %>%
163165
select(hh, qq, ww) %>%
164-
as.matrix
166+
as.matrix() # convert to numeric matrix required by tinyvamp
165167
```
166168

167169
TODO(AW) can we remove the as.matrix?
@@ -323,7 +325,56 @@ full_model$varying %>% as_tibble
323325
#> # ℹ 57 more rows
324326
```
325327

326-
TODO(picture!)
328+
``` r
329+
library(ggplot2)
330+
331+
beta_est <- full_model$varying %>% filter(param == "B")
332+
beta_est
333+
#> value param k j
334+
#> 110 -1.61248573 B 1 1
335+
#> 41 -0.17640279 B 1 2
336+
#> 71 3.37728585 B 1 3
337+
#> 101 -0.18784085 B 1 4
338+
#> 13 2.36839888 B 1 5
339+
#> 16 -2.62182196 B 1 6
340+
#> 19 4.16506177 B 1 7
341+
#> 22 2.48598212 B 1 8
342+
#> 25 1.53517280 B 1 9
343+
#> 28 0.06672387 B 2 1
344+
#> 51 -0.38971288 B 2 2
345+
#> 81 -0.89829964 B 2 3
346+
#> 11 0.17631021 B 2 4
347+
#> 14 -2.23142349 B 2 5
348+
#> 17 3.34467253 B 2 6
349+
#> 20 -0.28219752 B 2 7
350+
#> 23 0.25894574 B 2 8
351+
#> 26 -0.63032524 B 2 9
352+
#> 31 1.53669302 B 3 1
353+
#> 61 1.40203711 B 3 2
354+
#> 91 0.66859539 B 3 3
355+
#> 12 0.09250658 B 3 4
356+
#> 15 -0.25670609 B 3 5
357+
#> 18 3.22037528 B 3 6
358+
#> 21 0.08328595 B 3 7
359+
#> 24 -0.00224524 B 3 8
360+
#> 27 -0.05501484 B 3 9
361+
# beta_df <- as_tibble(beta_est) %>%
362+
# mutate(protocol = c("H vs flow", "Q vs H", "W vs H")) %>%
363+
# pivot_longer(-protocol, names_to = "taxon", values_to = "beta") %>%
364+
# mutate(effect = exp(beta))
365+
#
366+
ggplot(beta_est, aes(x = j, y = value, color = k)) +
367+
geom_point() +
368+
geom_hline(yintercept = 1, linetype = "dashed") +
369+
coord_flip() +
370+
labs(
371+
y = "Multiplicative detection efficiency",
372+
x = "Taxon",
373+
title = "Estimated detection efficiencies by protocol"
374+
)
375+
```
376+
377+
![](compare-experiments_files/figure-html/unnamed-chunk-19-1.png)
327378

328379
Now, to test… we need to tell tinyvamp what the null hypothesis is. We
329380
do this as follows:
45.8 KB
Loading

articles/dilution-series.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authors.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

authors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Source:
1212
[`DESCRIPTION`](https://github.com/statdivlab/tinyvamp/blob/main/DESCRIPTION)
1313

1414
Clausen D, Willis A (2026). *tinyvamp: Modeling complex measurement
15-
error in microbiome experiments*. R package version 0.0.7.0,
15+
error in microbiome experiments*. R package version 1.0.0.0,
1616
<https://github.com/statdivlab/tinyvamp>.
1717

1818
@Manual{,
1919
title = {tinyvamp: Modeling complex measurement error in microbiome experiments},
2020
author = {David Clausen and Amy Willis},
2121
year = {2026},
22-
note = {R package version 0.0.7.0},
22+
note = {R package version 1.0.0.0},
2323
url = {https://github.com/statdivlab/tinyvamp},
2424
}

0 commit comments

Comments
 (0)