MicrobiomeStat Tutorial
  • Track, Analyze, Visualize: Unravel Your Microbiome's Temporal Pattern with MicrobiomeStat.
  • INTRODUCTION
    • Exploring MicrobiomeStat: A Consideration for Your Research Toolkit
  • Setting Up MicrobiomeStat: Installation and Data Preparation
    • Installation Guide
    • Creating the MicrobiomeStat Data Object
      • Building MicrobiomeStat from Matrix and Data.frame
      • Converting Data from Phyloseq into MicrobiomeStat
      • Importing Data from QIIME2 into MicrobiomeStat
      • Importing Data from BIOM into MicrobiomeStat
      • Converting SummarizedExperiment into MicrobiomeStat
      • Converting DGEList Data into MicrobiomeStat
      • Converting DESeqDataSet into MicrobiomeStat
      • Importing Data from DADA2 into MicrobiomeStat
      • Importing Data from Mothur into MicrobiomeStat
  • Single-Point Analysis
    • Introduction
    • Alpha Diversity Analysis
    • Beta Diversity Analysis
    • Feature-level Analysis
    • One-Click Reports Generation
  • Paired Samples Analysis
    • Introduction
    • Alpha Diversity Analysis
    • Beta Diversity Analysis
    • Feature-level Analysis
    • One-Click Reports Generation
  • Longitudinal Analysis
    • Introduction
    • Alpha Diversity Analysis
    • Beta Diversity Analysis
    • Feature-level Analysis
    • One-Click Reports Generation
  • Data Manipulation and Transformation
    • Data Summary
    • Data Aggregation
    • Data Normalization
    • Data Filtering
    • Data Validation
    • Data Combination
    • Metadata Management
    • Color Palette
  • Frequently Asked Questions (FAQ)
    • General FAQs
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Setting Up MicrobiomeStat: Installation and Data Preparation
  2. Creating the MicrobiomeStat Data Object

Converting SummarizedExperiment into MicrobiomeStat

A step-by-step guide on converting SummarizedExperiment data format for compatibility with MicrobiomeStat.

PreviousImporting Data from BIOM into MicrobiomeStatNextConverting DGEList Data into MicrobiomeStat

Last updated 1 year ago

Was this helpful?

The Bioconductor package SummarizedExperiment provides a convenient representation of experimental data. MicrobiomeStat provides a straightforward method for converting SummarizedExperiment objects.

# Check if the 'airway' package is installed
if (!requireNamespace("airway", quietly = TRUE)) {
  # If not installed, install 'airway'
  BiocManager::install("airway")
}

# Load necessary libraries
library(airway)

# Use the provided 'airway' dataset as an example
data(airway)

# Convert the SummarizedExperiment object 'airway' into a MicrobiomeStat data object
airway_obj <- mStat_convert_SummarizedExperiment_to_data_obj(airway)

The function mStat_convert_SummarizedExperiment_to_data_obj requires:

  • se.obj: A SummarizedExperiment object for conversion.

Post conversion, the data is organized into a MicrobiomeStat data object with the following components:

  • feature.tab: A matrix derived from assay data.

  • feature.ann: A matrix consisting of rowData or feature annotations. Only the features present in the assay data are retained.

  • meta.dat: A data frame containing colData or sample metadata.

For efficient analysis, features with an aggregate count of zero in the assay data are excluded during the conversion process.

Structure of the airway_obj data object, converted from the airway SummarizedExperiment dataset. The visualization showcases the primary components of the MicrobiomeStat data object, detailing its matrices and data frames derived from the original dataset.