Skip to content

Load a Sample Dataset

This guide builds a small local dataset from the committed tiny fixtures so you have real Atlas artifacts to validate and serve.

The workflow crosses every authority boundary in order: ingest, validation, deep verification, publication, and catalog promotion. A later command never repairs a failed earlier boundary.

Sample Input Set

flowchart LR
    GFF3[tests/fixtures/tiny/genes.gff3] --> Ingest[bijux-atlas ingest]
    FASTA[tests/fixtures/tiny/genome.fa] --> Ingest
    FAI[tests/fixtures/tiny/genome.fa.fai] --> Ingest
    Ingest --> Output[artifacts/getting-started/tiny-build]

This input diagram makes the required dataset ingredients explicit. The guide uses the committed tiny fixture so the flow can be reproduced exactly instead of adapting undocumented local inputs on the first attempt.

Build the Tiny Sample

Run from the repository root:

mkdir -p artifacts/getting-started/tiny-build
mkdir -p artifacts/getting-started/tiny-store

cargo run -p bijux-atlas-cli --bin bijux-atlas -- ingest \
  --gff3 crates/bijux-atlas-ingest/tests/fixtures/tiny/genes.gff3 \
  --fasta crates/bijux-atlas-ingest/tests/fixtures/tiny/genome.fa \
  --fai crates/bijux-atlas-ingest/tests/fixtures/tiny/genome.fa.fai \
  --output-root artifacts/getting-started/tiny-build \
  --release 110 \
  --species homo_sapiens \
  --assembly GRCh38

Those identity flags matter. If you change them, later validation, publication, and query steps must use the same values.

Record the checkout revision and the hashes of the three inputs with the run notes. The fixture is committed, but its path alone does not identify its bytes across different revisions.

Why This Input Set

The tiny fixture is small enough for a fast first run but still exercises the main ingest contract:

  • GFF3 annotation input
  • FASTA sequence input
  • FAI index input
  • release, species, and assembly identity

This fixture is intentionally tiny. It is useful for learning the workflow shape, not for proving realistic throughput, storage pressure, or operational behavior.

Validate the Built Dataset Root

cargo run -p bijux-atlas-cli --bin bijux-atlas -- dataset validate \
  --root artifacts/getting-started/tiny-build \
  --release 110 \
  --species homo_sapiens \
  --assembly GRCh38

For a deeper pass:

cargo run -p bijux-atlas-cli --bin bijux-atlas -- dataset verify \
  --root artifacts/getting-started/tiny-build \
  --release 110 \
  --species homo_sapiens \
  --assembly GRCh38 \
  --deep

Use validate first and verify --deep second. If validate already fails, jumping straight to deeper checks usually adds noise rather than clarity.

flowchart TD
    Build[Ingest build] --> Validate[dataset validate]
    Validate --> Verify[dataset verify --deep]
    Verify --> Publish[Publish into serving store]
    Publish --> Serve[Ready for local server startup]

This sequence matters because it turns a raw ingest run into a checked dataset root before the runtime ever sees it. Atlas is intentionally conservative at that boundary.

Publish into a Serving Store

The build root is validated dataset state. The server expects a serving store with published artifacts and catalog state.

cargo run -p bijux-atlas-cli --bin bijux-atlas -- dataset publish \
  --source-root artifacts/getting-started/tiny-build \
  --store-root artifacts/getting-started/tiny-store \
  --release 110 \
  --species homo_sapiens \
  --assembly GRCh38

cargo run -p bijux-atlas-cli --bin bijux-atlas -- catalog promote \
  --store-root artifacts/getting-started/tiny-store \
  --release 110 \
  --species homo_sapiens \
  --assembly GRCh38

Do not treat publication and promotion as optional ceremony. They are the boundary between "I built something" and "the runtime can discover and serve it in the intended way."

Keep the identity flags consistent across ingest, validate, verify, publish, and promote. If the release, species, or assembly values drift, later failures can look like runtime bugs when they are really just identity mismatches.

What You Should See

  • a build root under artifacts/getting-started/tiny-build
  • a valid dataset root for release 110, species homo_sapiens, assembly GRCh38
  • derived artifact files under the build release path such as the manifest, QC outputs, and SQLite summary
  • a serving store under artifacts/getting-started/tiny-store containing published artifacts and catalog.json
flowchart LR
    OutputRoot[build root] --> DatasetRoot[dataset root]
    DatasetRoot --> Derived[derived artifacts]
    DatasetRoot --> Publish[dataset publish]
    Publish --> Catalog[catalog promote]
    Catalog --> Ready[Ready for server startup]
    Derived --> Publish

This expected-output diagram helps confirm the result shape, not only the command exit status. A successful first run should leave both a validated build root and a serving store ready for runtime startup.

Checkpoints and Authority

Checkpoint Inspect Stop when
ingest command result and candidate release directory input parsing, identity, or output creation fails
validation dataset validation result for the exact tuple required structure or metadata is invalid
deep verification integrity result and derived artifacts hashes, references, or content checks fail
publication store payload and publication result the complete immutable payload is not present
promotion catalog.json and catalog lookup the exact identity is not discoverable
stateDiagram-v2
    [*] --> Candidate: ingest
    Candidate --> Validated: dataset validate
    Validated --> Verified: dataset verify --deep
    Verified --> Published: dataset publish
    Published --> Discoverable: catalog promote
    Discoverable --> [*]

Do not rename a partially produced directory to make it appear complete. Keep the failed candidate for diagnosis or remove its explicit disposable root, then rerun from the first invalid boundary.

If This Step Fails

  • confirm you are using the repository fixture paths exactly
  • confirm artifacts/getting-started/tiny-build and artifacts/getting-started/tiny-store are writable
  • re-run with --verbose or --trace for more detail
  • use the tiny fixture first before trying the realistic fixture
  • fix the first failing boundary before continuing; do not skip from ingest failure straight to server startup

What This Step Proves

  • the committed fixture set is valid for the documented ingest path
  • Atlas can build and verify a sample dataset root locally
  • publication and catalog promotion create discoverable serving state

It does not prove production-scale throughput, remote-store behavior, multi-instance catalog refresh, or biological correctness. Continue to Start the Server to test runtime discovery and query behavior against the published sample.