-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Looking at generateErrorMat() we have
def generateErrorMat(error) :
errorMat = np.array([[1-error, error/2, error/2, error/2],
[error/2, 1-error, 1-error, error/2],
[error/2, error/2, error/2, 1-error]], dtype = np.float32)
errorMat = errorMat/np.sum(errorMat, 1)[:,None]
return errorMat
I am wondering if the probabilities should actually be [1-error, error/4, error/4, error/2] so that we spread the error equally across the 3 genotypes or give user an option to declare these genotype penetrance matrices. The current probabilities are for sure odd - we take error amount from one genotype and then redistribute error/2 to the other three genotypes - aha are we doing this effectively so that we give error/2 to hets and error/2 to the other homozygote? Technically it's correct due to normalisation (in errorMat/np.sum(errorMat, 1)[:,None]).

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request