Sends a query to the Synthesize Bio API for prediction and retrieves gene expression samples. This function sends the query to the API and processes the response into usable data frames.Documentation Index
Fetch the complete documentation index at: https://docs.synthesize.bio/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Arguments
query: A list representing the query data to send to the API. Useget_example_query()to generate an example. The query supports additional optional fields:total_count(integer): Library size used when converting predicted log CPM back to raw counts. Higher values scale counts up proportionally.deterministic_latents(logical): If TRUE, the model uses the mean of each latent distribution instead of sampling, producing deterministic outputs for the same inputs. Useful for reproducibility.seed(integer): Random seed for reproducibility.model_id: Character string specifying the model ID (e.g., “gem-1-bulk”, “gem-1-sc”). Uselist_models()to see available models.api_base_url: The base URL for the API server. Default is API_BASE_URL.poll_interval_seconds: Seconds between polling attempts of the status endpoint. Default is DEFAULT_POLL_INTERVAL_SECONDS (2).poll_timeout_seconds: Maximum total seconds to wait before timing out. Default is DEFAULT_POLL_TIMEOUT_SECONDS (900 = 15 minutes).return_download_url: Logical, if TRUE, returns a list containing the signed download URL instead of parsing into data frames. Default is FALSE.raw_response: Logical, if TRUE, returns the raw (unformatted) JSON response from the API without applying any output transformers. Default is FALSE....: Additional parameters to include in the query body. These are passed directly to the API and validated server-side.
Returns
A list. Ifreturn_download_url is FALSE (default), the list contains
two data frames: metadata and expression. If TRUE, the list
contains download_url and empty metadata and expression data frames.
Examples
Source
Generated fromR/call_model_api.R and the package help files in man/.