This builds a redeemR S4 object by:
filtering cells by median coverage (
qualifiedCellCut),filtering variants by cell-count and VAF (
Cellcut,VAFcut),initializing all slots (
GTsummary.ini,V.ini,GTsummary.filtered,V.fitered, etc.),running
Make_matrix()to build count matrices,and performing binomial noise removal.
Usage
Create_redeemR_model(
VariantsGTSummary = VariantsGTSummary,
qualifiedCellCut = 10,
VAFcut = 1,
Cellcut = 2
)Arguments
- VariantsGTSummary
A
data.frameproduced byredeemR.read.trim(), with attributesthr(threshold),depth(output ofDepthSummary()),(optionally)
edge_trim,path,combined,suffix.
- qualifiedCellCut
Numeric; minimum median mitochondrial coverage for a cell to be kept (default 10).
- VAFcut
Numeric in (0,1]; only variants with variant allele frequency <=
VAFcutare considered (default 1).- Cellcut
Integer >= 1; only variants seen in at least
Cellcutcells are kept (default 2).
Value
An object of S4 class redeemR, with slots
GTsummary.ini,V.ini: the unfiltered genotype & variant tablesGTsummary.filtered,V.fitered: the post-filter tablesCellMeta,DepthSummary,HomoVariants,UniqueV,para,attr, ... and with count matrices in@Cts.Mtx/@Cts.Mtx.bipopulated.
Examples
if (FALSE) {
vgtsum <- redeemR.read.trim("path/to/data", thr="S", edge_trim=9)
rObj <- Create_redeemR_model(vgtsum, qualifiedCellCut=10, VAFcut=0.5, Cellcut=3)
summary(rObj)
}