Open cpignedoli opened 3 years ago
I am actually working on this right now: Generate structure from SMILES using SmilesWidget with RDKit, optimize with XTB. One challenge will be to make this performant. It would be good to know whether there is interest to have this functionality on master.
Generate structure from SMILES using SmilesWidget with RDKit, optimize with XTB.
Thanks, @danielhollas, that is definitely a good thing to have. May I suggest implementing it as a structure editor that can be injected into the StructureManagerWidget
? https://github.com/aiidalab/aiidalab-widgets-base/blob/4badc55394fb6e8f49eb0388b09ff9a7473952b0/aiidalab_widgets_base/structures.py#L42
The point is: independently of where the structure is coming from, one might still want to modify it.
For the example on how a structure editor can be used see here: https://github.com/aiidalab/aiidalab-widgets-base/blob/master/notebooks/structures.ipynb
Interesting idea, I'll look into it, thanks!
It could be very useful, for example when generating molecules from smiles, to add the posisbility of optimizing a structure with xtb this can be done as follows:
(see https://github.com/pgasparo/smiles2ase also for one example)
suppose mol is an ase structure: