Learn R Programming

rsynthbio (version 4.0.0)

get_example_query: Get Example Query for Model

Description

Retrieves an example query structure for a specific model. This provides a template that can be modified for your specific needs.

Usage

get_example_query(model_id, api_base_url = API_BASE_URL)

Value

A list representing a valid query structure for the specified model.

Arguments

model_id

Character string specifying the model ID (e.g., "gem-1-bulk", "gem-1-sc").

api_base_url

The base URL for the API server. Default is API_BASE_URL.

Examples

Run this code
if (FALSE) {
# Get example query for bulk RNA-seq model
query <- get_example_query(model_id = "gem-1-bulk")

# Get example query for single-cell model
query_sc <- get_example_query(model_id = "gem-1-sc")

# Modify the query structure
query$inputs[[1]]$num_samples <- 10
}

Run the code above in your browser using DataLab