Skip to contents

Determine Run identifcation after Early and Late Assays

Usage

ots_early_late_detection(
  con,
  sample_id,
  results_table,
  selection_strategy = c("recent priority", "positive priority")
)

Arguments

con

a database connection

sample_id

the sample id to perform run identification on

strategy

the strategy to use when multi same assays are found for a sample see "details" for more

Details

The system allows users to submit as many assays per sample as desired, however at the end in order to assign a genetic run type to a sample a single early, late, spring, and winter assay must be used. The selection strategy gives the function a way to select when it finds multiple assays for a sample.

  • "positive priority" - will choose the the positive results from the available assays needed

  • "recent priority" - will choose the most recent assays from the available assays needed.