Use logarithmic mean.
1 unresolved thread
1 unresolved thread
Fix for #3 (closed).
Merge request reports
Activity
58 59 return [gq]*maxlen 59 60 60 61 62 # Credit: 63 # https://gigabaseorgigabyte.wordpress.com/2017/06/26/averaging-basecall-quality-scores-the-right-way/ 64 # https://git.lumc.nl/klinische-genetica/capture-lumc/vtools/issues/3 65 def qualmean(quals): 66 return -10*math.log(sum([10**(q/-10) for q in quals]) / len(quals), 10) changed this line in version 2 of the diff
mentioned in commit 37cc3d17
Please register or sign in to reply