Skip to main content

converting cells drawn in svg files to VirtualLeaf xml start files. The svg file should be specified without extension, the resulting xml file will be stored next to the svg file.

Project description

#Enhanced cell wall mechanics in VirtualLeaf enable realistic simulations of plant tissue dynamics

Computational modelling has become increasingly important in advancing our understanding of biological systems, necessitating the development of new computational approaches and software. VirtualLeaf, in particular, is a modelling framework for plant tissues that accounts for the biophysical mechanics of plant cell interactions. The plant cell wall plays a pivotal role in plant development and survival, with younger cells generally having thinner, more flexible (primary) walls than older cells. Signalling processes in growth and pathogen infection also affect cell wall stability. This article presents an updated version of VirtualLeaf with improved cell wall mechanics and morphing behaviour. These are crucial for ultimately understanding plant tissue dynamics and essential signalling processes during growth, tissue formation and pathogen defence. The updated version of VirtualLeaf enables detailed modelling of variations in cell wall stability to the level of individual cell wall elements. These improvements lay the groundwork for using VirtualLeaf to address new research questions, including the structural implications of pathogen infection and growth.

The script facilitates the customisation of multiple parameters, including the designation and directory of the template file, which outlines the overarching structure and general parameters for the XML file alongside the desired filename for the resulting XML document. Additionally, users can specify a scaling factor to appropriately map x and y coordinates to the cellular scale and a colour map for encoding cell types within the SVG file. Furthermore, specific details for each cell type are provided, delineated by colons and their hex colour code, encompassing elements such as cell type and intracellular chemical concentrations.

python readsvg.py -i "path to the SVG file (without .svg)" -t "path to the XML template file (with file extension)" -s "numerical scaling factor between image and simulation template" -c “color code”

The colour code has the form of "RGB colour code, cell type, intracellular species concentrations: RGB colour code, cell type, intracellular species: ... : ... :" until all colour codes are described. Default colour code is "ffffff,1,2.251808,0.481961:0000f8,2,2.251808,0.481961:009000,3,2.251808,0.481961:ff0000,3,2.251808,0.481961"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

svg-to-vl-2.0.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

svg_to_vl-2.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file svg-to-vl-2.0.0.tar.gz.

File metadata

  • Download URL: svg-to-vl-2.0.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for svg-to-vl-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fbd8bfdf22d75feb64b96fbd920d9885f5c8736733d775325d0fd8adc473030f
MD5 d6518e0b03245b0676635aa5df68b2cf
BLAKE2b-256 65e227667d453bbf3c46bc5b53598743608e697c802cf1ec49488b1128837e95

See more details on using hashes here.

File details

Details for the file svg_to_vl-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: svg_to_vl-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for svg_to_vl-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f711b68cb216016a63f76a84e572f5adc98a23b12d7111d404c1590fb242b825
MD5 95f723566c0c753d5ec7290966e47675
BLAKE2b-256 735ab87d08de4dd545e04836ef51e2d04d1ec46052901154efacde682a7c49fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page