Skip to content

Commit f76f00b

Browse files
committed
add communityregistry source + toga + usage page + community page + custom tsv fields
1 parent 77c579a commit f76f00b

80 files changed

Lines changed: 6584 additions & 2012 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ logs/
1818
annotrieve_missing_from_tracker.tsv
1919
broken_source_urls.jsonl
2020
TODO.txt
21-
.pytest_cache/
21+
.pytest_cache/
22+
graphify-out/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Annotrieve
22

3-
**Annotrieve** is a central hub for exploring and analyzing eukaryotic genome annotations. It aggregates GFF annotations weekly from **Ensembl**, **NCBI RefSeq**, and **NCBI GenBank**, giving you a single place to search, browse, compare, and download annotation data.
3+
**Annotrieve** is a central hub for exploring and analyzing eukaryotic genome annotations. It aggregates GFF annotations weekly from **Ensembl**, **NCBI RefSeq**, **NCBI GenBank**, and the **Community Registry**, giving you a single place to search, browse, compare, and download annotation data.
44

55
## What it does
66

annotrieve-api-specs.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ paths:
9696
- "annotations"
9797
operationId: "getAnnotationsReport"
9898
summary: "Download annotation metadata as TSV"
99-
description: "Streams a TSV file with annotation metadata columns (annotation_id, assembly_accession, assembly_name, organism_name, taxid, database, provider, source_url, bgzip_path, csi_path)."
99+
description: "Streams a TSV file with annotation metadata columns. By default exports annotation_id, assembly_accession, assembly_name, organism_name, taxid, database, provider, source_url, bgzip_path, and csi_path. Use selected_fields to append additional extended columns."
100100
parameters:
101101
- $ref: "#/components/parameters/filter"
102102
- $ref: "#/components/parameters/limit"
103103
- $ref: "#/components/parameters/offset"
104+
- $ref: "#/components/parameters/selected_fields"
104105
- $ref: "#/components/parameters/taxids"
105106
- $ref: "#/components/parameters/assembly_accessions"
106107
- $ref: "#/components/parameters/bioproject_accessions"
@@ -137,7 +138,7 @@ paths:
137138
- "annotations"
138139
operationId: "postAnnotationsReport"
139140
summary: "Download annotation metadata via POST"
140-
description: "Same as GET /annotations/report, but accepts filters in the request body."
141+
description: "Same as GET /annotations/report, but accepts filters in the request body. Omit selected_fields to preserve the default production column set; provide it to append extended columns after the defaults."
141142
requestBody:
142143
required: true
143144
content:
@@ -1502,7 +1503,7 @@ components:
15021503
db_sources:
15031504
name: "db_sources"
15041505
in: "query"
1505-
description: "Comma-separated list of source databases (RefSeq, Ensembl, GenBank)"
1506+
description: "Comma-separated list of source databases (RefSeq, Ensembl, GenBank, CommunityRegistry)"
15061507
schema:
15071508
type: "string"
15081509
feature_sources:
@@ -1617,6 +1618,13 @@ components:
16171618
description: "Comma-separated list of dot-notation fields to include in the response"
16181619
schema:
16191620
type: "string"
1621+
selected_fields:
1622+
name: "selected_fields"
1623+
in: "query"
1624+
description: "Comma-separated list of extended TSV column keys to append after the default export columns. Only applies to /annotations/report. Omit to keep the production default column set."
1625+
schema:
1626+
type: "string"
1627+
example: "release_date,taxon_lineage,busco_complete"
16201628
rank:
16211629
name: "rank"
16221630
in: "query"
@@ -1716,6 +1724,9 @@ components:
17161724
default: 20
17171725
fields:
17181726
type: string
1727+
selected_fields:
1728+
type: string
1729+
description: "Comma-separated extended TSV column keys to append after default columns (report export only)."
17191730

17201731
AssemblyQueryParams:
17211732
type: object

front/app/annotations/favorites/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
22

3-
import { useState, useMemo, useCallback, type ReactNode } from "react"
3+
import { useState, useMemo, useCallback, type ReactNode, Suspense } from "react"
44
import { useRouter } from "next/navigation"
55
import { Button } from "@/components/ui/button"
66
import { Card } from "@/components/ui/card"
@@ -179,7 +179,9 @@ function FavoritesComparePageContent({
179179

180180
return (
181181
<>
182-
<RightSidebar />
182+
<Suspense fallback={null}>
183+
<RightSidebar />
184+
</Suspense>
183185
<div className="flex flex-col h-[calc(100vh-4rem)] overflow-hidden">
184186
<header aria-label="Favorite annotations" className="px-4 sm:px-6 py-3 border-b border-border bg-background/95 supports-[backdrop-filter]:bg-background/75 backdrop-blur">
185187
<div

0 commit comments

Comments
 (0)