Skip to content

Commit

Permalink
Merge pull request #94 from adrientaudiere/dev
Browse files Browse the repository at this point in the history
docs: Site for v0.9.2
  • Loading branch information
adrientaudiere authored Jul 1, 2024
2 parents 0af6a69 + 3f09139 commit 158751c
Show file tree
Hide file tree
Showing 168 changed files with 435 additions and 221 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 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:
release:
types: [published]
# release:
# types: [published]

name: pkgdown

Expand Down
15 changes: 8 additions & 7 deletions R/dada_phyloseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -2858,12 +2858,12 @@ rarefy_sample_count_by_modality <-
samp_to_keep <- c()
for (modality in levels(mod)) {
vec_samp_mod <- c(as.numeric(grep(modality, mod)))

# To bypass the pb of vector of length 1
# We build a vector of two equal values and we will take only one
# We build a vector of two equal values and we will take only one
# It is cause by range base behavior:
# 'If x has length 1, is numeric (in the sense of is.numeric) and x >= 1, sampling via sample takes place from 1:x.'
if(length(vec_samp_mod)==1){
if (length(vec_samp_mod) == 1) {
vec_samp_mod <- c(vec_samp_mod, vec_samp_mod)
}
samp_to_keep <-
Expand All @@ -2878,17 +2878,18 @@ rarefy_sample_count_by_modality <-
}
new_physeq <-
subset_samples_pq(physeq, 1:nsamples(physeq) %in% samp_to_keep)

if (length(table(new_physeq@sam_data[[fact]])) != length(table(mod))) {
warning(
paste0(
"The number of final levels (sam_data of the output phyloseq
object) is not equal to the inital (sam_data of the input
phyloseq object) number of levels in the factor: '",
fact , "'"
fact, "'"
)
)}

)
}

return(new_physeq)
}
################################################################################
1 change: 1 addition & 0 deletions R/plot_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -3539,6 +3539,7 @@ tax_bar_pq <-
#' @param log10trans (logical, default TRUE) If TRUE,
#' the number of sequences (or ASV if nb_seq = FALSE) is log10
#' transformed.
#' @param tax_level The taxonomic level to fill ridges
#' @param ... Other params passed on to [ggridges::geom_density_ridges()]
#'
#' @return A \code{\link{ggplot}}2 plot with bar representing the number of sequence en each
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions docs/articles/MiscMetabar.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions docs/articles/Reclustering.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/articles/Rules.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 158751c

Please sign in to comment.