Skip to content
Seb edited this page Feb 28, 2015 · 3 revisions

Update: A draft implementation for generic parser is biojs-io-parser

This is standard is under discussion.

Every BioJS should have the following methods:

  • parse: Takes in an entire file as string and returns the JSON representation
  • write: Takes the JSON representation of a file and writes it in the custom format

If the file is line-by-line, one should create a new instance of the parser.

  • parseLine: parses another line
  • result: returns the current, resulting object of the parsing process.

For an exemplary generic parser, have a look at biojs-io-clustal

Clone this wiki locally