Skip to content

In some cases it would be helpful to parse comments from BNGL files #2

Open

Description

@jonrkarr

bionetgen.bngmodel nicely parses models. In some cases, it may be helpful to parse the comments out of files.

For example, the comment of Vec is currently parsed to None

begin parameters
 Vec   1000*Vcell # Volume of extracellular space around each cell (1/cell density)
end parameters
model = bionetgen.bngmodel(...)
model.parameters['Vec'].comment

Activity

  1. changed the title [-]Parse comments from BNGL files[/-] [+]In some cases it would be helpful to parse comments from BNGL files[/+] on Jun 8, 2021
  2. ASinanSaglam commented on Jun 8, 2021

    @ASinanSaglam
    Contributor

    The comments are not parsed at all right now due to how parsing works currently (conversion to an XML file and reading off of that). XML conversion rips out all comments so it's not possible to parse the comments with this method. We are working on a new parsing method right now and once that's done, all comments will be parsed and will be added to .comment attribute. I'll update the issue as I make progress on this.

  3. added a commit that references this issue on Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions