@@ -239,24 +239,36 @@ outside the web flow.
239239git clone https://github.com/sensein/NeuroGhost.git
240240cd NeuroGhost
241241pip install -r requirements.txt
242+ ```
243+
244+ ** Full rebuild** (seeds schema.org, fetches external schemas, ingests everything, aligns, exports):
245+
246+ ``` bash
247+ python neuro_ghost/pipeline.py --fresh
248+ ```
242249
243- # 1. Seed with schema.org as the base vocabulary
244- python neuro_ghost/seed.py
250+ ** Local schemas only** (skips the external network fetch):
245251
246- # 2. Fetch + convert external schemas (BIDS, NWB, DANDI, openMINDS, AIND)
247- python neuro_ghost/converters/run_all.py
252+ ``` bash
253+ python neuro_ghost/pipeline.py --fresh --skip-converters
254+ ```
248255
249- # 3. Load a schema
250- python neuro_ghost/ingest_linkml.py --file schemas/bbqs.yml
256+ ** One schema** (incremental, adds to an existing DB):
251257
252- # 4. Compute alignments
253- python neuro_ghost/align.py --source bbqs
258+ ``` bash
259+ python neuro_ghost/pipeline.py --skip-converters --schemas schemas/bbqs.yml
260+ ```
254261
255- # 5. Export snapshot the frontend reads
256- python neuro_ghost/export_json.py --bump minor --schema bbqs
262+ ```
263+ Options:
264+ --fresh Delete the DB first (fixes version-mismatch errors)
265+ --skip-converters Skip fetching BIDS, NWB, DANDI, openMINDS, AIND
266+ --schemas FILE One or more specific .yml files to ingest
267+ --bump Version bump type: major / minor / patch [default: minor]
268+ --agent TEXT Name recorded in provenance [default: local]
257269```
258270
259- Then open ` index.html ` in a browser and you'll see the local snapshot.
271+ Then open ` index.html ` in a browser to see the local snapshot.
260272
261273
262274## Under the hood
0 commit comments