Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
adrientaudiere committed Feb 7, 2024
1 parent 4766876 commit 93d50b6
Show file tree
Hide file tree
Showing 50 changed files with 744 additions and 591 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
git clone https://github.com/torognes/swarm.git \
&& cd swarm/ \
&& make
sudo cp ../swarm /usr/bin/swarm
- name: Install cutadapt
run: |
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- Add functions `get_funguild_db()` and `funguild_assign()` from the [FUNGuildR](https://github.com/brendanf/FUNGuildR/) package into MiscMetabar to decrease package dependencies
- Remove all dependencies from packages not available on CRAN or Bioconductor. Improve code using `goodpractice::gp`() and `devtools::check()` function
- Add messages in various cases (NA in samples data, low number of sequences in samples, low number of sequences by taxa) when using `verify_pq()` with args `verbose=TRUE`
- Fix a bug in `mutitax_bar_pq()` when using `nb_seq = FALSE`
- Fix a bug in `multitax_bar_pq()` when using `nb_seq = FALSE`

# MiscMetabar 0.52

Expand Down
10 changes: 10 additions & 0 deletions R/beta_div_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,16 @@ multipatt_pq <- function(physeq,
#' ), color = "darkgrey") +
#' geom_point()
#'
#' res_time <- ancombc_pq(
#' subset_taxa_pq(
#' data_fungi_sp_known,
#' taxa_sums(data_fungi_sp_known) > 5000
#' ),
#' fact = "Time",
#' levels_fact = c("0", "15"),
#' tax_level = "Family",
#' verbose = TRUE
#' )
#' @author Adrien Taudière
#' @details
#' This function is mainly a wrapper of the work of others.
Expand Down
2 changes: 1 addition & 1 deletion R/blast.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#'
#' @examples
#' \dontrun{
#' # data(data_fungi)
#'
#' blastpath <- "...YOUR_PATH_TO_BLAST..."
#' blast_to_phyloseq(data_fungi,
#' seq2search = system.file("extdata", "ex.fasta",
Expand Down
2 changes: 1 addition & 1 deletion R/controls.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ dist_pos_control <- function(physeq, samples_names, method = "bray") {
#' @export
#'
#' @examples
#' # data(data_fungi)
#'
#'
#' subset_taxa_tax_control(data_fungi,
#' as.numeric(data_fungi@otu_table[, 300]),
Expand Down
Loading

0 comments on commit 93d50b6

Please sign in to comment.