Hello
What would be the best way to rename the rsid column with something like Chr:Pos:Ref:Alt_hg38 after applying the split multi-allelic function?
Thank you for all your help.
Hello
What would be the best way to rename the rsid column with something like Chr:Pos:Ref:Alt_hg38 after applying the split multi-allelic function?
Thank you for all your help.
Hi @sk4919 !
Does this do what you want?
mt = mt.annotate_rows(
rsid = hl.format(
"%s:%d:%s:%s",
mt.locus.contig, mt.locus.position, mt.alleles[0], mt.alleles[mt.a_index]
)
)
Thank you, good sir!