Description Usage Arguments Details Value Examples
Calculate Allele Frequency Deviation frow two sample allele frequency
1 2 |
FREQ_1.x |
allele frequency of normal sample to calculate AFD |
FREQ_1.y |
allele frequency of tumor sample to calculate AFD |
power |
d ^ power, d means deviation (abs(transposed y axis)) |
density |
logical; if TRUE, use density of bin or each grid to multiply d ^ power |
density_method |
method to calculate density, include "xdensity" and "kde2d" |
n |
integer vector, bins number when calculate density.In "xdensity" method, only one bin number and in kde2d, you can give |
filterAF |
numeric, allele frequency cutoff, should between 1 and 100, if allele frequencies of both samples are less than it, then remove these position. |
filterDEV |
numeric, absolute deviation cutoff, should between 1 and 70, if deviation of a point is less than it, then remove the position. |
First, the x and y coordinates are transposed at 45 degrees, and the y coordinate after transposition is taken as the deviation of the point. Then absolute deviation I is taken to the power, then multiplied by the density. The density can be achieved by two alternative methods,"xdensity" and "kde2d".
AFD value
1 2 | data(afd_test_dt)
afd <- AFD(afd_test_dt$FREQ_1.x, afd_test_dt$FREQ_1.y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.