SKILL.md
Version Compatibility
Reference examples tested with: HUMAnN 3.8+, MetaPhlAn 4.1+, matplotlib 3.8+, pandas 2.2+, scanpy 1.10+, scipy 1.12+, seaborn 0.13+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Functional Profiling
"What metabolic pathways are present in my metagenome?" → Profile functional potential of metagenomic samples to obtain pathway abundances and gene family counts using translated search against UniRef and MetaCyc.
- CLI:
humann --input reads.fastq --output results/(HUMAnN3)
Profile the functional potential of metagenomic samples using HUMAnN3 to get pathway and gene family abundances.
HUMAnN3 Workflow
Installation
# Install via conda (recommended)
conda create -n humann -c bioconda humann
conda activate humann
# Download databases
humann_databases --download chocophlan full /path/to/databases
humann_databases --download uniref uniref90_diamond /path/to/databases
# Update config with database paths
humann_config --update database_folders nucleotide /path/to/databases/chocophlan
humann_config --update database_folders protein /path/to/databases/uniref
Basic Usage
# Run HUMAnN3 on a single sample
humann --input sample.fastq.gz --output sample_humann
# With MetaPhlAn taxonomic profile (faster)
humann --input sample.fastq.gz \
--taxonomic-profile sample_metaphlan.txt \
--output sample_humann
# Paired-end reads (concatenate first)
cat sample_R1.fq.gz sample_R2.fq.gz > sample_concat.fq.gz
humann --input sample_concat.fq.gz --output sample_humann
