Member-only story

Bioinformatics

Convert Chromosome Accession using mutalyzer

This will be demonstrated in Go language.

Donald Le

--

Photo by Łukasz Rawa on Unsplash

Currently when we need to search for clinical data in Clinvar at NCBI, we have to search by format like “NC_000005.10:g.25502166_25502169dup”. To convert from chromosome name like “chr1” to “NC_000001.11”, we can use mutalyzer API.

Details for the API documentation can be found in here.

Below is the code demonstration to convert in Go:

Running this will format the chromosome value like

chr1,NC_000001.11
chr2
,NC_000002.12
chr3
,NC_000003.12
chr4
,NC_000004.12
chr5
,NC_000005.10
chr6
,NC_000006.12
chr7
,NC_000007.14
chr8
,NC_000008.11
chr9
,NC_000009.12
chr10
,NC_000010.11
chr11
,NC_000011.10
chr12
,NC_000012.12
chr13
,NC_000013.11
chr14
,NC_000014.9
chr15
,NC_000015.10
chr16
,NC_000016.10
chr17
,NC_000017.11
chr18
,NC_000018.10
chr19
,NC_000019.10
chr20
,NC_000020.11
chr21
,NC_000021.9
chr22
,NC_000022.11

Hope it helps!!!

PEACE~~

--

--

No responses yet