calc_deltaSNPindex: Calculate delta(SNP index)

Description Usage Arguments Details Value Examples

View source: R/calc_deltaSNPindex.r

Description

This function is used to calculate the ∆(SNP-index) by subtracting the SNP-index value of the wild-type bulk from the SNP-index value of the mutant bulk.

mean_M_SNPindex - mean_WT_SNPindex.WT

Usage

1
calc_deltaSNPindex(SNPindex.windows)

Arguments

SNPindex.windows

data frame obtained after running the slidingWindow()function

Details

For each row in the data frame returned by slidingWindow(), corresponding to a different window, ∆(SNP-index) is calculated by subtracting the SNP-index value of the reference bulk to the SNP-index value of the mutant bulk. The values of ∆(SNP-index)ineach window are added to the data frame as a new column.

Value

Data frame containing start, mid and stop positions of each window in the chromosome, as well as the corresponding mean SNP-index value for each bulk and ∆(SNP-index)value.

Examples

1
deltaSNPindex_windows <- calc_deltaSNPindex(SNPindex.windows=SNPindex_windows) 

EG-lisy/BSAvis documentation built on Dec. 17, 2021, 5:38 p.m.