matted-zz / multipool

High-resolution genetic mapping for pooled sequencing.
http://cgs.csail.mit.edu/multipool/
MIT License
9 stars 12 forks source link

Use of 95% vs 90% CI #11

Open gmv23 opened 4 years ago

gmv23 commented 4 years ago

If I wanted a 95% credible interval instead of a 90% credible interval for the QTL peak, would it suffice to change this code in mp_inference.py as follows?

cumul, mean = 0.0, 0.0 left, right = None, None for i,val in enumerate(temp): cumul += val if cumul >= 0.05 and left is None: left = i-1 if cumul >= 0.95 and right is None: right = i mean += val*bins[i]

cumul, mean = 0.0, 0.0 left, right = None, None for i,val in enumerate(temp): cumul += val if cumul >= 0.025 and left is None: left = i-1 if cumul >= 0.975 and right is None: right = i mean += val*bins[i]

Thank you for the great software.