# srini911/dataset-finder architecture

> Architecture diagram of the GitHub repository srini911/dataset-finder, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/srini911/dataset-finder
- Repository: https://github.com/srini911/dataset-finder

## Overview

Dataset Finder is a Python toolkit for finding public functional-genomics datasets for submitted genes, gene lists, or curated gene sets. Its primary workflow resolves gene identifiers, searches selected repositories, normalizes and evaluates candidate records, annotates techniques and expression, then presents or exports accepted results and per-database status. The graph preserves the documented repository integrations and the separate historical-search capability. Some subsystem connections are based on README workflow statements or the SOURCE INDEX; unsampled implementation details are not assumed.

Main entry points: [`src/dataset_finder/batch.py`](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/batch.py) (Batch workflow), [`src/dataset_finder/search.py`](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/search.py) (Search coordinator), [`src/dataset_finder/historical_search.py`](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/historical_search.py) (Historical search), [`src/dataset_finder/cli.py`](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/cli.py) (Command line)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Search entry"]
  node_cli["Command line<br/>[cli.py]"]
  node_genes["Gene sets"]
  node_batch["Batch workflow<br/>[batch.py]"]
end

subgraph group_discovery["Discovery sources"]
  node_search["Search coordinator<br/>[search.py]"]
  node_historical["Historical search"]
  node_geo["GEO client<br/>[ncbi_geo.py]"]
  node_sra["SRA client<br/>[ncbi_sra.py]"]
  node_biosample["BioSample client<br/>[ncbi_biosample.py]"]
  node_entrez["Entrez client<br/>[ncbi_entrez.py]"]
  node_project["BioProject client<br/>[ncbi_bioproject.py]"]
  node_otherclients["Other archive clients"]
end

subgraph group_analysis["Annotation and assessment"]
  node_flybase["FlyBase resolver"]
  node_relevance["Gene relevance<br/>[relevance.py]"]
  node_metadata["Metadata normalization<br/>[metadata.py]"]
  node_assay["Technique classifier"]
  node_flyatlas["FlyAtlas enrichment<br/>[flyatlas.py]"]
  node_linking["Study linking<br/>[study_linking.py]"]
  node_profiles["Technique profiles<br/>[search_profiles.py]"]
  node_records["Dataset records<br/>[models.py]"]
  node_ranking["Candidate ranking<br/>[ranking.py]"]
end

subgraph group_output["Results and export"]
  node_terminal["Terminal results<br/>[cli.py]"]
  node_exporters["CSV JSON Excel"]
end

node_user(("Researcher"))
node_archives(("Public repositories"))

node_user -->|"submits search"| node_cli
node_cli -->|"loads gene sets"| node_genes
node_cli -.->|"starts batch"| node_batch
node_batch -->|"resolves genes"| node_flybase
node_batch -->|"searches genes"| node_search
node_search -->|"dispatches searches"| node_geo
node_search -->|"dispatches searches"| node_sra
node_search -->|"dispatches searches"| node_biosample
node_search -->|"dispatches searches"| node_project
node_search -->|"dispatches searches"| node_otherclients
node_historical -->|"queries records"| node_entrez
node_historical -->|"normalizes GEO"| node_geo
node_historical -->|"aggregates SRA"| node_sra
node_search -->|"queries repositories"| node_archives
node_otherclients -.->|"accesses archives"| node_archives
node_geo -->|"creates records"| node_records
node_batch -->|"assesses evidence"| node_relevance
node_batch -.->|"enriches metadata"| node_metadata
node_batch -->|"classifies technique"| node_assay
node_batch -.->|"fetches expression"| node_flyatlas
node_batch -->|"runs historical search"| node_historical
node_historical -->|"uses query profiles"| node_profiles
node_search -.->|"links studies"| node_linking
node_batch -->|"ranks candidates"| node_ranking
node_batch -->|"produces results"| node_records
node_batch -.->|"reports status"| node_terminal
node_batch -.->|"exports results"| node_exporters
node_exporters -->|"serializes records"| node_records

click node_cli "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/cli.py"
click node_genes "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/builtin_gene_sets.py"
click node_batch "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/batch.py"
click node_search "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/search.py"
click node_historical "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/historical_search.py"
click node_geo "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_geo.py"
click node_sra "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_sra.py"
click node_biosample "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_biosample.py"
click node_entrez "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_entrez.py"
click node_project "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_bioproject.py"
click node_otherclients "https://github.com/srini911/dataset-finder/tree/main/src/dataset_finder/clients"
click node_flybase "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/flybase_resolver.py"
click node_relevance "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/relevance.py"
click node_metadata "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/metadata.py"
click node_assay "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/assay_classifier.py"
click node_flyatlas "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/flyatlas.py"
click node_linking "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/study_linking.py"
click node_profiles "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/search_profiles.py"
click node_records "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/models.py"
click node_ranking "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/ranking.py"
click node_terminal "https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/cli.py"
click node_exporters "https://github.com/srini911/dataset-finder/tree/main/src/dataset_finder/exporters"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_genes,node_batch toneBlue
class node_search,node_historical,node_geo,node_sra,node_biosample,node_entrez,node_project,node_otherclients toneAmber
class node_flybase,node_relevance,node_metadata,node_assay,node_flyatlas,node_linking,node_profiles,node_records,node_ranking toneMint
class node_terminal,node_exporters toneRose
class node_user,node_archives toneIndigo
```

## Components

### Search entry

- [Command line](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/cli.py): `src/dataset_finder/cli.py`
- [Gene sets](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/builtin_gene_sets.py): `src/dataset_finder/builtin_gene_sets.py`
- [Batch workflow](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/batch.py): `src/dataset_finder/batch.py`

### Discovery sources

- [Search coordinator](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/search.py): `src/dataset_finder/search.py`
- [Historical search](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/historical_search.py): `src/dataset_finder/historical_search.py`
- [GEO client](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_geo.py): `src/dataset_finder/clients/ncbi_geo.py`
- [SRA client](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_sra.py): `src/dataset_finder/clients/ncbi_sra.py`
- [BioSample client](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_biosample.py): `src/dataset_finder/clients/ncbi_biosample.py`
- [Entrez client](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_entrez.py): `src/dataset_finder/clients/ncbi_entrez.py`
- [BioProject client](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/ncbi_bioproject.py): `src/dataset_finder/clients/ncbi_bioproject.py`
- [Other archive clients](https://github.com/srini911/dataset-finder/tree/main/src/dataset_finder/clients): `src/dataset_finder/clients`

### Annotation and assessment

- [FlyBase resolver](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/flybase_resolver.py): `src/dataset_finder/flybase_resolver.py`
- [Gene relevance](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/relevance.py): `src/dataset_finder/relevance.py`
- [Metadata normalization](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/metadata.py): `src/dataset_finder/metadata.py`
- [Technique classifier](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/assay_classifier.py): `src/dataset_finder/assay_classifier.py`
- [FlyAtlas enrichment](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/clients/flyatlas.py): `src/dataset_finder/clients/flyatlas.py`
- [Study linking](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/study_linking.py): `src/dataset_finder/study_linking.py`
- [Technique profiles](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/search_profiles.py): `src/dataset_finder/search_profiles.py`
- [Dataset records](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/models.py): `src/dataset_finder/models.py`
- [Candidate ranking](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/ranking.py): `src/dataset_finder/ranking.py`

### Results and export

- [Terminal results](https://github.com/srini911/dataset-finder/blob/main/src/dataset_finder/cli.py): `src/dataset_finder/cli.py`
- [CSV JSON Excel](https://github.com/srini911/dataset-finder/tree/main/src/dataset_finder/exporters): `src/dataset_finder/exporters`

### Other components

- **Researcher**
- **Public repositories**

## Connections

- Researcher → Command line: submits search (evidence: `README.md`)
- Command line → Gene sets: loads gene sets (evidence: `README.md`)
- Command line → Batch workflow: starts batch
- Batch workflow → FlyBase resolver: resolves genes (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Search coordinator: searches genes (evidence: `src/dataset_finder/batch.py`)
- Search coordinator → GEO client: dispatches searches (evidence: `src/dataset_finder/search.py`)
- Search coordinator → SRA client: dispatches searches (evidence: `src/dataset_finder/search.py`)
- Search coordinator → BioSample client: dispatches searches (evidence: `src/dataset_finder/search.py`)
- Search coordinator → BioProject client: dispatches searches (evidence: `src/dataset_finder/search.py`)
- Search coordinator → Other archive clients: dispatches searches (evidence: `src/dataset_finder/search.py`)
- Historical search → Entrez client: queries records (evidence: `src/dataset_finder/historical_search.py`)
- Historical search → GEO client: normalizes GEO (evidence: `src/dataset_finder/historical_search.py`)
- Historical search → SRA client: aggregates SRA (evidence: `src/dataset_finder/historical_search.py`)
- Search coordinator → Public repositories: queries repositories (evidence: `README.md`)
- Other archive clients → Public repositories: accesses archives
- GEO client → Dataset records: creates records (evidence: `src/dataset_finder/clients/ncbi_geo.py`)
- Batch workflow → Gene relevance: assesses evidence (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Metadata normalization: enriches metadata (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Technique classifier: classifies technique (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → FlyAtlas enrichment: fetches expression (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Historical search: runs historical search (evidence: `src/dataset_finder/batch.py`)
- Historical search → Technique profiles: uses query profiles (evidence: `src/dataset_finder/historical_search.py`)
- Search coordinator → Study linking: links studies
- Batch workflow → Candidate ranking: ranks candidates (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Dataset records: produces results (evidence: `src/dataset_finder/batch.py`)
- Batch workflow → Terminal results: reports status
- Batch workflow → CSV JSON Excel: exports results (evidence: `src/dataset_finder/exporters/excel_exporter.py`)
- CSV JSON Excel → Dataset records: serializes records (evidence: `src/dataset_finder/exporters/csv_exporter.py`)
