Mercurial > repos > iuc > medaka_variant
diff convert_VCF_info_fields.py @ 8:edf6d4003fad draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/medaka commit e0684fe95538cf97b1199ad1072d3da6d1619443"
author | iuc |
---|---|
date | Tue, 23 Feb 2021 20:13:39 +0000 |
parents | 28c13c42de01 |
children | 9fb055604648 |
line wrap: on
line diff
--- a/convert_VCF_info_fields.py Mon Feb 22 19:59:00 2021 +0000 +++ b/convert_VCF_info_fields.py Tue Feb 23 20:13:39 2021 +0000 @@ -86,7 +86,7 @@ if dpsp == 0: info.append("AF=NaN") else: - af = dp4[2] + dp4[3] / dpsp + af = (dp4[2] + dp4[3]) / dpsp info.append("AF=%.6f" % (af)) if dpspf == 0: info.append("FAF=NaN")