Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformating SBGN File Layout and Exporting in Original Format Instead of JSON or PNG #18

Open
nvelden opened this issue Jul 10, 2023 · 1 comment
Assignees

Comments

@nvelden
Copy link

nvelden commented Jul 10, 2023

Can Syblars be used to adjust the layout of an SBGN (Systems Biology Graphical Notation) file? Let's consider an SBGN file where all x and y coordinates within <bbox> are set to zero.

Is it possible to upload this SBGN file, apply the necessary formatting to correct the coordinates, and then download the modified file again in its original SBGN format, as opposed to JSON or PNG?

Protein_07baa03732f819e00196379af35014de" compartmentRef="nucleoplasm">
            <label text="GATA4"/>
            <bbox w="48.0" h="30.0" x="0.0" y="0.0"/>
            <glyph class="state variable">
                <state value="x[1 - 442]"/>
                <bbox w="35.0" h="10.0" x="0.0" y="0.0"/>
            </glyph>
        </glyph>
        <glyph class="nucleic acid feature" id="http://pathwaycommons.org/pc12/Dna_f275b5a7a71358d28befca183981db08" compartmentRef="nucleoplasm">
            <label text="GIP"/>
            <bbox w="50.0" h="30.0" x="0.0" y="0.0"/>
            <glyph class="unit of information">
                <label text="mt:DNA"/>
                <bbox w="35.0" h="10.0" x="0.0" y="0.0"/>
            </glyph>
        </glyph>
@hasanbalci
Copy link
Contributor

Currently, Syblars doesn't support updating the layout information in SBGNML file. It's one of the future works. For now, you can programmatically set node positions in SBGN file by using the JSON output. If you need this feature only for a few SBGN files, you can also use Newt Editor by just loading the file, applying a layout and then saving it again in SBGN format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants