Agent-friendly local index for Janelia FlyLight Split-GAL4 resources
Project description
flylight-cli
Agent-friendly local index for Janelia FlyLight Split-GAL4 resources.
Surfaces used:
- CGI site: splitgal4.janelia.org
- Public bucket: janelia-flylight-imagery
- Bucket docs: README.md
Source order:
- release manifest json
- per-line/per-image S3 metadata json
- CGI release summary html
CLI
Install:
pip install -e .
Homebrew:
brew tap gumadeiras/tap
brew install flylight-cli
flylight --version
Entry:
flylight --help
python3 janelia_splitgal4.py
Examples:
flylight releases
flylight sync --release 'MB Paper 2014'
flylight sync --all
flylight sync --all --force
flylight sync --all --offline
flylight sync --all --refresh-cache
flylight sync --release 'Descending Neurons 2018' --workers 8
flylight sync-plan --all
flylight sync-plan --release 'MB Paper 2014' --offline
flylight reindex
flylight cache-info
flylight schema --entity line
flylight examples --topic release-diff
flylight snapshot-export --out data/flylight-snapshot.tar.gz
flylight snapshot-import data/flylight-snapshot.tar.gz --force
flylight search --expressed-in DNp04 --ad 31B08 --source-kind line-metadata
flylight search --em-cell-type EPG
flylight search-text 'DNp04 AND 31B08'
flylight search-images --area Brain --objective 20x --robot-id 3007645
flylight search-images --em-cell-type EPG
flylight show-line SS00724 --release 'Descending Neurons 2018'
flylight show-image 6878306
flylight compare-line MB005B
flylight compare-release 'MB Paper 2014' 'MB Paper 2015'
flylight show-release 'MB Paper 2014' --include-lines --genotype 34A03
flylight stats
flylight export-ndjson --entity line --release 'Descending Neurons 2018'
flylight export-ndjson --entity image --term MB005B --out data/mb005b.ndjson
flylight export-ndjson --entity release
flylight export-ndjson --entity compare-line --line MB005B
flylight export-ndjson --entity compare-release --left-release 'MB Paper 2014' --right-release 'MB Paper 2015'
Notes
- HTTP fetches are cache-first by default; cached responses are reused until you pass
--refresh-cache. --offlinedisables network access and uses cached HTTP responses only.- cache path:
data/http_cache sync-planis a dry-run: source kind, cache coverage, db coverage, skip vs sync decision.reindexrebuilds derived searchable fields from stored raw image payloads; use it after schema upgrades on an existing db.snapshot-exportbundles sqlite + raw manifests + HTTP cache for portable offline reuse.snapshot-importrestores that bundle on another machine or working copy.schemashows agent-facing row shapes and producer commands.examplesshows canned command recipes for common agent workflows.sync --allis incremental by default; unchanged releases skip.cache-infoalso reports cache suffix counts and oldest/newest cached timestamps.- missing release manifest: fallback walks line dirs + metadata jsons.
- CGI summary enriches line-level fields like expressed-in, genotype, AD, DBD.
- line/image exports include normalized arrays alongside text fields.
- line/image records now include normalized
em_cell_typesderived from rawem_cell_typemetadata when present. searchsupports field filters over line metadata: AD, DBD, genotype, expressed-in, robot-id, source-kind.searchandsearch-imagesalso support exact--em-cell-typematching.search-textuses SQLite FTS for faster boolean/full-text matching over line text fields.search-imagessupports field filters over image metadata: area, objective, gender, robot-id, roi.compare-lineshows shared fields for the same line across synced releases.compare-releasesummarizes added, removed, changed, and unchanged lines between two synced releases.export-ndjsonalso supportscompare-lineandcompare-releaseentities for agent ingest.- local db path:
data/janelia_splitgal4.sqlite - raw manifest cache:
data/raw_manifests/*.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flylight_cli-0.12.2.tar.gz.
File metadata
- Download URL: flylight_cli-0.12.2.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
531a5c026e5df3aea0a873c7813dff638568ddd8396c296cc0e04fba8e32740e
|
|
| MD5 |
a1ef5f4cd5f49034a814db7f1033f16b
|
|
| BLAKE2b-256 |
113203caa94cfebcddc2a20984df87106b78804cd2c3dcefdf1acdd7671de6fd
|
Provenance
The following attestation bundles were made for flylight_cli-0.12.2.tar.gz:
Publisher:
release.yml on gumadeiras/flylight-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flylight_cli-0.12.2.tar.gz -
Subject digest:
531a5c026e5df3aea0a873c7813dff638568ddd8396c296cc0e04fba8e32740e - Sigstore transparency entry: 1440355430
- Sigstore integration time:
-
Permalink:
gumadeiras/flylight-cli@4b21f67fa589c1eaccfcb965b50e06fd1ee4ae3f -
Branch / Tag:
refs/tags/v0.12.2 - Owner: https://github.com/gumadeiras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b21f67fa589c1eaccfcb965b50e06fd1ee4ae3f -
Trigger Event:
push
-
Statement type:
File details
Details for the file flylight_cli-0.12.2-py3-none-any.whl.
File metadata
- Download URL: flylight_cli-0.12.2-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354ae31ba66cb13746a3d7030b1892a17eaa821e3f160f8c764733f1d8bf7115
|
|
| MD5 |
81dfe3221e8b26f791825667f33276ea
|
|
| BLAKE2b-256 |
0f73c40809553cce32f9c66dbf42286719404af6497d26b44008e19ba2b62501
|
Provenance
The following attestation bundles were made for flylight_cli-0.12.2-py3-none-any.whl:
Publisher:
release.yml on gumadeiras/flylight-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flylight_cli-0.12.2-py3-none-any.whl -
Subject digest:
354ae31ba66cb13746a3d7030b1892a17eaa821e3f160f8c764733f1d8bf7115 - Sigstore transparency entry: 1440355480
- Sigstore integration time:
-
Permalink:
gumadeiras/flylight-cli@4b21f67fa589c1eaccfcb965b50e06fd1ee4ae3f -
Branch / Tag:
refs/tags/v0.12.2 - Owner: https://github.com/gumadeiras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b21f67fa589c1eaccfcb965b50e06fd1ee4ae3f -
Trigger Event:
push
-
Statement type: