Skip to content

Implementation of the Synthetic Biology Open Language (SBOL) in JavaScript

License

Notifications You must be signed in to change notification settings

SynBioDex/sboljs

Repository files navigation

This library only supports SBOL2. For a JavaScript/TypeScript library with support for a wider range of SBOL versions including SBOL1 and SBOL3, see sboljs3.

--

Build Status

BSD-licensed implementation of the Synthetic Biology Open Language (SBOL) in JavaScript.

Requires a JavaScript environment with ES6 class support (e.g. recent versions of node, Chrome, ...)

Features:

  • Read generic RDF, XML
  • Serialize SBOL XML, JSON
  • Build SBOL documents programatically

Installation

npm install sboljs

Usage

var SBOLDocument = require('sboljs')

SBOLDocument.loadRDFFile('foo.xml', function(err, doc) {

    doc.componentDefinitions.forEach(function(componentDefinition) {

        console.log(componentDefinition.name)

    })

})

Documentation

Citation

If you use this library in your work, please cite

@article{sboljs,
  author = {McLaughlin, James Alastair and Myers, Chris J. and Zundel, Zach and Wilkinson, Nathan and Atallah, Christian and Wipat, Anil},
  title = {sboljs: Bringing the Synthetic Biology Open Language to the Web Browser},
  journal = {ACS Synthetic Biology},
  volume = {8},
  number = {1},
  pages = {191-193},
  year = {2019},
  doi = {10.1021/acssynbio.8b00338},
  URL = { https://doi.org/10.1021/acssynbio.8b00338 },
  eprint = {  https://doi.org/10.1021/acssynbio.8b00338 }
}

About

Implementation of the Synthetic Biology Open Language (SBOL) in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published