+ CyteType by Nygen Analytics
+ __ICON__
+ __MESSAGE__
+
+
+ Signed in as __EMAIL__
+ Your API key has been saved on this device.
+ Open dashboard
+
+ Redirecting to your dashboard in 5 seconds.
+
+
+
+
+
+ Return to R and try again.
+
+
+
+
diff --git a/man/CyteTypeR.Rd b/man/CyteTypeR.Rd
index 9200ee8..4aedb0c 100644
--- a/man/CyteTypeR.Rd
+++ b/man/CyteTypeR.Rd
@@ -44,11 +44,18 @@ CyteTypeR(
\item{timeout_seconds}{Integer. Maximum time (seconds) to wait for results before erroring. Default from options (7200).}
-\item{api_url}{Optional character. CyteType API base URL. If \code{NULL}, uses the option/default URL. Default is \code{NULL}.}
+\item{api_url}{Optional character. CyteType API server origin. If \code{NULL},
+uses \code{CYTETYPE_API_URL}, the configured R option, or
+\verb{https://cytetype.nygen.io}.}
-\item{auth_token}{Optional character. Bearer token for API auth. If \code{NULL}, uses none. Default is \code{NULL}.}
+\item{auth_token}{Optional character. Bearer token for API authentication.
+If \code{NULL}, uses credentials saved by \code{\link[=SetupCyteTypeR]{SetupCyteTypeR()}} or
+\code{\link[=LoginCyteTypeR]{LoginCyteTypeR()}}.}
-\item{save_query}{Logical. Whether to save the request payload to a JSON file. Default is \code{TRUE}.}
+\item{save_query}{Logical. Whether to save the request payload to a JSON
+file. Default is \code{TRUE}. Set this to \code{FALSE} when \code{llm_configs} contains
+provider credentials because the saved payload includes the complete LLM
+configuration.}
\item{query_filename}{Character. Filename for the saved query when \code{save_query} is \code{TRUE}. Default is \code{"query.json"}.}
@@ -74,14 +81,14 @@ and integration of annotations back into the Seurat object.
The function performs the following workflow:
\enumerate{
\item Constructs the analysis query from prepared data
-\item Saves query and job details to local JSON files
-\item Submits job to CyteType API
+\item Optionally saves the query to a JSON file
+\item Submits the job and records its details in the returned object
\item Polls for job completion with progress updates
-\item Retrieves results and integrates annotations into Seurat object
+\item Retrieves results and integrates annotations into the Seurat object
}
-Job details are automatically saved to \verb{job_details_\{job_id\}.json} for
-later reference or manual result retrieval.
+Job details are stored in the returned Seurat object's \code{misc} slot for later
+retrieval with \code{\link[=GetResults]{GetResults()}}.
}
\examples{
\dontrun{
diff --git a/man/GetResults.Rd b/man/GetResults.Rd
index 88f7060..dafd882 100644
--- a/man/GetResults.Rd
+++ b/man/GetResults.Rd
@@ -8,7 +8,8 @@ GetResults(
obj = NULL,
job_id = NULL,
results_prefix = "cytetype",
- auth_token = NULL
+ auth_token = NULL,
+ api_url = NULL
)
}
\arguments{
@@ -18,14 +19,21 @@ GetResults(
\item{results_prefix}{Prefix used when storing results. Default \code{"cytetype"}.}
-\item{auth_token}{Optional bearer token for API fetch.}
+\item{auth_token}{Optional bearer token for API fetch. If \code{NULL}, uses
+saved CyteType credentials. When retrieving a job stored in \code{obj}, an
+explicit token also requires a matching \code{api_url}.}
+
+\item{api_url}{Optional CyteType server origin for standalone or legacy job
+retrieval. When \code{NULL}, uses \code{CYTETYPE_API_URL} or
+\verb{https://cytetype.nygen.io}.}
}
\value{
Result list (annotations, summary, etc.), or transformed results when fetching by \code{job_id} only.
}
\description{
-If \code{obj} and \code{results_prefix} are given, tries to load from \code{obj@misc} first;
-if not found but job details exist, fetches from the API and stores in \code{obj}.
+If \code{obj} and \code{results_prefix} are given, tries to load from
+\code{obj@misc} first. If no local result exists but job details are
+available, fetches the result from the API.
If only \code{job_id} is given, fetches from the API and returns (saves JSON).
}
\seealso{
diff --git a/man/InstallCyteTypeRCli.Rd b/man/InstallCyteTypeRCli.Rd
new file mode 100644
index 0000000..14c45b4
--- /dev/null
+++ b/man/InstallCyteTypeRCli.Rd
@@ -0,0 +1,31 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/cli.R
+\name{InstallCyteTypeRCli}
+\alias{InstallCyteTypeRCli}
+\title{Install the cytetyper terminal command}
+\usage{
+InstallCyteTypeRCli(destination = NULL, overwrite = FALSE)
+}
+\arguments{
+\item{destination}{Directory in which to install the command. Defaults to
+the directory containing the active \code{Rscript} executable. The default is
+recommended because the launcher uses the adjacent \code{Rscript} executable.}
+
+\item{overwrite}{Whether to replace an existing command.}
+}
+\value{
+The installed command path, invisibly.
+}
+\description{
+Install the cytetyper terminal command
+}
+\details{
+After installation, run \verb{cytetyper setup} in a terminal to authenticate
+against \verb{https://cytetype.nygen.io}. During development, use
+\verb{cytetyper setup --api-url "