Skip to contents

This function takes a sample storage type, filters, and optional database and config parameters to search by study subjects and retrieve relevant data.

Usage

search_by_study_subject_file_upload(
  sample_storage_type,
  filters,
  database = Sys.getenv("SDB_PATH"),
  config_yml = Sys.getenv("SDB_CONFIG")
)

Arguments

sample_storage_type

A character string indicating the type of sample storage ("micronix", "cryovial").

filters

A list of filters to apply to the query.

database

An optional parameter indicating the database path. Defaults to the value of the environment variable 'SDB_PATH'.

config_yml

An optional parameter indicating the configuration YAML file. Defaults to the value of the environment variable 'SDB_CONFIG'.

Value

A dataframe containing search results based on provided filters and sample storage type.

Examples

if (FALSE) { # \dontrun{
  results <- search_by_study_subject_file_upload("micronix", list(short_code = c("SC01"), study_subject = c("SS01")))
  print(results)
} # }