Skip to content

[TEST] #16: Alignment Fallback WDL Task#46

Draft
crashfrog wants to merge 1 commit into
mainfrom
agent/issue-16-tests
Draft

[TEST] #16: Alignment Fallback WDL Task#46
crashfrog wants to merge 1 commit into
mainfrom
agent/issue-16-tests

Conversation

@crashfrog
Copy link
Copy Markdown
Member

Summary

Acceptance tests for alignment fallback WDL task (Issue #16).

  • WDL task signature: query + allele FASTA + MinHash results → refined calls JSON
  • Detects ambiguity triggers from MinHash output (low similarity, close second-best, coverage)
  • Runs minimap2 alignment for flagged loci
  • Refines allele calls with higher precision
  • Reports novel alleles if alignment below confidence threshold
  • Output JSON with status field: "confirmed" or "novel_allele"
  • Containerized with minimap2
  • Tests cover happy path, edge cases, and ambiguous synthetic cases

Test Status

ALL TESTS FAILING (RED PHASE) - This is expected and correct.

The alignment_fallback.wdl file does not exist yet. These tests define the contract
for the implementation agent.

27 failed tests:
- WDL file existence
- Task signature and structure
- Ambiguity detection logic
- Minimap2 integration
- Novel allele detection
- Output format validation
- Edge cases

Test plan

  • Tests written following project patterns
  • All tests fail with expected errors (FileNotFoundError for WDL file)
  • Code style passes (flake8)
  • Tests are immutable contracts for implementation

Next Steps

Implementation agent will:

  1. Create alignment_fallback.wdl workflow
  2. Implement ambiguity detection from MinHash results
  3. Integrate minimap2 for precise alignment
  4. Implement novel allele detection logic
  5. Make all tests pass (GREEN phase)

Generated with Claude Code

Add comprehensive acceptance tests for alignment fallback WDL task.
Tests cover:
- WDL file existence and structure
- Task signature with required inputs (query, allele FASTA, MinHash results)
- Ambiguity detection triggers (low similarity, close second-best)
- Minimap2 alignment integration
- Novel allele detection and reporting
- Output format with identity and status fields
- Containerization with minimap2
- Edge cases (empty results, single locus, all novel)

All tests currently FAIL as expected (RED phase) - the alignment_fallback.wdl
file does not exist yet. Implementation agent will create the feature to make
these tests pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant