Skip to content

microbial_profiles

Reference-based taxonomic and functional profiling of microbial communities. Use this when you want to know “which species are here and what can they do” without committing to a de novo assembly.

What it does

  1. MetaPhlAn 4 (v4.1.1) maps reads against species-specific marker genes and produces a relative-abundance profile per sample. With --include_virus true the --profile_vsc flag is added and a parallel viral profile is emitted.
  2. MetaPhlAn merge combines per-sample profiles into a single abundance table across all samples.
  3. HUMAnN 3 uses the MetaPhlAn output to pick species-specific pangenomes from ChocoPhlAn, aligns reads against them, and falls back to UniRef90 for unmapped reads. Output is per-sample gene-family and pathway-abundance tables (normalized to CPM via --units cpm).
  4. HUMAnN merge combines per-sample gene-family and pathway tables.

You can skip the MetaPhlAn step entirely with --metaphlan_dir <dir> if you already have profiles from a prior run.

Inputs

  • --input — samplesheet of QC’d reads.
  • --metaphlan_db — MetaPhlAn 4 marker database (from download_databases).
  • --humann3_nucleo — HUMAnN ChocoPhlAn nucleotide database.
  • --humann3_uniref90 — HUMAnN UniRef90 protein database.
  • Optional: --metaphlan_dir <dir> — directory of pre-computed *_microbial_profile.txt files, one per sample; the MetaPhlAn step is skipped.

Parameters

ParameterTypeDefaultControls
--inputpath(required)Samplesheet of clean reads.
--outdirpath(required)Result directory.
--metaphlan_dbpathMetaPhlAn 4 database.
--humann3_nucleopathChocoPhlAn DB.
--humann3_uniref90pathUniRef90 DB.
--metaphlan_dirpath(unset)Skip MetaPhlAn and reuse profiles from this directory.
--include_virusbooleanfalseAlso produce viral marker profiles (--profile_vsc).

Output

Path (relative to --outdir)Content
metaphlan/individual_profiles/<sample>_microbial_profile.txtPer-sample MetaPhlAn species table (relative abundance).
metaphlan/merged_microbial_profiles.txtSpecies-by-sample abundance matrix across the whole study.
metaphlan/merged_viral_profiles.txtSame shape, viral markers. Only present with --include_virus.
humann/<sample>_genefamilies.tsvPer-sample gene-family abundance (UniRef90 IDs, CPM-normalized).
humann/<sample>_pathabundance.tsvPer-sample MetaCyc pathway abundance (CPM-normalized).
humann/merged_genefamilies.tsvGene-family-by-sample abundance matrix.
humann/merged_pathabundance.tsvPathway-by-sample abundance matrix.
pipeline_info/microbial_profiles_multiqc_report.htmlConsolidated MultiQC.

The two merged_* tables in humann/ and the merged_microbial_profiles.txt in metaphlan/ are the typical inputs to downstream statistical analysis.

Example

Terminal window
nextflow run schirmer-lab/metagear-pipeline -profile docker \
--workflow microbial_profiles \
--input clean.csv \
--outdir profiles/ \
--metaphlan_db /data/metagear/metaphlan \
--humann3_nucleo /data/metagear/humann/chocophlan \
--humann3_uniref90 /data/metagear/humann/uniref90_diamond

Reusing existing MetaPhlAn profiles (e.g. from a prior genes run that emitted them):

Terminal window
nextflow run schirmer-lab/metagear-pipeline -profile docker \
--workflow microbial_profiles \
--input clean.csv \
--outdir profiles/ \
--metaphlan_dir prior_run/metaphlan/individual_profiles/ \
--humann3_nucleo /data/metagear/humann/chocophlan \
--humann3_uniref90 /data/metagear/humann/uniref90_diamond

Notes

  • MetaPhlAn 4 is reference-based. Species that are not in the marker database will not be reported, even if they are abundant in your sample. For novel-organism discovery, complement with genes.
  • HUMAnN memory. HUMAnN scales with diversity; 16 GB+ per sample is typical and large/diverse samples (e.g. soil) may need much more.
  • CPM units. humann_renorm_table is run with --units cpm. If you need RPK or relative abundance, post-process the merged tables with the HUMAnN utilities.
  • Viral profiling is optional and reference-limited. --include_virus true produces MetaPhlAn’s VSC table; for de novo viral discovery use virus instead.