[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EEG683YGWGVEMP3C19D3PB":3,"skill-same:01M7EEG683YGWGVEMP3C19D3PB":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EEG683YGWGVEMP3C19D3PB","bio-microbiome-diversity-analysis",null,"Alpha and beta diversity of an amplicon (16S\u002FITS) ASV\u002FOTU community table - observed features, Shannon, Pielou evenness, Faith PD, Bray-Curtis, Jaccard, weighted\u002Funweighted\u002Fgeneralized UniFrac, Aitchison\u002FRPCA - via QIIME2 core-metrics-phylogenetic, phyloseq\u002Fvegan, and scikit-bio. Covers the three knobs that set the answer before it is seen (rarefaction sampling depth, the tree, the metric), why core-metrics silently deletes samples below the sampling depth, why de novo trees lose to SEPP fragment-insertion and Greengenes2, why unweighted and weighted UniFrac can flip the story, why observed features is an ASV count not a species count, the QIIME2-log2 vs R-ln Shannon mismatch, and pairing PERMANOVA (adonis2) with betadisper. Use when summarizing whole-community richness\u002Fevenness or testing group differences in community structure. Per-taxon testing -> differential-abundance. Shotgun tables -> metagenomics\u002Fmetagenome-visualization. Shared CoDA\u002Frarefaction theory -> metagenomics\u002Fabundance-estimation.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-microbiome-diversity-analysis\ndescription: Alpha and beta diversity of an amplicon (16S\u002FITS) ASV\u002FOTU community table - observed features, Shannon, Pielou evenness, Faith PD, Bray-Curtis, Jaccard, weighted\u002Funweighted\u002Fgeneralized UniFrac, Aitchison\u002FRPCA - via QIIME2 core-metrics-phylogenetic, phyloseq\u002Fvegan, and scikit-bio. Covers the three knobs that set the answer before it is seen (rarefaction sampling depth, the tree, the metric), why core-metrics silently deletes samples below the sampling depth, why de novo trees lose to SEPP fragment-insertion and Greengenes2, why unweighted and weighted UniFrac can flip the story, why observed features is an ASV count not a species count, the QIIME2-log2 vs R-ln Shannon mismatch, and pairing PERMANOVA (adonis2) with betadisper. Use when summarizing whole-community richness\u002Fevenness or testing group differences in community structure. Per-taxon testing -> differential-abundance. Shotgun tables -> metagenomics\u002Fmetagenome-visualization. Shared CoDA\u002Frarefaction theory -> metagenomics\u002Fabundance-estimation.\ntool_type: mixed\nprimary_tool: phyloseq\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"microbiome\u002Fdiversity-analysis\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: phyloseq 1.46+, vegan 2.6+, picante 1.8+, GUniFrac 1.8+, scikit-bio 0.6+, QIIME2 2024.2+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `qiime \u003Cplugin> \u003Caction> --help` to confirm flags\n- Python: `pip show scikit-bio` then `help(skbio.diversity.beta_diversity)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nscikit-bio 0.6.0 renamed OTU to taxon across the API and drifted metric kwargs (`otu_ids=` vs newer forms) - discover names with `skbio.diversity.get_beta_diversity_metrics()` before hard-coding. UniFrac\u002FFaith PD results inherit the tree (de novo vs SEPP vs Greengenes2 reference build) AND the chosen sampling depth - record both alongside the QIIME2 release that produced the `.qza` artifacts.\n\n# Diversity Analysis\n\n**\"Compare microbial diversity across my samples\"** -> Summarize within-sample richness\u002Fevenness (alpha) and between-sample dissimilarity (beta) - but only after declaring the rarefaction depth, the tree, and the metric, because each is a knob that sets the answer before it is seen.\n- CLI: `qiime diversity core-metrics-phylogenetic --i-phylogeny rooted-tree.qza --i-table table.qza --p-sampling-depth N --m-metadata-file md.tsv --output-dir cm\u002F`\n- R: `estimate_richness(ps_rare)` for alpha; `UniFrac(ps_rare, weighted=)` \u002F `vegdist()` then `adonis2()` + `betadisper()` for beta\n\nScope: whole-community summary (a number or ordination per sample) of an amplicon ASV\u002FOTU table plus a tree. Per-taxon between-group testing -> differential-abundance. Shotgun profiler tables (MetaPhlAn\u002FBracken) -> metagenomics\u002Fmetagenome-visualization. The shared CoDA and rarefaction-debate theory lives in metagenomics\u002Fabundance-estimation; the Hill-number and PERMANOVA-dispersion theory in metagenomics\u002Fmetagenome-visualization - cross-referenced here, not re-derived. Tree handling -> phylogenetics\u002Ftree-io.\n\n## The Single Most Important Modern Insight -- A Diversity Number Is the Output of Three Knobs Turned Before the Answer Appears\n\nAn alpha or beta diversity value is not a measurement of the community; it is the output of three choices made before the number appears - the rarefaction DEPTH, the TREE, and the METRIC. Turn them differently and the conclusion can change. The job is to declare all three and show the result survives a second reasonable choice, not to run `core-metrics-phylogenetic` and read the p-value. The quietest and most dangerous knob is the depth:\n\n1. **`--p-sampling-depth` is a sample-deletion knob in a normalization costume.** core-metrics rarefies every sample to the depth and, per the QIIME2 docs, silently drops every sample whose total count is below it - no warning, just fewer points in the PCoA. The dropped samples are the lowest-yield ones (the lowest-biomass swab, the sickest patient, the failed extraction), so the loss is almost never random. Pick the depth from the feature-table summary plus the alpha-rarefaction plateau, report the depth AND the dropped samples, and confirm the conclusion at a nearby depth. Rarefying to `min(sample_sums)` is the worst of both worlds - one tiny library drags everyone to noise.\n2. **UniFrac and Faith PD are only as real as the tree, and the tree is a model not a property of the data.** A de novo MAFFT+FastTree tree from ~250 bp reads is poorly resolved and arbitrarily midpoint-rooted (Janssen 2018); SEPP fragment-insertion into a full-length reference, or Greengenes2 placement, gives stable topology and correct associations - and SEPP\u002FGG2 align 16S with shotgun (McDonald 2024). SEPP also drops fragments that fail to insert, a second silent table-shrink.\n3. **Rarefy for diversity, never for differential abundance.** Rarefaction-to-even-depth is defensible for alpha\u002Fbeta (Schloss 2024); for DA it discards count information a compositional model needs (McMurdie 2014). Keep the raw counts; rarefy only into the diversity branch; route DA to differential-abundance on the unrarefied table.\n\n## Tool \u002F Metric Taxonomy\n\n| Metric \u002F tool | Citation | What it measures \u002F does | When |\n|---------------|----------|-------------------------|------|\n| Observed features | - | ASV richness (Hill q=0); most depth-sensitive; an ASV count, not species | richness, but report denoising params; prefer Hill q1\u002Fq2 |\n| Shannon | - | entropy = richness+evenness (Hill q=1 = exp(H')); QIIME2 log2\u002Fbits, R ln\u002Fnats | balanced diversity; report exp(H') to dodge the base |\n| Pielou evenness | Pielou 1966 *J Theor Biol* 13:131 | H'\u002Fln(S); 0-1; isolates evenness from richness | when evenness is the question |\n| Faith PD | Faith 1992 *Biol Conserv* 61:1 | sum of branch lengths spanning observed taxa; phylogenetic q=0 | amplicon-native richness; needs a tree |\n| Jaccard | - | presence\u002Fabsence dissimilarity; no tree | membership turnover; depth\u002Frare-ASV sensitive |\n| Bray-Curtis | - | abundance dissimilarity; no tree; compositionally incoherent | abundance default; intuitive, label the caveat |\n| Unweighted UniFrac | Lozupone 2005 *Appl Environ Microbiol* 71:8228 | branch length unique to one community (presence\u002Fabsence) | rare\u002Fdivergent lineages + topology; needs a tree |\n| Weighted UniFrac | Lozupone 2007 *Appl Environ Microbiol* 73:1576 | branch length weighted by abundance difference | abundant-lineage shifts; needs a tree |\n| Generalized UniFrac | Chen 2012 *Bioinformatics* 28:2106 | alpha in [0,1] interpolating unweighted-weighted | alpha=0.5 compromise; powerful for moderately abundant lineages |\n| Aitchison \u002F RPCA | Martino 2019 *mSystems* 4:e00016-19 | CLR + matrix completion; ordination with feature loadings | compositionally coherent; sparse data; no pseudocount |\n| SEPP insertion | Janssen 2018 *mSystems* 3:e00021-18 | places ASVs into a full-length reference tree | the preferred tree for short reads |\n| Greengenes2 | McDonald 2024 *Nat Biotechnol* 42:715 | unified genome+16S reference tree | makes 16S UniFrac comparable to shotgun |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Need a phylogenetic metric (UniFrac, Faith PD) | SEPP-into-reference or Greengenes2 tree | de novo from short reads is unstable (Janssen 2018) |\n| De novo tree is the only option | treat unweighted UniFrac with suspicion | topology noise on ~250 bp reads dominates it |\n| Change is in rare\u002Flow-abundance lineages | unweighted UniFrac, observed features | presence\u002Fabsence + topology see rare taxa |\n| Change is a bloom of dominant taxa | weighted UniFrac, Bray-Curtis | abundance-weighted metrics see dominant shifts |\n| Do not want to metric-shop | generalized UniFrac alpha=0.5 + report both un\u002Fweighted | Chen 2012 compromise; single-metric hit is tentative |\n| Richness vs evenness question | observed\u002FFaith (q0) AND Shannon-exp (q1) \u002F InvSimpson (q2) | span the richness-evenness spectrum |\n| Compositional, want axis-driving taxa | RPCA (DEICODE\u002Fgemelli) | CLR ordination with interpretable loadings |\n| Picking a rarefaction depth | feature-table summarize + alpha-rarefaction plateau | depth must retain samples AND saturate richness |\n| Per-taxon \"which bug changed\" | -> differential-abundance | diversity is whole-community; DA is per-feature |\n| Shotgun profiler table, not amplicon | -> metagenomics\u002Fmetagenome-visualization | no per-feature tree; different idiom |\n\n## Choosing the Sampling Depth (the biggest lever)\n\n**Goal:** Pick a rarefaction depth that saturates richness while retaining an acceptable fraction of samples, and know exactly which samples were dropped.\n\n**Approach:** Read the per-sample frequency distribution from the feature-table summary, find where the alpha-rarefaction curve plateaus, set the depth there, then declare the depth and the dropped-sample list.\n\n```bash\nqiime feature-table summarize --i-table table.qza --o-visualization table.qzv   # per-sample frequencies; the depth lives here\n\nqiime diversity alpha-rarefaction \\\n    --i-table table.qza --i-phylogeny rooted-tree.qza \\\n    --p-max-depth 20000 \\   # set near the median sample depth; the curve panel shows survivors per depth\n    --m-metadata-file metadata.tsv --o-visualization alpha-rarefaction.qzv\n\nqiime diversity core-metrics-phylogenetic \\\n    --i-phylogeny rooted-tree.qza --i-table table.qza \\\n    --p-sampling-depth 10000 \\   # on the observed-features plateau; SILENTLY DROPS samples below this\n    --m-metadata-file metadata.tsv --output-dir core-metrics-results\n```\n\ncore-metrics-phylogenetic rarefies the table, computes the four alpha vectors (`faith_pd_vector`, `observed_features_vector`, `shannon_vector`, `evenness_vector`) and four beta matrices (`unweighted_unifrac_`, `weighted_unifrac_`, `jaccard_`, `bray_curtis_distance_matrix`), and produces a PCoA + Emperor plot for each beta metric. The non-phylogenetic twin `qiime diversity core-metrics` drops Faith PD and both UniFracs and needs no tree.\n\n## Building the Tree (a modeling choice, not a fixed step)\n\n**Goal:** Obtain a phylogeny over the ASVs that does not inject topology noise into UniFrac\u002FFaith PD.\n\n**Approach:** Prefer SEPP fragment-insertion into a full-length reference (or Greengenes2 placement) over a de novo build from short reads; for de novo, mask the alignment and accept that unweighted UniFrac will be shaky.\n\n```bash\nqiime fragment-insertion sepp \\\n    --i-representative-sequences rep-seqs.qza \\\n    --i-reference-database sepp-refs-gg-13-8.qza \\\n    --p-threads 4 \\\n    --o-tree insertion-tree.qza --o-placements insertion-placements.qza\n\nqiime fragment-insertion filter-features \\\n    --i-table table.qza --i-tree insertion-tree.qza \\\n    --o-filtered-table table-sepp.qza --o-removed-table removed-table.qza   # fragments that failed to insert are DROPPED\n```\n\nDe novo is `qiime phylogeny align-to-tree-mafft-fasttree` (MAFFT align -> mask -> FastTree2 -> midpoint root) - acceptable only when no reference package fits the marker\u002Fregion, and unweighted UniFrac on it must be treated as suspect.\n\n## Alpha Diversity in R (counts on the rarefied table)\n\n**Goal:** Compute richness and evenness per sample and test for a group difference without confounding by sequencing depth.\n\n**Approach:** Rarefy to a chosen depth, estimate Hill-spanning metrics, test with a non-parametric test (escalate to a linear\u002Fmixed model for covariates), and report effective species exp(H').\n\n```r\nlibrary(phyloseq); library(vegan)\n\nps_rare \u003C- rarefy_even_depth(ps, sample.size = chosen_depth, rngseed = 42, replace = FALSE)\nalpha \u003C- estimate_richness(ps_rare, measures = c('Observed', 'Shannon', 'InvSimpson'))   # q0, exp gives q1, q2\nalpha$Group \u003C- sample_data(ps_rare)$Group\nalpha$Shannon_eff \u003C- exp(alpha$Shannon)   # effective species; base-invariant in interpretation (Hill q=1)\n\nkruskal.test(Shannon ~ Group, data = alpha)   # non-parametric; escalate to lme4\u002Fnlme for covariates or repeated measures\n```\n\nFaith PD in R uses `picante::pd(otu_matrix, tree, include.root = TRUE)`. The Shannon from `estimate_richness` is in natural log (nats); QIIME2 reports log2 (bits) - report `exp(Shannon)` to compare across the two.\n\n## Beta Diversity in R (report weighted AND unweighted)\n\n**Goal:** Quantify between-sample dissimilarity with phylogenetic and abundance-weighted views, then test the group effect while ruling out a dispersion artifact.\n\n**Approach:** Compute both UniFrac variants (and generalized UniFrac alpha=0.5), ordinate by PCoA, run adonis2 for location, and ALWAYS pair it with betadisper for spread.\n\n```r\nwu  \u003C- UniFrac(ps_rare, weighted = TRUE)    # abundant-lineage view\nuwu \u003C- UniFrac(ps_rare, weighted = FALSE)   # rare-lineage + topology view\n# generalized UniFrac alpha=0.5 (Chen 2012 compromise):\ngu  \u003C- as.dist(GUniFrac::GUniFrac(t(as(otu_table(ps_rare), 'matrix')), phy_tree(ps_rare), alpha = 0.5)$unifracs[, , 'd_0.5'])\n\nmeta \u003C- data.frame(sample_data(ps_rare))\nadonis2(wu ~ Group, data = meta, permutations = 999)   # >=999 permutations; significance = LOCATION\npermutest(betadisper(wu, meta$Group))                  # MANDATORY: is it dispersion, not location?\n```\n\nIf betadisper is significant the adonis2 result is ambiguous (location vs spread) - state it. The PERMANOVA-dispersion theory is shared; see metagenomics\u002Fmetagenome-visualization. For a compositionally coherent ordination with feature loadings use RPCA (DEICODE `qiime deicode rpca` \u002F gemelli). The Python engine is scikit-bio (`skbio.diversity.beta_diversity`, `skbio.stats.ordination.pcoa`, `skbio.stats.distance.permanova`).\n\n## Per-Method Failure Modes\n\n### Sampling-depth sample-massacre\n**Trigger:** a `--p-sampling-depth` higher than some samples' totals. **Mechanism:** core-metrics drops every sample below the depth with no warning. **Symptom:** fewer points in the PCoA than samples in the metadata; the lost ones skew low-biomass. **Fix:** pick the depth from the rarefaction plateau, report the dropped-sample list, confirm at a nearby depth.\n\n### De novo tree noise\n**Trigger:** UniFrac\u002FFaith PD on a MAFFT+FastTree tree from short reads. **Mechanism:** ~250 bp reads give an unstable topology and arbitrary midpoint root. **Symptom:** unweighted-UniFrac separation that vanishes under SEPP insertion or weighted UniFrac. **Fix:** use SEPP-into-reference or Greengenes2; treat de novo unweighted UniFrac as suspect.\n\n### Unweighted-vs-weighted flip\n**Trigger:** reporting only the UniFrac variant that gives p\u003C0.05. **Mechanism:** unweighted listens to rare\u002Fshort branches, weighted to abundant lineages. **Symptom:** the two disagree and the chosen one is the significant one. **Fix:** report both plus generalized alpha=0.5; state which lineage axis each implicates.\n\n### Rarefy-then-reuse-for-DA\n**Trigger:** feeding the rarefied table to a differential-abundance tool. **Mechanism:** rarefaction discards count information the DA model needs. **Symptom:** underpowered or distorted DA. **Fix:** keep raw counts; rarefy only into the diversity branch; route DA to differential-abundance.\n\n### Observed-features-as-species\n**Trigger:** comparing raw ASV counts across runs\u002Fstudies as \"richness\". **Mechanism:** ASV count tracks DADA2 truncation\u002FmaxEE\u002Fpooling and intragenomic 16S copy variants, not just biology. **Symptom:** richness shifts with denoising settings. **Fix:** prefer Hill q1\u002Fq2; report observed features with the denoising parameters stated.\n\n### Shannon base mismatch\n**Trigger:** comparing a QIIME2 Shannon to an R Shannon. **Mechanism:** QIIME2 uses log2 (bits), R `diversity`\u002F`estimate_richness` natural log (nats). **Symptom:** numbers differ by a constant factor and look like a real effect. **Fix:** state the base, convert, or report `exp(H')`.\n\n### PERMANOVA dispersion\n**Trigger:** a significant adonis2 read as a composition shift. **Mechanism:** pseudo-F responds to within-group spread, not only centroid location (shared theory; metagenomics\u002Fmetagenome-visualization). **Symptom:** significant adonis2 with significant betadisper. **Fix:** always run betadisper\u002Fpermutest alongside; report both.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Sampling depth on the observed-features plateau | Janssen 2018; QIIME2 docs | depth must saturate richness while retaining samples; report dropped list |\n| Do NOT use `min(sample_sums)` as the depth | McMurdie 2014 | one tiny library drags every sample to under-saturated noise |\n| Generalized UniFrac alpha = 0.5 | Chen 2012 *Bioinformatics* 28:2106 | most powerful for moderately abundant lineages; beats running un\u002Fweighted jointly |\n| Report Hill q = 0, 1, 2 together | (shared; metagenomics\u002Fmetagenome-visualization) | spans richness (q0) -> evenness-weighted (q2) |\n| PERMANOVA permutations >= 999 | vegan docs | resolution floor for p ~ 0.001; use 9999 for publication |\n| Pair adonis2 with betadisper | Anderson & Walsh 2013 (shared) | distinguishes a location shift from a dispersion difference |\n| Rarefy for diversity, not for DA | McMurdie 2014; Schloss 2024 | per-analysis decision, not a global switch |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| PCoA has fewer points than samples | `--p-sampling-depth` dropped low-count samples | lower the depth or report the loss; never assume zero drops |\n| `UniFrac` errors \u002F Faith PD missing | no `phy_tree` slot in the phyloseq object | attach a SEPP\u002FGG2 (preferred) or de novo tree |\n| Unweighted UniFrac significant, weighted not | change is in rare lineages, or de novo tree noise | report both; verify the tree; treat single-metric hit as tentative |\n| R and QIIME2 Shannon disagree | log base differs (nats vs bits) | report `exp(H')`; convert by `log2(e)` |\n| adonis2 p\u003C0.001 but groups visually overlap | dispersion difference, not location | run betadisper; report it |\n| scikit-bio `otu_ids=` deprecation warning | 0.6 renamed OTU to taxon; `otu_ids=` kept as a deprecated alias | `get_beta_diversity_metrics()` and `help()` to find current kwargs |\n| Diversity tracks host\u002Fplant content | host mitochondria\u002Fchloroplast 16S not removed | filter Mitochondria\u002FChloroplast features (see taxonomy-assignment) before computing diversity |\n| \"Community\" in a near-sterile\u002Flow-biomass sample | reagent kitome not removed | sequence controls + run decontam upstream (amplicon-processing; metagenomics\u002Fcontamination-controls) |\n\n## References\n\n- Faith DP. 1992. Conservation evaluation and phylogenetic diversity. *Biol Conserv* 61:1-10.\n- Pielou EC. 1966. The measurement of diversity in different types of biological collections. *J Theor Biol* 13:131-144.\n- Lozupone C, Knight R. 2005. UniFrac: a new phylogenetic method for comparing microbial communities. *Appl Environ Microbiol* 71:8228-8235.\n- Lozupone CA, Hamady M, Kelley ST, Knight R. 2007. Quantitative and qualitative beta diversity measures lead to different insights into factors that structure microbial communities. *Appl Environ Microbiol* 73:1576-1585.\n- Chen J, Bittinger K, Charlson ES, Hoffmann C, Lewis J, Wu GD, Collman RG, Bushman FD, Li H. 2012. Associating microbiome composition with environmental covariates using generalized UniFrac distances. *Bioinformatics* 28:2106-2113.\n- Janssen S, McDonald D, Gonzalez A, et al. 2018. Phylogenetic placement of exact amplicon sequences improves associations with clinical information. *mSystems* 3:e00021-18.\n- Mirarab S, Nguyen N, Warnow T. 2012. SEPP: SATe-enabled phylogenetic placement. *Pac Symp Biocomput* 2012:247-258.\n- McDonald D, Jiang Y, Balaban M, et al. 2024. Greengenes2 unifies microbial data in a single reference tree. *Nat Biotechnol* 42:715-718.\n- Martino C, Morton JT, Marotz CA, Thompson LR, Tripathi A, Knight R, Zengler K. 2019. A novel sparse compositional technique reveals microbial perturbations. *mSystems* 4:e00016-19.\n- McDonald D, Vazquez-Baeza Y, Koslicki D, et al. 2018. Striped UniFrac: enabling microbiome analysis at unprecedented scale. *Nat Methods* 15:847-848.\n- McMurdie PJ, Holmes S. 2014. Waste not, want not: why rarefying microbiome data is inadmissible. *PLoS Comput Biol* 10:e1003531.\n- Schloss PD. 2024. Rarefaction is currently the best approach to control for uneven sequencing effort in amplicon sequence analyses. *mSphere* 9:e00354-23.\n- McMurdie PJ, Holmes S. 2013. phyloseq: an R package for reproducible interactive analysis and graphics of microbiome census data. *PLoS One* 8:e61217.\n\n## Related Skills\n\n- amplicon-processing - Generate the ASV table and representative sequences upstream\n- taxonomy-assignment - Label the ASVs summarized here\n- differential-abundance - Per-taxon between-group testing on the unrarefied counts\n- qiime2-workflow - The QIIME2 CLI home for core-metrics and tree building\n- phylogenetics\u002Ftree-io - Read, write, and root the UniFrac\u002FFaith PD tree\n- metagenomics\u002Fabundance-estimation - Shared CoDA and rarefaction-debate theory\n- metagenomics\u002Fmetagenome-visualization - Shared Hill-number and PERMANOVA-dispersion theory; diversity\u002Fordination on shotgun profiler tables\n- data-visualization\u002Fggplot2-fundamentals - Custom ordination and diversity plots\n","## Version Compatibility\n\nReference examples tested with: phyloseq 1.46+, vegan 2.6+, picante 1.8+, GUniFrac 1.8+, scikit-bio 0.6+, QIIME2 2024.2+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `qiime \u003Cplugin> \u003Caction> --help` to confirm flags\n- Python: `pip show scikit-bio` then `help(skbio.diversity.beta_diversity)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nscikit-bio 0.6.0 renamed OTU to taxon across the API and drifted metric kwargs (`otu_ids=` vs newer forms) - discover names with `skbio.diversity.get_beta_diversity_metrics()` before hard-coding. UniFrac\u002FFaith PD results inherit the tree (de novo vs SEPP vs Greengenes2 reference build) AND the chosen sampling depth - record both alongside the QIIME2 release that produced the `.qza` artifacts.\n\n# Diversity Analysis\n\n**\"Compare microbial diversity across my samples\"** -> Summarize within-sample richness\u002Fevenness (alpha) and between-sample dissimilarity (beta) - but only after declaring the rarefaction depth, the tree, and the metric, because each is a knob that sets the answer before it is seen.\n- CLI: `qiime diversity core-metrics-phylogenetic --i-phylogeny rooted-tree.qza --i-table table.qza --p-sampling-depth N --m-metadata-file md.tsv --output-dir cm\u002F`\n- R: `estimate_richness(ps_rare)` for alpha; `UniFrac(ps_rare, weighted=)` \u002F `vegdist()` then `adonis2()` + `betadisper()` for beta\n\nScope: whole-community summary (a number or ordination per sample) of an amplicon ASV\u002FOTU table plus a tree. Per-taxon between-group testing -> differential-abundance. Shotgun profiler tables (MetaPhlAn\u002FBracken) -> metagenomics\u002Fmetagenome-visualization. The shared CoDA and rarefaction-debate theory lives in metagenomics\u002Fabundance-estimation; the Hill-number and PERMANOVA-dispersion theory in metagenomics\u002Fmetagenome-visualization - cross-referenced here, not re-derived. Tree handling -> phylogenetics\u002Ftree-io.\n\n## The Single Most Important Modern Insight -- A Diversity Number Is the Output of Three Knobs Turned Before the Answer Appears\n\nAn alpha or beta diversity value is not a measurement of the community; it is the output of three choices made before the number appears - the rarefaction DEPTH, the TREE, and the METRIC. Turn them differently and the conclusion can change. The job is to declare all three and show the result survives a second reasonable choice, not to run `core-metrics-phylogenetic` and read the p-value. The quietest and most dangerous knob is the depth:\n\n1. **`--p-sampling-depth` is a sample-deletion knob in a normalization costume.** core-metrics rarefies every sample to the depth and, per the QIIME2 docs, silently drops every sample whose total count is below it - no warning, just fewer points in the PCoA. The dropped samples are the lowest-yield ones (the lowest-biomass swab, the sickest patient, the failed extraction), so the loss is almost never random. Pick the depth from the feature-table summary plus the alpha-rarefaction plateau, report the depth AND the dropped samples, and confirm the conclusion at a nearby depth. Rarefying to `min(sample_sums)` is the worst of both worlds - one tiny library drags everyone to noise.\n2. **UniFrac and Faith PD are only as real as the tree, and the tree is a model not a property of the data.** A de novo MAFFT+FastTree tree from ~250 bp reads is poorly resolved and arbitrarily midpoint-rooted (Janssen 2018); SEPP fragment-insertion into a full-length reference, or Greengenes2 placement, gives stable topology and correct associations - and SEPP\u002FGG2 align 16S with shotgun (McDonald 2024). SEPP also drops fragments that fail to insert, a second silent table-shrink.\n3. **Rarefy for diversity, never for differential abundance.** Rarefaction-to-even-depth is defensible for alpha\u002Fbeta (Schloss 2024); for DA it discards count information a compositional model needs (McMurdie 2014). Keep the raw counts; rarefy only into the diversity branch; route DA to differential-abundance on the unrarefied table.\n\n## Tool \u002F Metric Taxonomy\n\n| Metric \u002F tool | Citation | What it measures \u002F does | When |\n|---------------|----------|-------------------------|------|\n| Observed features | - | ASV richness (Hill q=0); most depth-sensitive; an ASV count, not species | richness, but report denoising params; prefer Hill q1\u002Fq2 |\n| Shannon | - | entropy = richness+evenness (Hill q=1 = exp(H')); QIIME2 log2\u002Fbits, R ln\u002Fnats | balanced diversity; report exp(H') to dodge the base |\n| Pielou evenness | Pielou 1966 *J Theor Biol* 13:131 | H'\u002Fln(S); 0-1; isolates evenness from richness | when evenness is the question |\n| Faith PD | Faith 1992 *Biol Conserv* 61:1 | sum of branch lengths spanning observed taxa; phylogenetic q=0 | amplicon-native richness; needs a tree |\n| Jaccard | - | presence\u002Fabsence dissimilarity; no tree | membership turnover; depth\u002Frare-ASV sensitive |\n| Bray-Curtis | - | abundance dissimilarity; no tree; compositionally incoherent | abundance default; intuitive, label the caveat |\n| Unweighted UniFrac | Lozupone 2005 *Appl Environ Microbiol* 71:8228 | branch length unique to one community (presence\u002Fabsence) | rare\u002Fdivergent lineages + topology; needs a tree |\n| Weighted UniFrac | Lozupone 2007 *Appl Environ Microbiol* 73:1576 | branch length weighted by abundance difference | abundant-lineage shifts; needs a tree |\n| Generalized UniFrac | Chen 2012 *Bioinformatics* 28:2106 | alpha in [0,1] interpolating unweighted-weighted | alpha=0.5 compromise; powerful for moderately abundant lineages |\n| Aitchison \u002F RPCA | Martino 2019 *mSystems* 4:e00016-19 | CLR + matrix completion; ordination with feature loadings | compositionally coherent; sparse data; no pseudocount |\n| SEPP insertion | Janssen 2018 *mSystems* 3:e00021-18 | places ASVs into a full-length reference tree | the preferred tree for short reads |\n| Greengenes2 | McDonald 2024 *Nat Biotechnol* 42:715 | unified genome+16S reference tree | makes 16S UniFrac comparable to shotgun |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Need a phylogenetic metric (UniFrac, Faith PD) | SEPP-into-reference or Greengenes2 tree | de novo from short reads is unstable (Janssen 2018) |\n| De novo tree is the only option | treat unweighted UniFrac with suspicion | topology noise on ~250 bp reads dominates it |\n| Change is in rare\u002Flow-abundance lineages | unweighted UniFrac, observed features | presence\u002Fabsence + topology see rare taxa |\n| Change is a bloom of dominant taxa | weighted UniFrac, Bray-Curtis | abundance-weighted metrics see dominant shifts |\n| Do not want to metric-shop | generalized UniFrac alpha=0.5 + report both un\u002Fweighted | Chen 2012 compromise; single-metric hit is tentative |\n| Richness vs evenness question | observed\u002FFaith (q0) AND Shannon-exp (q1) \u002F InvSimpson (q2) | span the richness-evenness spectrum |\n| Compositional, want axis-driving taxa | RPCA (DEICODE\u002Fgemelli) | CLR ordination with interpretable loadings |\n| Picking a rarefaction depth | feature-table summarize + alpha-rarefaction plateau | depth must retain samples AND saturate richness |\n| Per-taxon \"which bug changed\" | -> differential-abundance | diversity is whole-community; DA is per-feature |\n| Shotgun profiler table, not amplicon | -> metagenomics\u002Fmetagenome-visualization | no per-feature tree; different idiom |\n\n## Choosing the Sampling Depth (the biggest lever)\n\n**Goal:** Pick a rarefaction depth that saturates richness while retaining an acceptable fraction of samples, and know exactly which samples were dropped.\n\n**Approach:** Read the per-sample frequency distribution from the feature-table summary, find where the alpha-rarefaction curve plateaus, set the depth there, then declare the depth and the dropped-sample list.\n\n```bash\nqiime feature-table summarize --i-table table.qza --o-visualization table.qzv   # per-sample frequencies; the depth lives here\n\nqiime diversity alpha-rarefaction \\\n    --i-table table.qza --i-phylogeny rooted-tree.qza \\\n    --p-max-depth 20000 \\   # set near the median sample depth; the curve panel shows survivors per depth\n    --m-metadata-file metadata.tsv --o-visualization alpha-rarefaction.qzv\n\nqiime diversity core-metrics-phylogenetic \\\n    --i-phylogeny rooted-tree.qza --i-table table.qza \\\n    --p-sampling-depth 10000 \\   # on the observed-features plateau; SILENTLY DROPS samples below this\n    --m-metadata-file metadata.tsv --output-dir core-metrics-results\n```\n\ncore-metrics-phylogenetic rarefies the table, computes the four alpha vectors (`faith_pd_vector`, `observed_features_vector`, `shannon_vector`, `evenness_vector`) and four beta matrices (`unweighted_unifrac_`, `weighted_unifrac_`, `jaccard_`, `bray_curtis_distance_matrix`), and produces a PCoA + Emperor plot for each beta metric. The non-phylogenetic twin `qiime diversity core-metrics` drops Faith PD and both UniFracs and needs no tree.\n\n## Building the Tree (a modeling choice, not a fixed step)\n\n**Goal:** Obtain a phylogeny over the ASVs that does not inject topology noise into UniFrac\u002FFaith PD.\n\n**Approach:** Prefer SEPP fragment-insertion into a full-length reference (or Greengenes2 placement) over a de novo build from short reads; for de novo, mask the alignment and accept that unweighted UniFrac will be shaky.\n\n```bash\nqiime fragment-insertion sepp \\\n    --i-representative-sequences rep-seqs.qza \\\n    --i-reference-database sepp-refs-gg-13-8.qza \\\n    --p-threads 4 \\\n    --o-tree insertion-tree.qza --o-placements insertion-placements.qza\n\nqiime fragment-insertion filter-features \\\n    --i-table table.qza --i-tree insertion-tree.qza \\\n    --o-filtered-table table-sepp.qza --o-removed-table removed-table.qza   # fragments that failed to insert are DROPPED\n```\n\nDe novo is `qiime phylogeny align-to-tree-mafft-fasttree` (MAFFT align -> mask -> FastTree2 -> midpoint root) - acceptable only when no reference package fits the marker\u002Fregion, and unweighted UniFrac on it must be treated as suspect.\n\n## Alpha Diversity in R (counts on the rarefied table)\n\n**Goal:** Compute richness and evenness per sample and test for a group difference without confounding by sequencing depth.\n\n**Approach:** Rarefy to a chosen depth, estimate Hill-spanning metrics, test with a non-parametric test (escalate to a linear\u002Fmixed model for covariates), and report effective species exp(H').\n\n```r\nlibrary(phyloseq); library(vegan)\n\nps_rare \u003C- rarefy_even_depth(ps, sample.size = chosen_depth, rngseed = 42, replace = FALSE)\nalpha \u003C- estimate_richness(ps_rare, measures = c('Observed', 'Shannon', 'InvSimpson'))   # q0, exp gives q1, q2\nalpha$Group \u003C- sample_data(ps_rare)$Group\nalpha$Shannon_eff \u003C- exp(alpha$Shannon)   # effective species; base-invariant in interpretation (Hill q=1)\n\nkruskal.test(Shannon ~ Group, data = alpha)   # non-parametric; escalate to lme4\u002Fnlme for covariates or repeated measures\n```\n\nFaith PD in R uses `picante::pd(otu_matrix, tree, include.root = TRUE)`. The Shannon from `estimate_richness` is in natural log (nats); QIIME2 reports log2 (bits) - report `exp(Shannon)` to compare across the two.\n\n## Beta Diversity in R (report weighted AND unweighted)\n\n**Goal:** Quantify between-sample dissimilarity with phylogenetic and abundance-weighted views, then test the group effect while ruling out a dispersion artifact.\n\n**Approach:** Compute both UniFrac variants (and generalized UniFrac alpha=0.5), ordinate by PCoA, run adonis2 for location, and ALWAYS pair it with betadisper for spread.\n\n```r\nwu  \u003C- UniFrac(ps_rare, weighted = TRUE)    # abundant-lineage view\nuwu \u003C- UniFrac(ps_rare, weighted = FALSE)   # rare-lineage + topology view\n# generalized UniFrac alpha=0.5 (Chen 2012 compromise):\ngu  \u003C- as.dist(GUniFrac::GUniFrac(t(as(otu_table(ps_rare), 'matrix')), phy_tree(ps_rare), alpha = 0.5)$unifracs[, , 'd_0.5'])\n\nmeta \u003C- data.frame(sample_data(ps_rare))\nadonis2(wu ~ Group, data = meta, permutations = 999)   # >=999 permutations; significance = LOCATION\npermutest(betadisper(wu, meta$Group))                  # MANDATORY: is it dispersion, not location?\n```\n\nIf betadisper is significant the adonis2 result is ambiguous (location vs spread) - state it. The PERMANOVA-dispersion theory is shared; see metagenomics\u002Fmetagenome-visualization. For a compositionally coherent ordination with feature loadings use RPCA (DEICODE `qiime deicode rpca` \u002F gemelli). The Python engine is scikit-bio (`skbio.diversity.beta_diversity`, `skbio.stats.ordination.pcoa`, `skbio.stats.distance.permanova`).\n\n## Per-Method Failure Modes\n\n### Sampling-depth sample-massacre\n**Trigger:** a `--p-sampling-depth` higher than some samples' totals. **Mechanism:** core-metrics drops every sample below the depth with no warning. **Symptom:** fewer points in the PCoA than samples in the metadata; the lost ones skew low-biomass. **Fix:** pick the depth from the rarefaction plateau, report the dropped-sample list, confirm at a nearby depth.\n\n### De novo tree noise\n**Trigger:** UniFrac\u002FFaith PD on a MAFFT+FastTree tree from short reads. **Mechanism:** ~250 bp reads give an unstable topology and arbitrary midpoint root. **Symptom:** unweighted-UniFrac separation that vanishes under SEPP insertion or weighted UniFrac. **Fix:** use SEPP-into-reference or Greengenes2; treat de novo unweighted UniFrac as suspect.\n\n### Unweighted-vs-weighted flip\n**Trigger:** reporting only the UniFrac variant that gives p\u003C0.05. **Mechanism:** unweighted listens to rare\u002Fshort branches, weighted to abundant lineages. **Symptom:** the two disagree and the chosen one is the significant one. **Fix:** report both plus generalized alpha=0.5; state which lineage axis each implicates.\n\n### Rarefy-then-reuse-for-DA\n**Trigger:** feeding the rarefied table to a differential-abundance tool. **Mechanism:** rarefaction discards count information the DA model needs. **Symptom:** underpowered or distorted DA. **Fix:** keep raw counts; rarefy only into the diversity branch; route DA to differential-abundance.\n\n### Observed-features-as-species\n**Trigger:** comparing raw ASV counts across runs\u002Fstudies as \"richness\". **Mechanism:** ASV count tracks DADA2 truncation\u002FmaxEE\u002Fpooling and intragenomic 16S copy variants, not just biology. **Symptom:** richness shifts with denoising settings. **Fix:** prefer Hill q1\u002Fq2; report observed features with the denoising parameters stated.\n\n### Shannon base mismatch\n**Trigger:** comparing a QIIME2 Shannon to an R Shannon. **Mechanism:** QIIME2 uses log2 (bits), R `diversity`\u002F`estimate_richness` natural log (nats). **Symptom:** numbers differ by a constant factor and look like a real effect. **Fix:** state the base, convert, or report `exp(H')`.\n\n### PERMANOVA dispersion\n**Trigger:** a significant adonis2 read as a composition shift. **Mechanism:** pseudo-F responds to within-group spread, not only centroid location (shared theory; metagenomics\u002Fmetagenome-visualization). **Symptom:** significant adonis2 with significant betadisper. **Fix:** always run betadisper\u002Fpermutest alongside; report both.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Sampling depth on the observed-features plateau | Janssen 2018; QIIME2 docs | depth must saturate richness while retaining samples; report dropped list |\n| Do NOT use `min(sample_sums)` as the depth | McMurdie 2014 | one tiny library drags every sample to under-saturated noise |\n| Generalized UniFrac alpha = 0.5 | Chen 2012 *Bioinformatics* 28:2106 | most powerful for moderately abundant lineages; beats running un\u002Fweighted jointly |\n| Report Hill q = 0, 1, 2 together | (shared; metagenomics\u002Fmetagenome-visualization) | spans richness (q0) -> evenness-weighted (q2) |\n| PERMANOVA permutations >= 999 | vegan docs | resolution floor for p ~ 0.001; use 9999 for publication |\n| Pair adonis2 with betadisper | Anderson & Walsh 2013 (shared) | distinguishes a location shift from a dispersion difference |\n| Rarefy for diversity, not for DA | McMurdie 2014; Schloss 2024 | per-analysis decision, not a global switch |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| PCoA has fewer points than samples | `--p-sampling-depth` dropped low-count samples | lower the depth or report the loss; never assume zero drops |\n| `UniFrac` errors \u002F Faith PD missing | no `phy_tree` slot in the phyloseq object | attach a SEPP\u002FGG2 (preferred) or de novo tree |\n| Unweighted UniFrac significant, weighted not | change is in rare lineages, or de novo tree noise | report both; verify the tree; treat single-metric hit as tentative |\n| R and QIIME2 Shannon disagree | log base differs (nats vs bits) | report `exp(H')`; convert by `log2(e)` |\n| adonis2 p\u003C0.001 but groups visually overlap | dispersion difference, not location | run betadisper; report it |\n| scikit-bio `otu_ids=` deprecation warning | 0.6 renamed OTU to taxon; `otu_ids=` kept as a deprecated alias | `get_beta_diversity_metrics()` and `help()` to find current kwargs |\n| Diversity tracks host\u002Fplant content | host mitochondria\u002Fchloroplast 16S not removed | filter Mitochondria\u002FChloroplast features (see taxonomy-assignment) before computing diversity |\n| \"Community\" in a near-sterile\u002Flow-biomass sample | reagent kitome not removed | sequence controls + run decontam upstream (amplicon-processing; metagenomics\u002Fcontamination-controls) |\n\n## References\n\n- Faith DP. 1992. Conservation evaluation and phylogenetic diversity. *Biol Conserv* 61:1-10.\n- Pielou EC. 1966. The measurement of diversity in different types of biological collections. *J Theor Biol* 13:131-144.\n- Lozupone C, Knight R. 2005. UniFrac: a new phylogenetic method for comparing microbial communities. *Appl Environ Microbiol* 71:8228-8235.\n- Lozupone CA, Hamady M, Kelley ST, Knight R. 2007. Quantitative and qualitative beta diversity measures lead to different insights into factors that structure microbial communities. *Appl Environ Microbiol* 73:1576-1585.\n- Chen J, Bittinger K, Charlson ES, Hoffmann C, Lewis J, Wu GD, Collman RG, Bushman FD, Li H. 2012. Associating microbiome composition with environmental covariates using generalized UniFrac distances. *Bioinformatics* 28:2106-2113.\n- Janssen S, McDonald D, Gonzalez A, et al. 2018. Phylogenetic placement of exact amplicon sequences improves associations with clinical information. *mSystems* 3:e00021-18.\n- Mirarab S, Nguyen N, Warnow T. 2012. SEPP: SATe-enabled phylogenetic placement. *Pac Symp Biocomput* 2012:247-258.\n- McDonald D, Jiang Y, Balaban M, et al. 2024. Greengenes2 unifies microbial data in a single reference tree. *Nat Biotechnol* 42:715-718.\n- Martino C, Morton JT, Marotz CA, Thompson LR, Tripathi A, Knight R, Zengler K. 2019. A novel sparse compositional technique reveals microbial perturbations. *mSystems* 4:e00016-19.\n- McDonald D, Vazquez-Baeza Y, Koslicki D, et al. 2018. Striped UniFrac: enabling microbiome analysis at unprecedented scale. *Nat Methods* 15:847-848.\n- McMurdie PJ, Holmes S. 2014. Waste not, want not: why rarefying microbiome data is inadmissible. *PLoS Comput Biol* 10:e1003531.\n- Schloss PD. 2024. Rarefaction is currently the best approach to control for uneven sequencing effort in amplicon sequence analyses. *mSphere* 9:e00354-23.\n- McMurdie PJ, Holmes S. 2013. phyloseq: an R package for reproducible interactive analysis and graphics of microbiome census data. *PLoS One* 8:e61217.\n\n## Related Skills\n\n- amplicon-processing - Generate the ASV table and representative sequences upstream\n- taxonomy-assignment - Label the ASVs summarized here\n- differential-abundance - Per-taxon between-group testing on the unrarefied counts\n- qiime2-workflow - The QIIME2 CLI home for core-metrics and tree building\n- phylogenetics\u002Ftree-io - Read, write, and root the UniFrac\u002FFaith PD tree\n- metagenomics\u002Fabundance-estimation - Shared CoDA and rarefaction-debate theory\n- metagenomics\u002Fmetagenome-visualization - Shared Hill-number and PERMANOVA-dispersion theory; diversity\u002Fordination on shotgun profiler tables\n- data-visualization\u002Fggplot2-fundamentals - Custom ordination and diversity plots\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","microbiome\u002Fdiversity-analysis\u002FSKILL.md","phyloseq","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-microbiome-diversity-analysis",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-microbiome-diversity-analysis",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-microbiome-diversity-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis\u002FSKILL.md",true,[50,56,62],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fcore_metrics_qiime2.sh","SCRIPT","脚本",2960,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis\u002Fexamples\u002Fcore_metrics_qiime2.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"examples\u002Fdiversity_analysis.R","OTHER","其他",4568,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis\u002Fexamples\u002Fdiversity_analysis.R",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"usage-guide.md","REFERENCE","参考文档",7305,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-microbiome-diversity-analysis\u002Fusage-guide.md",[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":76},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":76},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]