MolGen.pyp is a Python script that generates molecular structures based on user-defined rules and parameters. It utilizes a combination of algorithms and data structures to create diverse and realistic molecules.
- Rule-based generation: Define rules for atom types, bond types, and molecular properties to guide the generation process.
- Customizable parameters: Adjust various parameters such as molecule size, bond length, and atom properties to control the output.
- Output formats: Export generated molecules in popular file formats such as PDB, SDF, or SMILES.
- Visualization: Visualize the generated molecules using integrated 3D rendering capabilities.
- Clone the repository or download the "MolGen.pyp" script.
- Cinema 4D by Maxon needed. (dont forget to set the plugin directory to where you safed the "MolGen.pyp" file.)
- Install the required dependencies by running the following command:
pip install -r requirements.txt
- Point 2. is very important :D you can get a liscens on https://www.maxon.net/de/buy (ps. you can get a studen licens :D )
-
Open a terminal and navigate to the directory containing the "MolGen.pyp" script.
-
Run the script using the following command:
python MolGen.pyp
-
Follow the on-screen prompts to specify the generation rules and parameters.
-
Once the generation is complete, the generated molecules will be saved in the specified output format.
-
(Terminal? Open "Edit", go to "Prefrences", select "Plugins" redirect your directory to where the Plugin is located, open "Extensions" and click on "Molecule Generator Plugin")
Here are a few examples of how to use the script:
-
Use the dropdowns. For that you have to click on one of the options in the dropdown and press "Create Molecule" and it creats the Linear/Cyclic alkane.
-
Or insert your own formular based on the scientificyl ground formular, for linear its CnHn2+2 and for Cyclic its CnHn2.
-
If you are still unsure how the Plugin works press the "Help?" button and read through the steps to figure out how to use the plugin.
(Copilot wrote that i have no idea why but im going to leave it there anyway :D )
-
Generate a small molecule with default parameters:
python MolGen.pyp --size small
-
Generate a large molecule with custom rules:
python MolGen.pyp --size large --rules rules.json
-
Generate a molecule and save it in PDB format:
python MolGen.pyp --format pdb
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is Copyright: MAXON Computer GmbH and Carlo Neuschulz
For any questions or inquiries, please contact [Carlo.Neuschulz@gmail.com]