% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prompt_templates.R
\name{normalize_cluster_gene_list}
\alias{normalize_cluster_gene_list}
\title{Normalize list input into a canonical cluster->genes mapping}
\usage{
normalize_cluster_gene_list(input)
}
\arguments{
\item{input}{List input for cluster annotation}
}
\value{
Named list of character vectors (cluster_id -> genes)
}
\description{
For list input, each element can be either:
\enumerate{
\item a list containing a \code{genes} field, or
\item a character vector of genes.
}
}
\details{
Naming rules:
\itemize{
\item unnamed lists are assigned 0-based IDs ("0", "1", ...)
\item numeric names are preserved as-is (e.g., "1", "2", "3" stays unchanged)
\item non-numeric names are preserved as-is
}
}
\keyword{internal}
