Skip to content

Commit

Permalink
update arguments and parameters in the makeSignatures calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgamboa committed Jun 28, 2024
1 parent d8f8cf2 commit 05c37dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions vignettes/articles/enrichment_dbbact.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ bp <- importBugphyzz(v = 0.5) |>
})
bpSigs_g <- map(bp, ~ {
makeSignatures(
dat = .x, tax_id_type = "NCBI_ID", tax_level = "genus",
min_size = 10
dat = .x, taxIdType = "NCBI_ID", taxLevel = "genus",
minSize = 10
)
}) |>
list_flatten(name_spec = "{inner}") |>
discard(is.null)
bpSigs_s <- map(bp, ~ {
makeSignatures(
dat = .x, tax_id_type = "NCBI_ID", tax_level = "species",
min_size = 10
dat = .x, taxIdType = "NCBI_ID", taxLevel = "species",
minSize = 10
)
}) |>
list_flatten(name_spec = "{inner}") |>
Expand Down
2 changes: 1 addition & 1 deletion vignettes/articles/nychanes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Create signatures at the genus level:

```{r}
gn_sigs <- makeSignatures(
dat = aer, tax_id_type = 'Taxon_name', tax_level = 'genus'
dat = aer, taxIdType = 'Taxon_name', taxLevel = 'genus'
) |>
list_flatten(name_spec = "{inner") |>
discard(is.null)
Expand Down
6 changes: 3 additions & 3 deletions vignettes/articles/subgingival_plaque.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bp <- importBugphyzz(v = 0.5) |>
})
aer <- bp$aerophilicity
gn_sigs <- makeSignatures(
dat = aer, tax_id_type = 'Taxon_name', tax_level = 'genus'
dat = aer, taxIdType = 'Taxon_name', taxLevel = 'genus'
)
## Only one genus is missing (TG5), which is ambiguous in the ncbi taxonomy
mean(as.integer(
Expand All @@ -85,7 +85,7 @@ Without ASR some annotations are missing:

```{r}
gn_sigs_noasr <- makeSignatures(
dat = aer, tax_id_type = 'Taxon_name', tax_level = 'genus',
dat = aer, taxIdType = 'Taxon_name', taxLevel = 'genus',
evidence = c("exp", "igc", "tas", "nas", "tax")
)
mean(as.integer(
Expand Down Expand Up @@ -229,7 +229,7 @@ myDataTable(ora_noasr)
```{r, warning=FALSE}
bpSigs_g <- map(
bp, ~ {
makeSignatures(.x, tax_id_type = "NCBI_ID", tax_level = "genus")
makeSignatures(.x, taxIdType = "NCBI_ID", taxLevel = "genus")
}) |>
list_flatten(name_spec = "{inner}") |>
discard(is.null)
Expand Down

0 comments on commit 05c37dd

Please sign in to comment.