Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Protocol: Shannon diversity of a single sample

Open
#50 0 comments 0 reactions 0 assignees View on GitHub

@ohih8 is already working on this.

Since Oct 21, 2026.

  • #53 by @ohih8 — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
yaml
Domain
documentation

Research direction

Start by reading the larger diversity protocol in #43 and the repository’s existing atomic protocols to find the expected format and conventions. Draft a standalone Shannon-index protocol using the supplied frontmatter; define input scale, logarithm default, missing-value handling, and rarefaction or depth-normalization behavior. Done when it cites Shannon 1948 as the origin and meets all four acceptance criteria.

Written by the indexing model from the issue text.

Description

atomic-protocol microbiome statistics

Tier: D (cMD paper) · Type: atomic · Category: Statistical Analysis

What

Calculate the Shannon index for each sample from a feature-by-sample abundance table. Output: one value per sample and nothing more.

Why it matters

Alpha diversity is the first summary computed in nearly every microbiome analysis, and it was bundled into a larger diversity protocol in #43 that review asked to split.

Source material

  • Applied in: Manghi et al., Nat Commun 2025, 10.1038/s41467-025-66888-1. Cite this only as an application.

Scope

In: the input scale (counts or proportions) and conversion to proportions; the logarithm base as a parameter; treatment of zeros and of missing values (error, do not impute); whether and how samples are rarefied to equal depth before calculation, since richness-sensitive indices rise with sequencing depth; what is recorded.

Out: beta diversity; any group comparison or test; interpretation.

Frontmatter starting point

type: "atomic"
category: "Statistical Analysis"
method_origin_citation: "10.1002/j.1538-7305.1948.tb01338.x"   # Shannon 1948, verified
tags: [alpha-diversity, shannon, microbiome]

Acceptance criteria

  • Cites Shannon 1948 as origin, not a paper that applies it
  • Logarithm base is a stated parameter with a default
  • Rarefaction or depth normalization has a defined, recorded behaviour
  • Missing values stop the calculation rather than being treated as zero

Drafted with Claude Code.

Dominant language
No language data
Stars
0
Forks
1
Avg merge
4d 17h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from waldronlab/agent-protocols

All issues in waldronlab/agent-protocols

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.