Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_qscores(counts, ref_len):
return {
'Q(acc)': qscore(sum(counts.values()) / ref_len),
'Q(iden)': qscore(counts['sub'] / (ref_len - counts['del'])),
'Q(ins)': qscore(counts['ins'] / ref_len),
'Q(del)': qscore(counts['del'] / ref_len),
}