Reference information for annotation sources in MetaHQ.
To add a new reference, build a new class with a Reference structure and add it to the REFERENCE_MAP at the bottom of this script.
Author: Parker Hicks
Date: 2026-04-01
Last updated: 2026-04-10 by Parker Hicks
Reference
¶
Bases: ABC
Reference scaffold.
| Attributes: |
|
|---|
get_allowed_sources(license_query)
¶
Returns the set of source names permitted by a license filter.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
Examples:
>>> from metahq_core.sources import get_allowed_sources
>>> get_allowed_sources('permissive')
{'ALE', 'BGee', 'Cello', 'CREEDS', 'Golightly_2018', 'Gu_2023', 'Johnson_2023', 'KrishnanLab'}
>>> get_allowed_sources('nc')
{'DiSignAtlas', 'Gemma', 'Sirota_2011', 'URSA', 'URSA_HD'}
>>> get_allowed_sources('any') is None
True