Skip to contents

This function uploads extracted DNA data from a user-provided data frame to a SQLite database, specifically to SampleDB. The function also updates the active control count and commits the changes to the database.

Usage

upload_extracted_dna(
  user_data,
  control_extraction,
  database = Sys.getenv("SDB_PATH")
)

Arguments

user_data

A data frame containing the DNA extraction data.

control_extraction

A character string specifying the type of control extraction.

database

A character string specifying the path to the SampleDB SQLite database. Default value is the system environment variable "SDB_PATH".

Value

A message indicating the success of the data upload operation.

See also

Examples

if (FALSE) { # \dontrun{
upload_extracted_dna(user_data = my_data_frame, control_extraction = "dbs_sheet")
} # }