Harmonizome.get_gene_functional_associations_formatted()

Get functional associations for a gene in Harmonizome web interface format.

Usage

Source

Harmonizome.get_gene_functional_associations_formatted(
    gene_symbol, datasets=None, use_download=False
)

This method returns data structured exactly like the Harmonizome web interface, with datasets, summaries, and categorized associations with scores.

Parameters

gene_symbol: str

Gene symbol (e.g., ‘STAT3’, ‘BRCA1’)

datasets: Optional[list[str]] = None

List of dataset names to search. If None, searches all datasets.

use_download: bool = False
If True, downloads files to get associations. If False, uses API.

Returns

dict[str, Any]

Dictionary formatted like Harmonizome web interface with:

  • gene_info: Basic gene information

  • functional_associations: List of datasets with associations