filter_Ct | R Documentation |
This function filters Ct data according to the used filtering criteria (see parameters).
filter_Ct(
data,
flag.Ct = "Undetermined",
maxCt = 35,
flag = c("Undetermined"),
remove.Gene = c(""),
remove.Sample = c(""),
remove.Group = c("")
)
data |
Object returned from read_Ct_long() or read_Ct_wide() function, or data frame containing column named "Sample" with sample names, column named "Gene" with gene names, column named "Ct" with raw Ct values, column named "Group" with group names. Optionally, data frame can contain column named "Flag" with flag information (e.g. "Undetermined" and "OK"), which will be used for filtering. |
flag.Ct |
Character of a flag used for undetermined Ct values, default to "Undetermined". |
maxCt |
Numeric, a maximum of Ct value allowed. |
flag |
Character: flag used in Flag column for values which should be filtered out, default to "Undetermined". |
remove.Gene |
Character: vector with names of genes to remove from data |
remove.Sample |
Character: vector with names of samples to remove from data |
remove.Group |
Character: vector with names of groups to remove from data |
Data frame with filtered data.
library(tidyverse)
data(data.Ct)
data.CtF <- filter_Ct(data.Ct,
remove.Gene = c("FGF23","ANGPT2","IL1A","CSF2","IL6"),
remove.Sample = c("Control08","Control16","Control22"))
dim(data.Ct)
dim(data.CtF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.