Read Merged Metaphlan Table
readMergedMetaphlan(
input_file_path = NULL,
find_sample_name_pattern = NULL,
replace_sample_name_pattern = "",
return_species = TRUE
)
path to where the output of Metaphlan3 is located.
Naming convention used for samples within the input file.
specific pattern to replace in sample names.
Logical whether to return only species level data. Default TRUE.
A phyloseq
object
This function reads Metaphlan3 output that is merged with all samples.
and returns a phyloseq
object with otu_table and tax_table.
Note:
readMergedMetaphlan
is tested for Metaphlan version 3 and based on the RIVM
HPC HUMANN3 pipeline output built by Jeron Frank.
Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils
if (FALSE) {
library(biomeUtils)
mpa.ps <- readMergedMetaphlan(input_file_path = "../metaphlan_bugs_list_merged.txt",
find_sample_name_pattern = "_kneaddata_concat_metaphlan_bugs_list",
replace_sample_name_pattern = "",
return_species = TRUE)
}