Importing Data from QIIME2 into MicrobiomeStat
This guide provides a step-by-step method for importing QIIME2 data into the MicrobiomeStat data object.
# Define paths to your QIIME2 files
# NOTE: Update these paths to point to the location of the files on your computer.
otuqza_file <- "path_to_your_directory/table.qza"
taxaqza_file <- "path_to_your_directory/taxonomy.qza"
sample_file <- "path_to_your_directory/sample-metadata.tsv"
treeqza_file <- "path_to_your_directory/tree.qza"
# Import QIIME2 data into a MicrobiomeStat data object
data.obj <- mStat_import_qiime2_as_data_obj(
otu_qza = otuqza_file,
taxa_qza = taxaqza_file,
sam_tab = sample_file,
tree_qza = treeqza_file
)
data_obj from QIIME2 to MicrobiomeStat format. Displayed paths indicate the location of QIIME2 files on a local machine. The str(data_obj) function in R reveals the organized structure of the data_obj list, detailing its various components such as feature.tab, meta.dat, feature.ann, and the phylogenetic tree. Each component houses relevant microbiome data ready for analysis using MicrobiomeStat.PreviousConverting Data from Phyloseq into MicrobiomeStatNextImporting Data from BIOM into MicrobiomeStat
Last updated