Skip to content

docs(cladistics): issue 303 experiment 7, evidence verdicts on placements - #346

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/focused-meitner-uf53td
Nov 17, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/focused-meitner-uf53td

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Change and reason

Follow-up to #345 (merged), for issue #303. Adds docs/cladistics/issue-303/placement_evidence.jl and its results to the page there. Fork only; nothing is proposed upstream and no application code changes.

#345 recorded that a stable tree overview cannot be built from 240-base amplicon reads alone. This tests the alternative with a ground truth:

  • 400 real full-length 16S sequences (mothur SILVA bacterial reference alignment) give a reference tree.
  • Each of 150 sequences is pruned in turn; where it hung is the truth.
  • Its 240-base fragment is placed back by weighted least squares, with 100 bootstrap replicates giving a placement mass for every clade.
  • Verdict for "this sequence belongs to this clade": entailed at mass 1, refuted at mass 0, unresolved between.
Amplicon fragment Whole sequence (positive control) A different sequence placed (negative control)
Entailed verdicts that are right 1,105 of 1,106 1,411 of 1,412 219 of 1,155
Refuted verdicts that are right 57,116 of 57,128 57,731 of 57,735 55,604 of 56,974
Smallest entailed clade, median size of 399 18 7 26
Placed on exactly the true edge 48.0% 77.3% 0.0%

Counted per query, the smallest entailed clade was wrong for 1 of 130 queries; 20 further queries had no entailed clade.

Validation

Julia 1.12.7, four threads.

  • julia scripts/check-julia-syntax.jl: Julia parser accepted 172 tracked source files.
  • The script was run and its output is the source of every number above and in the README.
  • Not run: the repository's Julia, R and frontend suites locally (documentation and one standalone script only; CI covers them).
  • Not tested: the application's own placement step (EPA), real reads with sequencing error, more than one marker.

Scope

  • The reference alignment is not committed; the README gives its URL and SHA-256.
  • Limits are stated in the README: the truth is defined by a neighbour-joining tree built from full-length distances; queries are fragments of reference-quality sequences; placement is least squares, not EPA; "entailed" is a measured rate, not a proof.
  • The counting rule that turns per-read verdicts into a per-sample verdict is a separate piece of work in metadatastician/MetaManifold-Evidence and is not part of this PR.
  • New file carries the fork's usual MPL-2.0 header, as confirmed by the owner for docs(cladistics): issue 303 experiments on exact Phred arithmetic and lazy tree views #345.

Contribution checks

  • I followed CONTRIBUTING.md.
  • This branch starts at current main (628eeed) and contains no merges.
  • CI has run and passes.
  • Existing licensing, citation and acknowledgement text is unchanged.

Generated by Claude Code

…ents

Adds placement_evidence.jl and its results to the issue 303 page. 400 real
full-length 16S sequences give a reference tree; 150 are pruned in turn and
their 240-base fragment is placed back, with 100 bootstrap replicates giving
a placement mass per clade.

Entailed clade verdicts were right for 1,105 of 1,106, refuted for 57,116 of
57,128; the smallest entailed clade has median size 18 of 399 and was wrong
for 1 of 130 queries. A positive control (whole sequence) and a negative
control (a different sequence placed) are reported beside it, with the
limits: the truth is defined by a neighbour-joining tree, queries carry no
sequencing error, and placement is least squares, not EPA.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDiW8qD4f2JDQJ4buGo
Copilot AI balanced review requested due to automatic review settings November 17, 2026 01:58
@linear-code
linear-code Bot marked this pull request as ready for review November 17, 2026 01:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit e4e39aa into main Nov 17, 2026
22 checks passed
@hyperpolymath
hyperpolymath deleted the claude/focused-meitner-uf53td branch November 17, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants