I’m using the function hl.vds.local_to_global() to convert LAD to AD, and got this error “Error summary: HailException: local_to_global: local alleles not strictly increasing: [0,2,1]”. Do you know what would be the cause? Thanks!
Yes, this is an AoU VDS. The script is simple. Just read vds and then transform. Thanks for checking!
vds = hl.vds.read_vds(vds_path)
mt = vds.variant_data.annotate_entries(
AD = hl.vds.local_to_global(vds.variant_data.LAD,
vds.variant_data.LA,
n_alleles=hl.len(vds.variant_data.alleles),
fill_value=0,
number=‘R’)
)