Generates a sample query for prediction and validation for the model.
This function provides an example query structure that can be modified for specific needs.
The sample query contains two example inputs: one for a cell line with CRISPR perturbation
and another for a primary tissue sample with disease information.
Usage
get_valid_query(modality = "bulk")
Arguments
- modality
Character string specifying the modality. Either "bulk" or "single-cell".
Default is "bulk".
Value
A list representing a valid query structure.
Examples
# Get a sample query for bulk RNA-seq
query <- get_valid_query()
# Get a sample query for single-cell RNA-seq
query_sc <- get_valid_query(modality = "single-cell")
# Modify the query
query$inputs[[1]]$num_samples <- 10