gptbioinsightor.check_celltype

Contents

gptbioinsightor.check_celltype#

gptbioinsightor.check_celltype(input: AnnData | dict, out: Path | str = None, background: str = None, key: str = 'rank_genes_groups', topnumber: int = 15, n_jobs: int | None = None, provider: str = 'openai', model: str | None = None, group: str | Iterable[str] | None = None, base_url: str | None = None, rm_genes=True, sys_prompt=True)#

Check the reason why genesets are annotated as these celltypes.

Parameters:
  • input (AnnData | dict) – An AnnData object or geneset dict

  • out (Path | str, optional) – output path, by default None

  • background (str, optional) – background information of input data, by default None

  • key (str, optional) – deg group key, by default “rank_genes_groups”

  • topnumber (int, optional) – select top gene for analysis, by default 15

  • n_jobs (int | None, optional) – set multiple jobs for querying LLM, by default None

  • provider (str, optional) – LLM provider, by default “openai” “openai” for chatgpt “aliyun” for qwen “moonshot” for kimi

  • model (str | None, optional) – set a model based on LLM provider, by default None

  • group (str | Iterable[str] | None, optional) – _description_, by default None

  • base_url (str | None, optional) – customized LLM API url, by default None

  • rm_genes (bool, optional) – remove rb and mt genes, by default True

  • sys_prompt (bool, optional) – use system prompt, by default True

Return type:

None