Resource files

This module contains a number of resource files that INDRA uses to perform tasks such as name standardization and ID mapping.

indra.resources.get_resource_path(fname)[source]

Return the absolute path to a file in the resource folder.

indra.resources.load_resource_json(fname)[source]

Load a given JSON file from the resources folder.

Parameters:fname (str) – The name of the json file in the resources folder.
Returns:The content of the JSON file loaded into a dict/list.
Return type:json
indra.resources.open_resource_file(resource_name, *args, **kwargs)[source]

Return a file handle to an INDRA resource file.