Skip to contents

This function searches for compositions in a SQLite database using specified filters. The filters include strain, percentage, and composition types.

Usage

search_compositions(filters, database = Sys.getenv("SDB_PATH"))

Arguments

filters

A named list containing filter criteria.

  • strain: a vector of strains to filter by

  • percentage: a vector of percentages to filter by

  • composition_types: a vector of composition types to filter by

database

The path to the SQLite database. Defaults to the value from the SDB_PATH environment variable.

Value

A data frame containing the filtered compositions.

Examples

if (FALSE) { # \dontrun{
result <- search_compositions(filters = list(strain = c("3D7", "D6"), percentage = c(0.32, 0.33)))
} # }