-
Notifications
You must be signed in to change notification settings - Fork 0
hosting
Step-by-step guide to hosting your SQANTI-browser track hub for UCSC Genome Browser.
Your track hub needs to be publicly accessible via HTTP/HTTPS. You can use:
| Option | Best For | Setup Time |
|---|---|---|
| GitHub Repositories | Most users, free, easy | 5 minutes |
| Institutional Server | Lab/university hosting | Varies |
| Cloud Storage | Large files, high traffic | 10 minutes |
| Personal Web Server | Full control | Varies |
All options work equally well with UCSC! Choose what's easiest for you.
- Create public repository on github.com
- Upload your hub files (drag & drop or git push)
-
Get the raw URL to
hub.txt - Load in UCSC (My Data → Track Hubs)
Your hub URL must be the raw GitHub URL:
✅ Correct:
https://raw.githubusercontent.com/username/repo/main/hub.txt
❌ Wrong:
https://github.com/username/repo/blob/main/hub.txt
How to get it:
- Click on
hub.txtin your repo → Click "Raw" button → Copy URL
Or construct it:
https://raw.githubusercontent.com/[username]/[repo]/[branch]/hub.txt
# In your hub directory
git init
git add .
git commit -m "Add SQANTI hub"
git remote add origin https://github.com/username/my-hub.git
git push -u origin mainIf your institution provides web hosting:
# Upload via SCP
scp -r my_hub/ user@server.edu:/public_html/hubs/
# Your hub URL:
http://server.edu/~user/hubs/my_hub/hub.txtRequirements:
- Files must be publicly accessible (no authentication)
- Web server must allow direct file access
# Upload and make public
aws s3 cp my_hub/ s3://my-bucket/my_hub/ --recursive --acl public-read
# Your hub URL:
https://my-bucket.s3.amazonaws.com/my_hub/hub.txt# Upload and make public
gsutil -m cp -r my_hub/ gs://my-bucket/
gsutil -m acl ch -u AllUsers:R gs://my-bucket/my_hub/**
# Your hub URL:
https://storage.googleapis.com/my-bucket/my_hub/hub.txtSame steps for all hosting options:
-
Go to genome.ucsc.edu
-
Click My Data → Track Hubs
- Paste your hub URL in the Connected Hubs tab (must point to
hub.txt)
-
Click Add Hub
-
Select genome and navigate to view tracks
First time? Tracks may load in "hide" mode - change to "full" or "pack" to see them.
- Disconnect the hub in UCSC (My Hubs → Disconnect)
- Add
udcTimeout=5to force cache refresh:https://genome.ucsc.edu/cgi-bin/hgTracks?udcTimeout=5 - Reconnect your hub
# Regenerate hub locally
python -m sqanti_browser ...
# Push updates
git add .
git commit -m "Update hub"
git pushThen disconnect/reconnect in UCSC as above.
Always validate your hub locally first:
# Check hub structure
hubCheck hub.txt
# Test inputs before generating hub
python -m sqanti_browser ... --validate-onlyThis catches errors before you upload!
| Problem | Solution |
|---|---|
| Hub not loading | • Check URL is public (try in incognito browser) • Verify hub.txt is at the URL root• Run hubCheck hub.txt locally |
| Files not found (404) | • Use relative paths in trackDb.txt, not absolute• Check all .bb files uploaded |
| Changes not appearing | • Disconnect hub • Add udcTimeout=5 to URL• Reconnect hub |
| GitHub: Wrong URL format | Must use raw.githubusercontent.com, not regular GitHub URL |
More help: See Troubleshooting
Dropbox / Google Drive - Require authentication, don't provide direct file access
Private repositories - UCSC cannot access authentication-protected files
- Quick Reference - All commands on one page
- Usage Examples - Generate your hub
- Troubleshooting - Detailed error solutions
- FAQ - Common questions
Wiki index
Home
Quick Reference
FAQ
Glossary
Installation Guide
Usage Examples
Hosting Guide
Command Line Reference
Output Files
Interactive HTML Tables
Filtering in UCSC
Trix Search Syntax
Isoform Ordering
Custom Coloring
Working with non-reference genomes
Sharing sessions
Creating subset sessions
SQANTI-reads Integration
Troubleshooting