tlubitz / SBtab

SBtab - Table format for Systems Biology:
www.sbtab.net
MIT License
6 stars 8 forks source link

Separate fields for Document and DocumentName #83

Open eladnoor opened 4 years ago

eladnoor commented 4 years ago

Following the new spec, the SBtabDocument.__init__() should have two optional arguments name and id. Then, the header should have the attribute Document=<id> and/or the attribute DocumentName=<name> depending on this input.

When adding a new sbtab to the document, we should check if it has one of these two attributes and remove them from the sub-header.