gpt: GPT

View source: R/gpt.R

gptR Documentation

GPT

Description

Run GPT on a metadata table.

Usage

gpt(
  clusts,
  label_var = "dataset",
  cluster_var = "seurat_clusters",
  terms_per_cluster = 5,
  force_new = FALSE,
  verbose = TRUE
)

Arguments

clusts

data.frame/data.table with the per-cell metadata and cluster assignments.

label_var

Which cell metadata column to input to NLP analysis.

cluster_var

Which cell metadata column to use to identify which cluster each cell is assigned to.

terms_per_cluster

The maximum number of words to return per cluster.

force_new

If NLP results are already detected the metadata, set force_new=TRUE to replace them with new results.

verbose

Whether to print messages.


neurogenomics/scNLP documentation built on Oct. 8, 2024, 5:30 p.m.