Skip to content

Commit daabbec

Browse files
committed
Consolidated the documentation
1 parent 5bec26d commit daabbec

3 files changed

Lines changed: 80 additions & 231 deletions

File tree

docs/index.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,8 @@ Python HEDTools features
2525
* **NWB support**: Read and write HED annotations in NWB files using `ndx-hed <https://www.hedtags.org/ndx-hed>`_
2626
* **Multiple formats**: Work with JSON sidecars, TSV files, Excel spreadsheets
2727

28-
Getting started
29-
---------------
30-
31-
.. toctree::
32-
:maxdepth: 2
33-
34-
Overview <overview>
35-
36-
Programming with HEDTools
37-
-------------------------
28+
User guide
29+
----------
3830

3931
.. toctree::
4032
:maxdepth: 2

docs/overview.md

Lines changed: 0 additions & 191 deletions
This file was deleted.

docs/user_guide.md

Lines changed: 78 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,94 @@
33
description: Complete user guide for Python HEDTools - validation, BIDS
44
integration, analysis, and command-line tools for HED annotations
55
keywords: HED tutorial, Python guide, validation examples, BIDS datasets,
6-
sidecar files, command-line interface, Jupyter notebooks
6+
sidecar files, command-line interface, Jupyter notebooks, HED overview, event
7+
descriptors, neuroscience, schema
78
---
89
```
910

1011
# Python HEDTools guide
1112

12-
```{index} user guide, tutorial, getting started
13+
```{index} user guide, tutorial, getting started, HED, Hierarchical Event Descriptors
1314
```
1415

15-
This guide provides step-by-step instructions for using the HED Python tools for validation, BIDS integration, and analysis.
16-
17-
## Quick links
18-
19-
- 📚 [API Reference](api/index.html)
20-
- 📓 [Jupyter notebooks](https://github.com/hed-standard/hed-python/tree/main/examples)
21-
- 🐛 [GitHub issues](https://github.com/hed-standard/hed-python/issues)
22-
- 🎓 [HED resources](https://www.hedtags.org/hed-resources)
23-
- 📖 [HED specification](https://www.hedtags.org/hed-specification)
24-
- 🌐 [Web tools](https://hedtools.org/hed)
16+
HED (Hierarchical Event Descriptors) is a framework for systematically describing events and experimental metadata in machine-actionable form. This guide provides comprehensive documentation for using the HED Python tools for validation, BIDS integration, and analysis.
2517

2618
## Table of contents
2719

28-
1. [Getting started](#getting-started)
29-
2. [Working with HED schemas](#working-with-hed-schemas)
30-
3. [Validating HED strings](#validating-hed-strings)
31-
4. [Working with BIDS datasets](#working-with-bids-datasets)
32-
5. [Working with sidecars](#working-with-sidecars)
33-
6. [Jupyter notebooks](#jupyter-notebooks)
34-
7. [Command-line tools](#command-line-tools)
35-
8. [Best practices](#best-practices)
36-
9. [Troubleshooting](#troubleshooting)
20+
01. [What is HED?](#what-is-hed)
21+
02. [What are Python HEDTools?](#what-are-python-hedtools)
22+
03. [Getting started](#getting-started)
23+
04. [Working with HED schemas](#working-with-hed-schemas)
24+
05. [Validating HED strings](#validating-hed-strings)
25+
06. [Working with BIDS datasets](#working-with-bids-datasets)
26+
07. [Working with sidecars](#working-with-sidecars)
27+
08. [Jupyter notebooks](#jupyter-notebooks)
28+
09. [Command-line tools](#command-line-tools)
29+
10. [Best practices](#best-practices)
30+
11. [Troubleshooting](#troubleshooting)
3731

3832
## Getting started
3933

34+
```{index} installation, pip, PyPI
35+
```
36+
4037
### Installation
4138

42-
Install HEDTools from PyPI:
39+
#### From PyPI (recommended)
40+
41+
Install the latest stable release:
4342

4443
```bash
4544
pip install hedtools
4645
```
4746

48-
For the latest development version from GitHub:
47+
**Note**: The PyPI package includes the core hedtools library but **not the example Jupyter notebooks**. To access the notebooks, see the options below.
48+
49+
#### For Jupyter notebook examples
50+
51+
The example notebooks are only available in the GitHub repository. Choose one of these options:
52+
53+
**Option 1: Clone the full repository**
54+
55+
```bash
56+
git clone https://github.com/hed-standard/hed-python.git
57+
cd hed-python
58+
pip install -e .[examples]
59+
# Notebooks are in: examples/
60+
```
61+
62+
**Option 2: Download just the examples directory**
63+
64+
```bash
65+
svn export https://github.com/hed-standard/hed-python/trunk/examples
66+
cd examples
67+
pip install hedtools jupyter notebook
68+
```
69+
70+
See [examples/README.md](https://github.com/hed-standard/hed-python/tree/main/examples) for detailed notebook documentation.
71+
72+
#### From GitHub (latest development version)
4973

5074
```bash
5175
pip install git+https://github.com/hed-standard/hed-python/@main
5276
```
5377

78+
#### For development
79+
80+
Clone the repository and install in editable mode:
81+
82+
```bash
83+
git clone https://github.com/hed-standard/hed-python.git
84+
cd hed-python
85+
pip install -e .
86+
```
87+
88+
#### Python requirements
89+
90+
- **Python 3.10 or later** is required
91+
- Core dependencies: pandas, numpy, defusedxml, openpyxl
92+
- Jupyter support: Install with `pip install jupyter notebook`
93+
5494
### Basic example
5595

5696
Here's a simple example to get you started with HED validation:
@@ -826,6 +866,21 @@ print(get_cache_directory())
826866

827867
### Getting help
828868

869+
#### Documentation resources
870+
871+
- **[API reference](api/index.html)**: Detailed function and class documentation
872+
- **[HED specification](https://www.hedtags.org/hed-speciification)**: Formal annotation rules
873+
- **[HED resources](https://www.hedtags.org/hed-resources)**: HED tutorials and guides
874+
- **[HED online tools](https://hedtools.org/hed)**: Web-based interface requiring no programming
875+
- **[Example datasets](https://github.com/hed-standard/hed-examples)**: HED-annotated example datasets
876+
877+
#### Support
878+
879+
- **Issues and bugs**: Open an [issue](https://github.com/hed-standard/hed-python/issues) on GitHub
880+
- **Questions and ideas**: Contribute to the [HED organization discussions](https://github.com/orgs/hed-standard/discussions)
881+
- **Online validation**: Try [HED online tools](https://hedtools.org/hed) for web-based access
882+
- **Contact**: Email [hed.maintainers@gmail.com](mailto:hed.maintainers@gmail.com)
883+
829884
#### Before opening an issue
830885

831886
1. Try the [online tools](https://hedtools.org) to isolate the problem
@@ -841,10 +896,3 @@ Include:
841896
- Minimal code example that reproduces the problem
842897
- Full error traceback
843898
- Expected vs actual behavior
844-
845-
#### Additional resources
846-
847-
- **HED specification**: [www.hedtags.org/hed-specification](https://www.hedtags.org/hed-specification)
848-
- **HED resources**: [www.hedtags.org](https://www.hedtags.org/hed-resources)
849-
- **HED online tools**: [hedtools.org/hed](https://hedtools.org/hed)
850-
- **Example datasets**: [hed-examples](https://github.com/hed-standard/hed-examples/datasets)

0 commit comments

Comments
 (0)