Learn R Programming

WES (version 1.0.0)

calc_sample_sizes: Calculate sample sizes

Description

This function takes a compiled data.frame following the format shown in the template_WES_data object and calculates basic sample sizes and detection rates for all gene targets.

Usage

calc_sample_sizes(df, cutoff = 40)

Value

data.frame

Arguments

df

A data.frame produced by the compile_tac_data function containing 'target_name' and 'ct_value' columns.

cutoff

Numeric scalar giving the cutoff Ct value over which a gene target is deemed absent from a sample. Default is 40.

Examples

Run this code
calc_sample_sizes(template_WES_data)

Run the code above in your browser using DataLab