Hi @anoksha ,
You should be able to generate the ID using your logic above. The code we use to create it is here which is essentially the same – we just strip the “chr” from loci and set the MT contig to M.
Are you able to provide a example variant where the API is not generating the ID? I can bring this to our browser team.
Best,
Mike