Skip to contents

This function will calculate the relative amount of a fraction compared to the whole replicate using either qPCR copies or DNA concentrations.

Usage

add_gradient_pos_rel_amt(
  data,
  amt,
  source_mat_id = "source_mat_id",
  overwrite = FALSE
)

Arguments

data

(dataframe) Sample metadata

amt

(string) Column name that has the qPCR or DNA amounts per fraction

source_mat_id

(string, default: "source_mat_id") Grouping variable for a replicate

overwrite

(bool, default: FALSE) Determines whether or not to overwrite an existing gradient_pos_rel_amt column

Value

A dataframe with a gradient_pos_rel_amt column