data_prepare: data_prepare

View source: R/functions.R

data_prepareR Documentation

data_prepare

Description

Split the mitochondrial genotype matrix into 12 submatrices according to mutation types.

Usage

data_prepare(data)

Arguments

data

A dataframe containing mitochondrial variants frequency matrix and two other column "altAllele" and "refAllele". "altAllele" column represents the mutant allele; "refAllele" column represents the reference allele. Required.

Details

Matrix splitting based on mutation types

Value

A list containing 12 submatrices with different mutation types. ("altAllele" column and "refAllele" column are removed)

Examples

data("TF1_clones")
data=TF1_clones$data
d=data_prepare(data)


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