Member-only story

Bioinformatics

Convert variant location to dna change

Using regex in Python

Donald Le

--

Photo by Derek Lee on Unsplash

We dealt with 3 cases:

  • Single change : A → G for example
  • Insert : A → ATTG
  • Delete : ATTTG → A

Example : 2–42442-A-T will be converted to chr2:g.42442A>T

Hope it helps~~

PEACE~~

--

--

No responses yet