Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add smiles string conversion using pybel backend #1056

Merged
merged 4 commits into from
Oct 25, 2022

Conversation

daico007
Copy link
Member

PR Summary:

A quick path to go from mbuild compound to smiles string through openbabel. I am using openbabel to guess the bond orders of the resulted molecule and output a smile string. This can be a temp solution before we can have our own smiles string writer. Pending unit tests.

PR Checklist


  • Includes appropriate unit test(s)
  • Appropriate docstring(s) are added/updated
  • Code is (approximately) PEP8 compliant
  • Issue(s) raised/addressed?

@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Base: 90.53% // Head: 88.66% // Decreases project coverage by -1.87% ⚠️

Coverage data is based on head (efd129f) compared to base (fd3fe39).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1056      +/-   ##
==========================================
- Coverage   90.53%   88.66%   -1.88%     
==========================================
  Files          60       60              
  Lines        8421     8423       +2     
==========================================
- Hits         7624     7468     -156     
- Misses        797      955     +158     
Impacted Files Coverage Δ
mbuild/compound.py 97.58% <100.00%> (+<0.01%) ⬆️
mbuild/formats/hoomd_forcefield.py 0.00% <0.00%> (-78.46%) ⬇️
mbuild/formats/hoomd_snapshot.py 73.77% <0.00%> (-5.25%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@bc118 bc118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix bleeding test, otherwise this LGTM

Copy link
Contributor

@bc118 bc118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after fixing bleeding test

@daico007
Copy link
Member Author

So the issue with the bleeding test has to do with the python version specified. When updating the env with specs from foyer/gmso env.yml, the python version got updated to python 3.10. The fixes would need to be applied on gmso/foyer sides, by adding an upper constraint for python version

@daico007 daico007 merged commit ba6fead into mosdef-hub:main Oct 25, 2022
thangckt added a commit to thangckt/mbuild that referenced this pull request Oct 31, 2022
Add smiles string conversion using pybel backend (mosdef-hub#1056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants