UNPKG

aletorecxml

Version:

Lib js for convert ALE format to recXML format

16 lines (12 loc) 445 B
What it is: =========== Lib to convert ALE format, file from https://github.com/ssolo/ALE/ into a xml format inherited from phyloXML (www.phyloxml.org): recXML. Exemple ======= ```javascript var recxml = require("aletorecxml"); var ale_data = "(ANAVT_1_PE117:1,(ANAVT_4_PE2444:2,ANAVT_2_PE237:0)D@0|ANAVT:1)D@0|ANAVT:0;" //Asynchronous function recxml.ALEtorecXML(ale_data,function (data) { //use the variable data here it's rec xml });