jespermaag / gganatogram

Create anatograms using ggplot2
379 stars 52 forks source link

Workflow: Missing ovaries and testis #6

Closed jespermaag closed 5 years ago

jespermaag commented 5 years ago

Python script (data-raw/extractcoord.py) fails to extract ellipses and arcs from the SVG files, which leads to missing tissues.

jespermaag commented 5 years ago
<g
   id="UBERON_0000992"
   style="fill:none;stroke:none"
   inkscape:label="UBERON_0000992"
   transform="translate(-28.558744,-76.741038)">
  <title
     id="ovary">ovary</title>
  <path
     sodipodi:end="6.275538"
     sodipodi:start="0"
     transform="matrix(0.91474633,-0.40402864,0.43444822,0.90069681,0,0)"
     d="M -3.7252197,183.93817 A 0.99272877,0.83321977 0 0 1 -4.7160505,184.77139 0.99272877,0.83321977 0 0 1 -5.7106699,183.94136 0.99272877,0.83321977 0 0 1 -4.7236422,183.10497 0.99272877,0.83321977 0 0 1 -3.7252487,183.9318 L -4.7179484,183.93817 Z"
     sodipodi:ry="0.83321977"
     sodipodi:rx="0.99272877"
     sodipodi:cy="183.93817"
     sodipodi:cx="-4.7179484"
     id="path18952"
     sodipodi:type="arc" />
  <path
     sodipodi:type="arc"
     id="path18954"
     sodipodi:cx="-148.18413"
     sodipodi:cy="-112.90377"
     sodipodi:rx="0.97524083"
     sodipodi:ry="0.85279381"
     d="M -147.20889,-112.90377 A 0.97524083,0.85279381 0 0 1 -148.18226,-112.05098 0.97524083,0.85279381 0 0 1 -149.15936,-112.90051 0.97524083,0.85279381 0 0 1 -148.18972,-113.75655 0.97524083,0.85279381 0 0 1 -147.20892,-112.91029 L -148.18413,-112.90377 Z"
     transform="matrix(-0.90007703,-0.43573081,0.41100361,-0.91163372,0,0)"
     sodipodi:start="0"
     sodipodi:end="6.275538" />
</g>
jespermaag commented 5 years ago

Manually added with DrawEllipse from DescTools:

DrawEllipse(x=47, y=91, radius.x=0.99, radius.y=0.83, rot=60)
DrawEllipse(x=58.5, y=91, radius.x=0.99, radius.y=0.83, rot=60)
jespermaag commented 5 years ago

Manually added