import_plate {PlateVision}R Documentation

Import and Merge PCR Data

Description

Reads the raw machine export and merges it with a user-defined layout map.

Usage

import_plate(raw_file, map_file, skip_rows = 0)

Arguments

raw_file

Path to the machine excel output (.xls or .xlsx).

map_file

Path to the user-defined CSV map (Cols: Well, Sample, Gene, Group).

skip_rows

Number of rows of metadata to skip in the raw file (default 0).

Value

A clean, merged tibble ready for analysis.

Examples

# Locate the sample data bundled with the package
my_raw <- system.file("extdata", "experiment_data.xlsx", package = "PlateVision")
my_map <- system.file("extdata", "plate_map.csv", package = "PlateVision")

# Run import
if(file.exists(my_raw) && file.exists(my_map)) {
  df <- import_plate(raw_file = my_raw, map_file = my_map)
  head(df)
}

[Package PlateVision version 0.1.0 Index]