This is a test version of Biostars. For the public version, visit https://www.biostars.org.
b37 liftover

Hi! I have vcf files that were get with b37 reference, and I need to liftover them to hg38 (and then to t2t if it's possible). The problem is that there are no chain files that converts b37 to hg19 or b37 to hg38. What is the righ way of solving the problem? Should i rename the chromosomes according to hg19 ?

b37 liftover

Thank you! renaming chrs according to hg19 and using hg19 chain files helped.

1 answer

Using BCFtools/liftover will automatically take care of:

  • flexible contig names (e.g. 18 vs. chr18) in the chain file (you still have use the correct fasta files)
  • not changing the coordinates of variants on the mitochondrial genome if it detects that target and query mitochondrial sequences have the same length (you can use chain file hg19ToHg38.over.chain.gz with b37, even if b37 and hg19 have different mitochrondrial sequences ... coordinates for mitochondrial variants will be left unchanged)

Log in to answer this question.