The R SDK (Documentation Index
Fetch the complete documentation index at: https://docs.strandai.com/llms.txt
Use this file to discover all available pages before exploring further.
strandai) provides the same surface as the Python SDK with
idiomatic R conventions: all functions are prefixed strand_* and results
can be returned as a SpatialExperiment
for downstream Bioconductor pipelines.
The package is named
strandai to avoid a CRAN clash with the
unrelated strand package.Install
SpatialExperiment (recommended) you’ll also need:
Configuration
| Source | Argument / variable | Default |
|---|---|---|
| Arg | strand_client(api_key = ...) | reads env |
| Env | STRAND_API_KEY | required |
| Env | STRAND_BASE_URL | https://app.strandai.com |
End-to-end
Function reference
| Function | What it does |
|---|---|
strand_client(api_key, base_url) | Construct a client handle. |
strand_upload_file(client, path, progress) | Resumable chunked upload of a WSI to GCS. |
strand_estimate(client, upload_id, markers) | Compute credit cost without reserving. |
strand_predict(client, upload_id, markers) | Submit a prediction; reserves credits. |
strand_job_get(client, job_id) | Refetch a job snapshot. |
strand_job_wait(job, progress, timeout) | Block until terminal status. |
strand_download_results(job) | Return results as SpatialExperiment. |
Error handling
Documented HTTP error codes map to typed conditions you can dispatch on:| HTTP | Condition class |
|---|---|
| 400 | strand_bad_request_error |
| 401 | strand_auth_error |
| 402 | strand_insufficient_credits_error (carries required) |
| 404 | strand_not_found_error |
| 429 | strand_rate_limit_error (carries retry_after) |
See also
- Quickstart: five-minute walkthrough.
- REST API overview: the underlying HTTP surface.
- Pricing: how credits map to slides × markers.