correct: correct

View source: R/functions.R

correctR Documentation

correct

Description

Using mitochondrial variants frequency matrix as input, transform the zeroes into ones when the median of the non-zero frequencies in the same row >= 0.6.

Usage

correct(x)

Arguments

x

A dataframe containing mitochondrial variants frequency matrix where a column represented a single cell and a row represented variants frequency of a specific mitochondrial genotype. Required.

Details

Mitochondrial genotype matrix modification

Value

A dataframe containing a modified mitochondrial genotype matrix.

Examples

data("TF1_clones")
data=TF1_clones$data
d=data_prepare(data)
d2=data.frame()
for(i in 1:12){
    di=d[[i]]
    di2=as.data.frame(t(apply(di,1,correct)))
    d2=rbind(d2,di2)
}


songjiajia2018/LINEAGE documentation built on Oct. 17, 2022, 6:17 a.m.