powered by
The allele B fraction signal is the ratio between the signal from the allele B and the total signal. The symmetrization of the fraction allele B signal x is : 2*abs(x-0.5).
symmetrizeFracB(fracB)
a vector containing an allele B fraction signal.
a vector containing the symmetrized signal.
# NOT RUN { signalA=abs(rnorm(100)) signalB=abs(rnorm(100)) signalFracB=signalA/(signalA+signalB) symFracB=symmetrizeFracB(signalFracB) # }
Run the code above in your browser using DataLab