qpcr_DDCT_LOD: CTs to log2 fold change relative to controls with LOD...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

CTs to log2 fold change relative to controls with LOD estimates

Usage

1
2
3
4
5
6
7
8
9
qpcr_DDCT_LOD(
  data,
  exp_genes_indicies,
  housekeeping_gene_index,
  control_row_indicies,
  metadata_column_indicies,
  LOD,
  LOD_conf = 0.999
)

Arguments

data

is is the input dataframe, should have genes as columns and samples as rows, replicates should be collpsed and only one housekeeping gene is supported. I don't think NA's or missing data is supported...not really sure.

exp_genes_indicies

A numeric vector containing the column indicies for the genes of experimental interest

housekeeping_gene_index

A single numeric value defining the column index for the housekeeping gene

control_row_indicies

A numeric vector containing the row indicies for the samples that are in the control group. Final data will be expressed relative to the mean of this group for each gene.

metadata_column_indicies

Numeric column indicies defining which columns are metadata and should be returned along with the final results

LOD

Your desired Limit of detection, all cts above this value will be replaced with NA and then this value

LOD_conf

The confidence level for the LOD estimate

Value

returns list of length 2, 1) a dataframe of log2(2^DDct) values centered on the mean of the control group and 2) a dataframe of LOD estimates for each gene

Examples

1
#soon

Jtrachsel/funfuns documentation built on Aug. 8, 2021, 7:31 p.m.