gnomad.resources.config

Configuration for loading resources.

gnomad.resources.config.GnomadPublicResourceSource(value)

Sources for public gnomAD resources.

gnomad.resources.config.get_default_public_resource_source()

Get the default source for public gnomAD resources.

Configuration for loading resources.

class gnomad.resources.config.GnomadPublicResourceSource(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Sources for public gnomAD resources.

GNOMAD = 'gnomAD'
GOOGLE_CLOUD_PUBLIC_DATASETS = 'Google Cloud Public Datasets'
REGISTRY_OF_OPEN_DATA_ON_AWS = 'Registry of Open Data on AWS'
AZURE_OPEN_DATASETS = 'Azure Open Datasets'
gnomad.resources.config.get_default_public_resource_source()[source]

Get the default source for public gnomAD resources.

The default source is determined by…

  • If the GNOMAD_DEFAULT_PUBLIC_RESOURCE_SOURCE environment variable is set, use the source configured there.

  • Otherwise, if Hail determines that is is running in a cloud provider’s Spark environment, use the source from that cloud provider. For example, use Azure Open Datasets if running on an Azure HDInsight cluster.

  • Otherwise, use Google Cloud Public Datasets.

Return type:

Union[GnomadPublicResourceSource, str]

Returns:

Default resource source