newick2phyloxml

    0.0.3 • Public • Published

    newick2phyloxml

    A one function module to convert newick to phyloxml

    Installation

    npm install newick2phyloxml --save

    Usage

      var options = {
        leaf : {
          delimiters : [{
            attribute : "name",
            delimiter : '|'
          }]
        }
      }
     
      var newickStr = "(((PSYCK_2_PE1609|PSYCK_2_PE1609:0.635238,MARMS_1_PE3808|MARMS_1_PE3808:0.709109)0.868000:0.171902,((THIS3_1_PE3522|THIS3_1_PE3522:0.023247,THIK1_1_PE1498|THIK1_1_PE1498:0.007217)1.000000:0.570654,PELLD_1_PE1853|PELLD_1_PE1853:0.564767)0.975000:0.279237)1.000000:0.873015,PECCP_1_PE485|PECCP_1_PE485:0.144019,DICDC_1_PE54|DICDC_1_PE54:0.041863);"
     
     
      newickToPhyloXML.newickToPhyloXML(newickStr,function (data) {
        console.log(data);
      },options);

    Install

    npm i newick2phyloxml

    DownloadsWeekly Downloads

    1

    Version

    0.0.3

    License

    ISC

    Last publish

    Collaborators

    • ggence