The Hub Check Utility API is used to check that the submitted hub files are valid and correctly formatted.
Under the hood, this API uses hubCheck
utility developped by UCSC.
- Python 3.8+
Clone the project
git clone https://github.com/Ensembl/thr_hubcheck_api.git
cd thr_hubcheck_api
Create, activate the virtual environment and install the required packages
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run
uvicorn main:app --reload
Curl
curl -X 'GET' \
'http://127.0.0.1:8000/hubcheck?hub_url=<hub_url>' \
-H 'accept: application/json'
Request URL
http://127.0.0.1:8000/hubcheck?hub_url=<hub_url>
Hubs can be checked for valid file configuration, trackDb keywords, and composite or super track settings with the Hub Development tool.
You can also use hubCheck utility command-line. Take a look at Debugging Track Hubs Documentation for more details.
GitHub URL: https://github.com/ucscGenomeBrowser/kent/tree/master/src/hg/utils/hubCheck