torchcell.metabolism.parameters.molecular_weight_table

molecular_weight_table(model_dir: str, gene_ids: list[str], default_da: float = 40000.0) → ParameterTable[source]

Per-gene molecular weight in kDa, from SwissProt.

Parameters:
  • model_dir – GEM checkout root.

  • gene_ids – GEM gene ids in tensor-index order.

  • default_da – Fallback in daltons for a gene SwissProt does not carry. ~40 kDa is the median yeast protein; it is a default and is tagged as one.