Skip to content

Conversation

@nuin
Copy link
Collaborator

@nuin nuin commented Jan 4, 2026

Fix variation return issue when a variation is longer than one nucleotide
Alleles are returning every single allele connected to a variation, fixed

nuin and others added 3 commits December 16, 2025 09:46
The gene field was returning all genes (~9600) instead of using the filtered
and windowed gene-changes variable. This caused alleles_other responses to be
7.7MB instead of a reasonable size.

Changed line 95 to use gene-changes instead of (:variation/gene var), which
applies the relevant-location filter and limits results to the window size
(default 20).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This tool helps identify endpoints returning excessive data by measuring:
- Response size (total and data-only KB)
- Entity reference counts (packed objects)
- Nesting depth
- Large collections

New files:
- test/rest_api/perf/*.clj - Analysis framework
- resources/perf-config.edn - Sample entity IDs for testing
- CLAUDE.md - Documentation for Claude Code

Usage from REPL:
  (require '[rest-api.perf.core :as perf])
  (perf/analyze-gene "WBGene00006759")

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix typo in core.clj: 'methods' should be 'method' for accessing method remarks
- Fix molecular_details 500 error when position is a range like '2-4' by adding parse-position helper

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nuin nuin merged commit 2f069f5 into master Jan 4, 2026
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.

2 participants