Skip to content

Commit

Permalink
Update BV vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgamboa committed Jan 15, 2025
1 parent 4fe157e commit fca5669
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vignettes/articles/Ravel_2011_16S_BV.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ tse <- getBenchmarkData(dat_name, dryrun = FALSE)[[1]]
tse
```

Select samples:
Select samples with low and high Nugent scores only:

```{r}
```{r select}
select_samples <- which(colData(tse)$study_condition %in% conditions)
tse_subset <- tse[, select_samples]
tse_subset
Expand All @@ -53,6 +53,8 @@ tse_subset
Agglomerate by genus:

```{r subset data}
## all(colSums(assay(tse_subset)) == colSums(assay(tse_genus)))
## the code above should be TRUE before filering
tse_genus <- agglomerateByRank(
tse_subset, rank = 'genus', na.rm = FALSE, onRankOnly = FALSE
) |>
Expand All @@ -63,9 +65,9 @@ colData(tse_genus)$study_condition <-
tse_genus
```

Samples metadata:
Sample counts per condition:

```{r}
```{r sample counts}
col_data <- as_tibble(colData(tse_genus))
col_data |>
summarise(
Expand Down

0 comments on commit fca5669

Please sign in to comment.