Skip to content

hed-standard/hed-web

Repository files navigation

HED Web Tools

Python3 Documentation Maintainability Code Coverage

What is HED?

HED (Hierarchical Event Descriptors) is a framework for systematically describing both laboratory and real-world events. HED tags are comma-separated path strings. The goal of HED is to describe precisely the nature of the events of interest occurring in an experiment using a common structured vocabulary and standardized tools. The HED framework has been developed for neurological imaging data (e.g., EEG, MEG, iEEG, fMRI), physiological (e.g., ECG, EMG, GSR) as well as multimodal experiment (e.g., mobile brain/body imaging). HED has been adopted as part of the BIDS (https://bids.neuroimaging.io) standard for brain imaging and accepted as a standard by the INCF (https://www.incf.org).

HED web tools

The HED web tools are a set of web-based applications for validating and analyzing Hierarchical Event Descriptors (HED) annotations. These tools rely on are designed to be used in a web browser and can be deployed locally or from a DOCKER container.

Resource URL Description
HED Tools (PyPI) https://hedtools.org/hed Production version of HED online tools
HED Tools (main) https://hedtools.org/hed_dev Latest features, some experimental
HED Resources https://www.hed-resources.org Documentation and tutorials
API Documentation https://hed-web.readthedocs.io Technical documentation
GitHub Repository https://github.com/hed-standard/hed-web Source code and issues

User Guide

  • Quick start, local run, Docker deployment, and reverse proxy setup: see docs/user_guide.md.
  • Deployment script now supports an optional third parameter to bind host ports (e.g., 127.0.0.1 for localhost-only): ./deploy.sh [branch] [environment] [bind_address].

HED Tools Online

HED online tools summary

The following table summarizes the available online tools. The tools are organized around the types of data that the tools handle. The Actions refer to the types of actions that can be performed on the data through the online tools. Each action is linked to its corresponding documentation to provide additional information. NEW: an experimental CTagger online annotation tool is now available.

Data type Action Description
Events Validate Validate HED in a tabular file and its sidecar.
Assemble HED annotations Return a list of the assembled HED strings for a tabular file.
Search HED strings Return a vector of 0's and 1's based on a HED search query of HED annotation strings extracted from an event file.
Generate JSON sidecar template Create a sidecar template from a tabular file.
Execute remodel script Execute JSON script of HED remodeling commands.
Sidecars Validate Validate HED in a BIDS JSON sidecar.
Convert to long Convert HED tags in a sidecar to full paths.
Convert to short Convert HED tags in a sidecar to single tags.
Extract HED spreadsheet Create a 4-column spreadsheet from HED in a sidecar.
Merge HED spreadsheet Merge HED from spreadsheet into a JSON sidecar.
Spreadsheets Validate Validate HED in a spreadsheet (.xlsx or .tsv).
Convert to long Convert HED tags in a spreadsheet to full paths.
Convert to short Convert HED tags in a spreadsheet to single tags.
Strings Validate Validate a HED string.
Convert to long Convert a HED string to full paths.
Convert to short Convert a HED string to single tags.
Search HED strings Search a HED string based on a HED search query.
Schemas Validate Validate a HED schema.
Convert schema Convert a HED schema to other format.
Compare HED schemas Show differences between two HED schemas.

Events files are tabular (tab-separated) files. The first row of an events file contains column names. Each subsequent row corresponds to an event marker at a specified time in the corresponding data file.

Note: The operations listed for events file apply to any tabular (tab-separated value) file with column names.

Sidecars are JSON text files containing metadata. Sidecars follow the requirements of the BIDS (Brain Imaging Data Structure) standard.

Spreadsheets contain tabular data in either as an Excel (.xlsx) or as a tab-separated (.tsv) text file. They are used for convenience in assigning HED tags to event codes.

Strings refer to HED annotations, which are entered as strings for quick checks for validity or conversion.

Schemas refer to HED schema vocabularies, which may be either in .mediawiki or .xml format. These tools are used by schema developers creating the HED vocabularies and are not of interest to annotators or analysts.

More detailed help on using these online tools is available in the HED online tools documentation.

HED REST services

The HED online tools are also available as callable web services. More detailed help on calling these services is available at: HED RESTful services Downloadable examples of calling these services from a MATLAB program can be found in the GitHub MATLAB web service examples.

Where to find out more?

Online deployment

The stable version of the HED online tools is available for your use at: https://hedtools.org/hed. An alternate version https://hedtools.org/hed_dev has the latest features, some of which are experimental.

About

Web interface and docker deployment for python HED (Hierarchical Event Descriptor) tools.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5