torchcell.models.cell_graph_transformer_metabolism.MetabolomeVectorHead
- class MetabolomeVectorHead(hidden_dim: int, output_dim: int, use_gene_pool: bool = True, use_pert_pool: bool = True, dropout: float = 0.1, param_dim: int = 1)[source]
Bases:
ModuleWhole-cell readout for a FIXED-COLUMN metabolome vector (Mulleder’s 19 AAs).
The columns are the measured metabolite keys in
sorted()order – the same order thePerturbationgraph processor uses when it flattens themetabolite_leveldict – so columnkof the output is always the same amino acid. This head does NOT read the Yeast9 metabolite node set and needs nos_NNNNmapping: the measured set is small, dense, and fixed, which is precisely why Track A can skip the metabolite-id alignment that a general per-metabolite readout would require.