# How to Generate Custom Plasmid Structures for MolecularDNA Simulations?

**URL:** <https://geant4-forum.web.cern.ch/t/how-to-generate-custom-plasmid-structures-for-moleculardna-simulations/13525>\
**Category:** Geometry, Fields and Transportation\
**Created:** [January 25, 2025, 11:39pm UTC](https://geant4-forum.web.cern.ch/t/how-to-generate-custom-plasmid-structures-for-moleculardna-simulations/13525 "2025-01-25T23:39:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akap](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/akap/32/5655_2.png) [@akap](https://geant4-forum.web.cern.ch/u/akap)\
**Post date:** [January 25, 2025, 11:39pm UTC](https://geant4-forum.web.cern.ch/t/how-to-generate-custom-plasmid-structures-for-moleculardna-simulations/13525/1 "2025-01-25T23:39:24Z")

</div>

Please fill out the following information to help in answering your question, and also see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944). If you don’t provide this information it will take more time to help with your problem!

\_Geant4 Version:\_11.3.0  
\_Operating System:\_Red Hat Enterprise Linux 8.7 (Ootpa)  
\_Compiler/Version:\_gcc-11.3.0  
\_CMake Version:\_3.23.1

* * *

I am working on simulating plasmid DNA damage (e.g., pUC19) using the MolecularDNA example. The provided example includes geometry for a plasmid named `plasmid_4367`. However, I need to generate a similar structure for a different plasmid. I have been exploring the FractalDNA package, but I couldn’t find a suitable DNA model for plasmids. Could you suggest any methods, tools, or workflows to create custom plasmid structures for use in the MolecularDNA example?

---

<div class="post-metadata">

**Author:** ![ngoc](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/ngoc/32/5329_2.png) [@ngoc](https://geant4-forum.web.cern.ch/u/ngoc)\
**Post date:** [January 27, 2025, 11:33am UTC](https://geant4-forum.web.cern.ch/t/how-to-generate-custom-plasmid-structures-for-moleculardna-simulations/13525/2 "2025-01-27T11:33:12Z")

</div>

Dear,

Basically, plasmide under supercoil forme is a ramdom circle with the lenght of DNA base paire. You may need to generate this forme according to number of DNA base paire you want. The FractalDNA package can help you to fill dna geometry in this forme. If you cannot creat your pUC19, a example of this plasmide can be found in dnaddamage2. Good luck!

---

<div class="post-metadata">

**Author:** ![akap](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/akap/32/5655_2.png) [@akap](https://geant4-forum.web.cern.ch/u/akap)\
**Post date:** [January 27, 2025, 5:58pm UTC](https://geant4-forum.web.cern.ch/t/how-to-generate-custom-plasmid-structures-for-moleculardna-simulations/13525/3 "2025-01-27T17:58:56Z")

</div>

Thank you for your response. I reviewed the `dnadamage2` example, and while it does provide the pUC19 plasmid structure as XYZ coordinates, the `moleculardna` example requires a different format. Specifically, the required format includes:

| #NAME | SHAPE | CHAIN\_ID | STRAND\_ID | BP\_INDEX | SIZE\_X | SIZE\_Y | SIZE\_Z | POS\_X | POS\_Y | POS\_Z | ROT\_X | ROT\_Y | ROT\_Z |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Phosphate | sphere | 0 | 0 | 0 | 2.282353867 | 2.282353867 | 2.282353867 | 151.8451065 | 436.6706005 | 108.1613349 | 2.235297161 | 0.176505727 | 0.948744205 |
| Sugar | sphere | 0 | 0 | 0 | 2.632139826 | 2.632139826 | 2.632139826 | 151.8609782 | 440.107885 | 106.5634079 | 2.235297161 | 0.176505727 | 0.948744205 |

I am currently facing challenges in converting or generating the XYZ coordinates into this required format. While the `fractaldna` package provides tools to create structures using fractal or solenoidal shapes, I haven’t found a way to generate the exact format needed for the pUC19 plasmid or from any XYZ coordinate.

Is there a specific tool or method you would recommend for this task?

Thank you for your assistance!

AK
