calcRetention function

Calculates Allelic Retention