libsbgnpy 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. libsbgnpy/__init__.py +16 -0
  2. libsbgnpy/examples/__init__.py +0 -0
  3. libsbgnpy/examples/extension_example.py +103 -0
  4. libsbgnpy/examples/info_example.py +70 -0
  5. libsbgnpy/examples/notes_example.py +66 -0
  6. libsbgnpy/examples/read_example.py +35 -0
  7. libsbgnpy/examples/sbgn/adh.sbgn +61 -0
  8. libsbgnpy/examples/sbgn/glycolysis.sbgn +375 -0
  9. libsbgnpy/examples/sbgn/neuronal_muscle_signalling_color.sbgn +439 -0
  10. libsbgnpy/examples/sbgn/notes.sbgn +13 -0
  11. libsbgnpy/examples/sbgn/test-output-01.sbgn +8 -0
  12. libsbgnpy/examples/sbgn/test-output-02.sbgn +59 -0
  13. libsbgnpy/examples/sbgn/test-output-03.sbgn +16 -0
  14. libsbgnpy/examples/write_example.py +223 -0
  15. libsbgnpy/libsbgn.py +4490 -0
  16. libsbgnpy/libsbgnSubs.py +127 -0
  17. libsbgnpy/libsbgnTypes.py +112 -0
  18. libsbgnpy/render.py +59 -0
  19. libsbgnpy/sbo/__init__.py +0 -0
  20. libsbgnpy/sbo/sbgn_sbo_mapping.txt +1304 -0
  21. libsbgnpy/sbo/sbo2sbgn.py +58 -0
  22. libsbgnpy/sbo/sbo_sbgn_map.txt +38 -0
  23. libsbgnpy/schema/README.md +156 -0
  24. libsbgnpy/schema/SBGN.xsd +1018 -0
  25. libsbgnpy/schema/__init__.py +0 -0
  26. libsbgnpy/utils.py +93 -0
  27. libsbgnpy/validation/__init__.py +0 -0
  28. libsbgnpy/validation/error-test-files/AF/af10101-fail.sbgn +34 -0
  29. libsbgnpy/validation/error-test-files/AF/af10101-pass.sbgn +35 -0
  30. libsbgnpy/validation/error-test-files/AF/af10102-fail-1.sbgn +17 -0
  31. libsbgnpy/validation/error-test-files/AF/af10102-fail-2.sbgn +17 -0
  32. libsbgnpy/validation/error-test-files/AF/af10102-fail-3.sbgn +17 -0
  33. libsbgnpy/validation/error-test-files/AF/af10102-fail-4.sbgn +17 -0
  34. libsbgnpy/validation/error-test-files/AF/af10102-pass.sbgn +17 -0
  35. libsbgnpy/validation/error-test-files/AF/af10103-fail.sbgn +35 -0
  36. libsbgnpy/validation/error-test-files/AF/af10103-pass.sbgn +35 -0
  37. libsbgnpy/validation/error-test-files/AF/af10104-fail.sbgn +34 -0
  38. libsbgnpy/validation/error-test-files/AF/af10104-pass.sbgn +35 -0
  39. libsbgnpy/validation/error-test-files/AF/af10109-fail.sbgn +35 -0
  40. libsbgnpy/validation/error-test-files/AF/af10109-pass.sbgn +35 -0
  41. libsbgnpy/validation/error-test-files/AF/af10110-fail.sbgn +34 -0
  42. libsbgnpy/validation/error-test-files/AF/af10111-fail.sbgn +42 -0
  43. libsbgnpy/validation/error-test-files/AF/af10111-pass.sbgn +26 -0
  44. libsbgnpy/validation/error-test-files/AF/af10112-fail.sbgn +25 -0
  45. libsbgnpy/validation/error-test-files/AF/af10113-fail.sbgn +17 -0
  46. libsbgnpy/validation/error-test-files/ER/er10103-fail.sbgn +29 -0
  47. libsbgnpy/validation/error-test-files/ER/er10103-pass.sbgn +25 -0
  48. libsbgnpy/validation/error-test-files/ER/er10104-fail.sbgn +31 -0
  49. libsbgnpy/validation/error-test-files/ER/er10104-pass.sbgn +27 -0
  50. libsbgnpy/validation/error-test-files/ER/er10106-fail-1.sbgn +26 -0
  51. libsbgnpy/validation/error-test-files/ER/er10106-fail-2.sbgn +26 -0
  52. libsbgnpy/validation/error-test-files/ER/er10106-fail-3.sbgn +26 -0
  53. libsbgnpy/validation/error-test-files/ER/er10106-fail-4.sbgn +26 -0
  54. libsbgnpy/validation/error-test-files/ER/er10106-fail-5.sbgn +26 -0
  55. libsbgnpy/validation/error-test-files/ER/er10106-fail-6.sbgn +26 -0
  56. libsbgnpy/validation/error-test-files/ER/er10106-pass.sbgn +26 -0
  57. libsbgnpy/validation/error-test-files/ER/er10107-fail-1.sbgn +25 -0
  58. libsbgnpy/validation/error-test-files/ER/er10107-fail-2.sbgn +25 -0
  59. libsbgnpy/validation/error-test-files/ER/er10107-fail-3.sbgn +25 -0
  60. libsbgnpy/validation/error-test-files/ER/er10107-fail-4.sbgn +25 -0
  61. libsbgnpy/validation/error-test-files/ER/er10107-fail-5.sbgn +25 -0
  62. libsbgnpy/validation/error-test-files/ER/er10107-fail-6.sbgn +25 -0
  63. libsbgnpy/validation/error-test-files/ER/er10107-pass.sbgn +26 -0
  64. libsbgnpy/validation/error-test-files/ER/er10108-fail-1.sbgn +43 -0
  65. libsbgnpy/validation/error-test-files/ER/er10108-fail-2.sbgn +43 -0
  66. libsbgnpy/validation/error-test-files/ER/er10108-pass.sbgn +35 -0
  67. libsbgnpy/validation/error-test-files/ER/er10109-fail.sbgn +40 -0
  68. libsbgnpy/validation/error-test-files/ER/er10109-pass.sbgn +40 -0
  69. libsbgnpy/validation/error-test-files/ER/er10111-fail.sbgn +53 -0
  70. libsbgnpy/validation/error-test-files/ER/er10111-pass.sbgn +27 -0
  71. libsbgnpy/validation/error-test-files/ER/er20001-fail.sbgn +55 -0
  72. libsbgnpy/validation/error-test-files/ER/er20001-pass.sbgn +57 -0
  73. libsbgnpy/validation/error-test-files/PD/pd10101-fail.sbgn +27 -0
  74. libsbgnpy/validation/error-test-files/PD/pd10101-pass.sbgn +27 -0
  75. libsbgnpy/validation/error-test-files/PD/pd10102-fail.sbgn +55 -0
  76. libsbgnpy/validation/error-test-files/PD/pd10102-pass.sbgn +55 -0
  77. libsbgnpy/validation/error-test-files/PD/pd10103-fail.sbgn +37 -0
  78. libsbgnpy/validation/error-test-files/PD/pd10103-pass.sbgn +45 -0
  79. libsbgnpy/validation/error-test-files/PD/pd10104-fail.sbgn +55 -0
  80. libsbgnpy/validation/error-test-files/PD/pd10104-pass.sbgn +47 -0
  81. libsbgnpy/validation/error-test-files/PD/pd10105-fail.sbgn +27 -0
  82. libsbgnpy/validation/error-test-files/PD/pd10105-pass.sbgn +27 -0
  83. libsbgnpy/validation/error-test-files/PD/pd10106-fail.sbgn +27 -0
  84. libsbgnpy/validation/error-test-files/PD/pd10106-pass.sbgn +27 -0
  85. libsbgnpy/validation/error-test-files/PD/pd10107-fail.sbgn +37 -0
  86. libsbgnpy/validation/error-test-files/PD/pd10107-pass.sbgn +45 -0
  87. libsbgnpy/validation/error-test-files/PD/pd10108-fail.sbgn +42 -0
  88. libsbgnpy/validation/error-test-files/PD/pd10108-pass.sbgn +35 -0
  89. libsbgnpy/validation/error-test-files/PD/pd10109-fail-1.sbgn +51 -0
  90. libsbgnpy/validation/error-test-files/PD/pd10109-fail-2.sbgn +51 -0
  91. libsbgnpy/validation/error-test-files/PD/pd10109-fail-3.sbgn +51 -0
  92. libsbgnpy/validation/error-test-files/PD/pd10109-fail-4.sbgn +51 -0
  93. libsbgnpy/validation/error-test-files/PD/pd10109-fail-5.sbgn +51 -0
  94. libsbgnpy/validation/error-test-files/PD/pd10109-pass.sbgn +35 -0
  95. libsbgnpy/validation/error-test-files/PD/pd10110-fail-1.sbgn +35 -0
  96. libsbgnpy/validation/error-test-files/PD/pd10110-fail-2.sbgn +35 -0
  97. libsbgnpy/validation/error-test-files/PD/pd10110-fail-3.sbgn +35 -0
  98. libsbgnpy/validation/error-test-files/PD/pd10110-fail-4.sbgn +35 -0
  99. libsbgnpy/validation/error-test-files/PD/pd10110-fail-5.sbgn +35 -0
  100. libsbgnpy/validation/error-test-files/PD/pd10110-pass.sbgn +35 -0
  101. libsbgnpy/validation/error-test-files/PD/pd10111-fail-2.sbgn +72 -0
  102. libsbgnpy/validation/error-test-files/PD/pd10111-fail.sbgn +72 -0
  103. libsbgnpy/validation/error-test-files/PD/pd10111-pass.sbgn +68 -0
  104. libsbgnpy/validation/error-test-files/PD/pd10112-fail-1.sbgn +28 -0
  105. libsbgnpy/validation/error-test-files/PD/pd10112-fail-2.sbgn +28 -0
  106. libsbgnpy/validation/error-test-files/PD/pd10112-pass.sbgn +28 -0
  107. libsbgnpy/validation/error-test-files/PD/pd10124-fail.sbgn +67 -0
  108. libsbgnpy/validation/error-test-files/PD/pd10124-pass.sbgn +67 -0
  109. libsbgnpy/validation/error-test-files/PD/pd10125-fail.sbgn +35 -0
  110. libsbgnpy/validation/error-test-files/PD/pd10126-fail.sbgn +53 -0
  111. libsbgnpy/validation/error-test-files/PD/pd10126-pass.sbgn +45 -0
  112. libsbgnpy/validation/error-test-files/PD/pd10127-fail.sbgn +21 -0
  113. libsbgnpy/validation/error-test-files/PD/pd10127-pass.sbgn +17 -0
  114. libsbgnpy/validation/error-test-files/PD/pd10128-fail.sbgn +21 -0
  115. libsbgnpy/validation/error-test-files/PD/pd10128-pass.sbgn +17 -0
  116. libsbgnpy/validation/error-test-files/PD/pd10131-fail.sbgn +9 -0
  117. libsbgnpy/validation/error-test-files/PD/pd10131-pass.sbgn +27 -0
  118. libsbgnpy/validation/error-test-files/PD/pd10132-fail.sbgn +10 -0
  119. libsbgnpy/validation/error-test-files/PD/pd10132-pass.sbgn +27 -0
  120. libsbgnpy/validation/error-test-files/PD/pd10140-fail.sbgn +31 -0
  121. libsbgnpy/validation/error-test-files/PD/pd10140-pass.sbgn +27 -0
  122. libsbgnpy/validation/error-test-files/PD/pd10141-fail.sbgn +11 -0
  123. libsbgnpy/validation/error-test-files/PD/pd10141-pass.sbgn +27 -0
  124. libsbgnpy/validation/error-test-files/PD/pd10142-fail.sbgn +35 -0
  125. libsbgnpy/validation/error-test-files/PD/pd10142-pass.sbgn +53 -0
  126. libsbgnpy/validation/error-test-files/error_notes.txt +7 -0
  127. libsbgnpy/validation/rules/sbgn_af.sch +275 -0
  128. libsbgnpy/validation/rules/sbgn_er.sch +288 -0
  129. libsbgnpy/validation/rules/sbgn_pd.sch +634 -0
  130. libsbgnpy/validation/schematron/ExtractSchFromRNG.xsl +75 -0
  131. libsbgnpy/validation/schematron/ExtractSchFromXSD.xsl +77 -0
  132. libsbgnpy/validation/schematron/iso-schematron-xslt1.zip +0 -0
  133. libsbgnpy/validation/schematron/iso-schematron-xslt2.zip +0 -0
  134. libsbgnpy/validation/schematron/iso_abstract_expand.xsl +297 -0
  135. libsbgnpy/validation/schematron/iso_dsdl_include.xsl +1509 -0
  136. libsbgnpy/validation/schematron/iso_schematron_message.xsl +55 -0
  137. libsbgnpy/validation/schematron/iso_schematron_skeleton_for_xslt1.xsl +1841 -0
  138. libsbgnpy/validation/schematron/iso_svrl_for_xslt1.xsl +604 -0
  139. libsbgnpy/validation/schematron/readme.txt +101 -0
  140. libsbgnpy/validation/schematron/schematron-skeleton-api.htm +723 -0
  141. libsbgnpy/validation/validator.py +141 -0
  142. libsbgnpy-0.3.0.dist-info/METADATA +91 -0
  143. libsbgnpy-0.3.0.dist-info/RECORD +145 -0
  144. libsbgnpy-0.3.0.dist-info/WHEEL +4 -0
  145. libsbgnpy-0.3.0.dist-info/licenses/LICENSE +7 -0
File without changes
libsbgnpy/utils.py ADDED
@@ -0,0 +1,93 @@
1
+ """
2
+ Helper functions to work with SBGN.
3
+ """
4
+
5
+ import tempfile
6
+ from pathlib import Path
7
+
8
+ import libsbgnpy.libsbgn as libsbgn
9
+
10
+
11
+ def read_from_file(f, silence=True):
12
+ """Read an sbgn file (without validating against the schema).
13
+
14
+ :param silence: display no information
15
+ :param f: file to read
16
+ :return: parsed SBGN
17
+ :rtype:
18
+ """
19
+ sbgn = libsbgn.parse(f, silence=silence)
20
+ return sbgn
21
+
22
+
23
+ def write_to_file(sbgn, f):
24
+ """Write sbgn object to file.
25
+
26
+ :param sbgn:
27
+ :param f:
28
+ :return:
29
+ """
30
+ sbgn.write_file(f)
31
+
32
+
33
+ def write_to_string(sbgn):
34
+ """Write SBGN to string.
35
+ Returns None if problems.
36
+
37
+ :param sbgn: sbgn object
38
+ :return: SBGN xml string
39
+ """
40
+
41
+ with tempfile.TemporaryDirectory() as tmpdir:
42
+ f_tmp: Path = Path(tmpdir) / "out.sbgn"
43
+ write_to_file(sbgn, f_tmp)
44
+ with open(f_tmp, "rt", encoding="utf-8") as fin:
45
+ sbgn_str = fin.read()
46
+ return sbgn_str
47
+
48
+ return None
49
+
50
+
51
+ def get_version(f):
52
+ """SBGN version.
53
+
54
+ 1: xmlns="http://sbgn.org/libsbgn/0.1
55
+ 2: xmlns="http://sbgn.org/libsbgn/0.2
56
+ 3: xmlns="http://sbgn.org/libsbgn/0.3
57
+
58
+ :param f: file for which version should be found.
59
+ :return: version as an integer, i.e. 1, 2, 3
60
+ """
61
+ import re
62
+ from xml.etree import ElementTree
63
+
64
+ tree = ElementTree.parse(f)
65
+ root = tree.getroot()
66
+ tag = root.tag
67
+ m = re.search(r"\d\.\d", tag)
68
+ version = m.group(0) # full version, i.e. 0.2 or similar
69
+ tokens = version.split(".")
70
+ return int(tokens[-1])
71
+
72
+
73
+ def get_language(f):
74
+ """SBGN language of the map.
75
+ Returns a Language value.
76
+
77
+ :param f:
78
+ :return:
79
+ """
80
+ sbgn = read_from_file(f)
81
+ map = sbgn.get_map()
82
+ return map.get_language()
83
+
84
+
85
+ def print_bbox(b):
86
+ """Print bounding box representation.
87
+
88
+ :param b:
89
+ :type b:
90
+ :return:
91
+ :rtype:
92
+ """
93
+ print("x, y, w, h : ", b.get_x(), b.get_y(), b.get_w(), b.get_h())
File without changes
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.2" x="312.0" y="100.0"/>
16
+ </glyph>
17
+ <glyph class="biological activity" id="glyph1">
18
+ <label text="C"/>
19
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
20
+ </glyph>
21
+ <arc class="positive influence" id="f99c1" source="glyph3" target="glyph0">
22
+ <start x="249.0" y="100.0"/>
23
+ <end x="164.0" y="100.0"/>
24
+ </arc>
25
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
26
+ <start x="312.0" y="100.0"/>
27
+ <end x="386.0" y="59.058823"/>
28
+ </arc>
29
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
30
+ <start x="312.0" y="100.0"/>
31
+ <end x="386.0" y="140.94118"/>
32
+ </arc>
33
+ </map>
34
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="20.0" x="36.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="perturbation">
9
+ <label text="B"/>
10
+ <bbox y="170.0" x="36.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph1" source="glyph0" id="arc0" class="positive influence">
13
+ <start y="80.0" x="90.0"/>
14
+ <end y="170.0" x="90.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="20.0" x="36.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="perturbation">
9
+ <label text="B"/>
10
+ <bbox y="170.0" x="36.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph1" source="glyph0" id="arc0" class="negative influence">
13
+ <start y="80.0" x="90.0"/>
14
+ <end y="170.0" x="90.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="20.0" x="36.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="perturbation">
9
+ <label text="B"/>
10
+ <bbox y="170.0" x="36.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph1" source="glyph0" id="arc0" class="unknown influence">
13
+ <start y="80.0" x="90.0"/>
14
+ <end y="170.0" x="90.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="20.0" x="36.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="perturbation">
9
+ <label text="B"/>
10
+ <bbox y="170.0" x="36.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph1" source="glyph0" id="arc0" class="necessary stimulation">
13
+ <start y="80.0" x="90.0"/>
14
+ <end y="170.0" x="90.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="20.0" x="36.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="phenotype">
9
+ <label text="B"/>
10
+ <bbox y="170.0" x="36.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph1" source="glyph0" id="arc0" class="negative influence">
13
+ <start y="80.0" x="90.0"/>
14
+ <end y="170.0" x="90.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="consumption" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="process" id="glyph3">
13
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
14
+ <port id="glyph3.1" x="270.0" y="100.0"/>
15
+ <port id="glyph3.2" x="312.0" y="100.0"/>
16
+ </glyph>
17
+ <glyph class="biological activity" id="glyph1">
18
+ <label text="C"/>
19
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
20
+ </glyph>
21
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
22
+ <start x="249.0" y="100.0"/>
23
+ <end x="164.0" y="100.0"/>
24
+ </arc>
25
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
26
+ <start x="312.0" y="100.0"/>
27
+ <end x="386.0" y="59.058823"/>
28
+ </arc>
29
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
30
+ <start x="312.0" y="100.0"/>
31
+ <end x="386.0" y="140.94118"/>
32
+ </arc>
33
+ </map>
34
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="phenotype" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="and" id="glyph3">
13
+ <label text="AND"/>
14
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
15
+ <port id="glyph3.1" x="270.0" y="100.0"/>
16
+ <port id="glyph3.2" x="312.0" y="100.0"/>
17
+ </glyph>
18
+ <glyph class="biological activity" id="glyph1">
19
+ <label text="C"/>
20
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
21
+ </glyph>
22
+ <arc class="positive influence" id="f99c1" source="glyph3.1" target="glyph0">
23
+ <start x="249.0" y="100.0"/>
24
+ <end x="164.0" y="100.0"/>
25
+ </arc>
26
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3.2">
27
+ <start x="312.0" y="100.0"/>
28
+ <end x="386.0" y="59.058823"/>
29
+ </arc>
30
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.2">
31
+ <start x="312.0" y="100.0"/>
32
+ <end x="386.0" y="140.94118"/>
33
+ </arc>
34
+ </map>
35
+ </sbgn>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph class="biological activity" id="glyph0">
5
+ <label text="A"/>
6
+ <bbox w="108.0" h="60.0" x="56.0" y="70.0"/>
7
+ </glyph>
8
+ <glyph class="biological activity" id="glyph2">
9
+ <label text="B"/>
10
+ <bbox w="108.0" h="60.0" x="386.0" y="10.0"/>
11
+ </glyph>
12
+ <glyph class="perturbation" id="glyph3">
13
+ <bbox w="42.0" h="42.0" x="249.0" y="79.0"/>
14
+ <port id="glyph3.1" x="270.0" y="100.0"/>
15
+ <port id="glyph3.2" x="312.0" y="100.0"/>
16
+ </glyph>
17
+ <glyph class="biological activity" id="glyph1">
18
+ <label text="C"/>
19
+ <bbox w="108.0" h="60.0" x="386.0" y="130.0"/>
20
+ </glyph>
21
+ <arc class="positive influence" id="f99c1" source="glyph3" target="glyph0">
22
+ <start x="249.0" y="100.0"/>
23
+ <end x="164.0" y="100.0"/>
24
+ </arc>
25
+ <arc class="logic arc" id="ad2f6" source="glyph2" target="glyph3">
26
+ <start x="312.0" y="100.0"/>
27
+ <end x="386.0" y="59.058823"/>
28
+ </arc>
29
+ <arc class="logic arc" id="dba2f" source="glyph1" target="glyph3.1">
30
+ <start x="312.0" y="100.0"/>
31
+ <end x="386.0" y="140.94118"/>
32
+ </arc>
33
+ </map>
34
+ </sbgn>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph2" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="30.0" x="26.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph1" class="biological activity">
9
+ <label text="C"/>
10
+ <bbox y="130.0" x="26.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <glyph id="glyph3" class="biological activity">
13
+ <label text="B"/>
14
+ <bbox y="20.0" x="286.0" h="60.0" w="108.0"/>
15
+ </glyph>
16
+ <glyph id="glyph4" class="not">
17
+ <bbox y="89.0" x="179.0" h="42.0" w="42.0"/>
18
+ <port y="110.0" x="158.0" id="glyph4.1"/>
19
+ <port y="110.0" x="242.0" id="glyph4.2"/>
20
+ </glyph>
21
+ <glyph id="glyph0" class="biological activity">
22
+ <label text="D"/>
23
+ <bbox y="130.0" x="286.0" h="60.0" w="108.0"/>
24
+ </glyph>
25
+ <arc target="glyph4.1" source="glyph2" id="arc0" class="logic arc">
26
+ <start y="90.0" x="126.8"/>
27
+ <end y="110.0" x="158.0"/>
28
+ </arc>
29
+ <arc target="glyph4.1" source="glyph1" id="arc1" class="logic arc">
30
+ <start y="130.0" x="126.8"/>
31
+ <end y="110.0" x="158.0"/>
32
+ </arc>
33
+ <arc target="glyph3" source="glyph4.2" id="arc2" class="positive influence">
34
+ <start y="110.0" x="242.0"/>
35
+ <end y="73.14286" x="286.0"/>
36
+ </arc>
37
+ <arc target="glyph0" source="glyph4.2" id="arc3" class="positive influence">
38
+ <start y="110.0" x="242.0"/>
39
+ <end y="140.71428" x="286.0"/>
40
+ </arc>
41
+ </map>
42
+ </sbgn>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph2" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="30.0" x="26.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph3" class="biological activity">
9
+ <label text="B"/>
10
+ <bbox y="20.0" x="286.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <glyph id="glyph4" class="not">
13
+ <bbox y="89.0" x="179.0" h="42.0" w="42.0"/>
14
+ <port y="110.0" x="158.0" id="glyph4.1"/>
15
+ <port y="110.0" x="242.0" id="glyph4.2"/>
16
+ </glyph>
17
+ <arc target="glyph4.1" source="glyph2" id="arc0" class="logic arc">
18
+ <start y="90.0" x="126.8"/>
19
+ <end y="110.0" x="158.0"/>
20
+ </arc>
21
+ <arc target="glyph3" source="glyph4.2" id="arc2" class="positive influence">
22
+ <start y="110.0" x="242.0"/>
23
+ <end y="73.14286" x="286.0"/>
24
+ </arc>
25
+ </map>
26
+ </sbgn>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph0" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="30.0" x="26.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph2" orientation="right" class="tag">
9
+ <label text="B"/>
10
+ <bbox y="30.0" x="206.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <glyph id="glyph1" class="tag">
13
+ <label text="C"/>
14
+ <bbox y="30.0" x="386.0" h="60.0" w="108.0"/>
15
+ </glyph>
16
+ <arc target="glyph2" source="glyph0" id="arc0" class="equivalence arc">
17
+ <start y="60.0" x="134.0"/>
18
+ <end y="60.0" x="206.0"/>
19
+ </arc>
20
+ <arc target="glyph1" source="glyph2" id="arc1" class="equivalence arc">
21
+ <start y="60.0" x="314.0"/>
22
+ <end y="60.0" x="386.0"/>
23
+ </arc>
24
+ </map>
25
+ </sbgn>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <sbgn xmlns="http://sbgn.org/libsbgn/0.2">
3
+ <map language="activity flow">
4
+ <glyph id="glyph1" class="biological activity">
5
+ <label text="A"/>
6
+ <bbox y="80.0" x="56.0" h="60.0" w="108.0"/>
7
+ </glyph>
8
+ <glyph id="glyph0" class="biological activity">
9
+ <label text="B"/>
10
+ <bbox y="80.0" x="256.0" h="60.0" w="108.0"/>
11
+ </glyph>
12
+ <arc target="glyph0" source="glyph1" id="arc0" class="equivalence arc">
13
+ <start y="110.0" x="164.0"/>
14
+ <end y="110.0" x="256.0"/>
15
+ </arc>
16
+ </map>
17
+ </sbgn>