acidgenomes.make_gene_to_symbol

acidgenomes.make_gene_to_symbol(df: DataFrame, format: str = 'make_unique', quiet: bool = False) GeneToSymbol

Create a GeneToSymbol mapping from a DataFrame.

Parameters:
  • df (pd.DataFrame) – DataFrame containing gene_id and gene_name columns.

  • format (str) – Symbol format: "make_unique" (deduplicate names by appending suffixes), "1:1" (keep one gene per name), or "unmodified".

  • quiet (bool) – Suppress the warning logged when rows are dropped for a missing gene symbol.

Returns:

Gene ID to gene symbol mapping.

Return type:

GeneToSymbol