BioJS parser

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.