Skip to contents

comparpq is an extension to the {MiscMetabar} and {phyloseq} packages that provides tools for comparing phyloseq objects. The package focuses on taxonomic comparison, accuracy metrics computation, and interactive visualizations for microbiome data analysis.

Installation

You can install the development version of comparpq from GitHub with:

# install.packages("devtools")
devtools::install_github("adrientaudiere/comparpq")

Main Features

Compare phyloseq objects

  • list_phyloseq: S7 class for storing and comparing multiple phyloseq objects, with automatic detection of comparison type (REPRODUCIBILITY, ROBUSTNESS, NESTED_ROBUSTNESS, REPLICABILITY, EXPLORATION, SEPARATE_ANALYSIS)
  • compare_refseq(): Compare reference sequences between two phyloseq objects, identifying shared/unique ASVs by name and by DNA sequence content
  • filter_common_lpq(): Filter phyloseq objects to keep only shared samples and/or taxa
  • apply_to_lpq(): Apply any function to all phyloseq objects in a list_phyloseq

Statistical Analysis

Taxonomic Comparison and Accuracy Metrics

Visualization Tools

Data Manipulation

Quick Start

library(comparpq)

# Load example data
data("Glom_otu")

# Create an interactive bubble plot
bubbles_pq(Glom_otu, 
          rank_color = "Family", 
          min_nb_seq = 1000)

# For taxonomic comparison analysis with mock communities:
# 1. First prepare your data with fake taxa
physeq_with_fake <- add_shuffle_seq_pq(Glom_otu, nb_seq_fake = 50)

# 2. Perform taxonomic assignment (using your preferred method)
# 3. Compare results against known taxonomy
# tc_metrics_mock(physeq_with_fake, ranks_df, true_values_df)

Documentation

  • Package website: https://adrientaudiere.github.io/comparpq/
  • Getting started vignette: See the package vignettes for comprehensive examples
  • Function documentation: All functions have detailed help pages accessible via ?function_name

This package extends the functionality of: - {MiscMetabar}: Miscellaneous functions for metabarcoding analysis - {phyloseq}: Handling and analysis of high-throughput microbiome census data

Citation

If you use comparpq in your research, please cite:

citation("comparpq")

License

GPL (>= 3)

Issues and Contributions

Please report bugs and feature requests at https://github.com/adrientaudiere/comparpq/issues

Author

Adrien Taudière (aut, cre, cph)
ORCID: 0000-0003-1088-1182
Email: