R/calcStrandCC.R

Defines functions `calcStrandCC`

`calcStrandCC` <-
function( goodCnt, badCnt) {

	# measure like Correlation coefficient of how many reads are on the right vs wrong strand
	tot <- goodCnt + badCnt
	cc <- ifelse ( tot == 0,  0, (goodCnt-badCnt)/tot)
	return( cc)
}
robertdouglasmorrison/DuffyNGS documentation built on March 24, 2024, 4:16 p.m.