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 changes to achieve progress described #177

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

tlinjordet
Copy link
Contributor

The progress and challenges from installation up through Tutorial 4 is detailed in issue #176.

In summary, the changes made from tag v1.7.3 are:

  • Changed mybash with subprocess because the previous version of the function failed/timed out.
  • Changed getsim, dissim, and dbsearch mainly to deal with obab = obabel given Open Babel v3.x.

I am interested in understanding any misapprehensions on my own part to better understand molSimplify as a whole, beyond simply getting the package to work.

Note that as described in #176, at no point was I able to pass all the tests, even in the current master branch.

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (432e374) 25.69% compared to head (82605c6) 25.66%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
- Coverage   25.69%   25.66%   -0.03%     
==========================================
  Files         102      102              
  Lines       33825    33819       -6     
==========================================
- Hits         8690     8681       -9     
- Misses      25135    25138       +3     
Flag Coverage Δ
unittests 25.66% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
molSimplify/Classes/globalvars.py 76.88% <0.00%> (+1.14%) ⬆️
molSimplify/Scripts/dbinteract.py 6.06% <0.00%> (-0.04%) ⬇️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if dbfs and args.dbfs:
com = obab + ' ' + dbfs + ' ' + 'simres.smi -d -xf' + \
finger + ' -s"' + smi + '" -al' + nmols
else:
mybash(obab + ' -isdf ' + dbsdf + ' -osdf -O tmp.sdf -d')
com = obab + ' tmp.sdf simres.smi -xf' + finger + ' -s"' + smi + '"'
com = obab + ' tmp.sdf -O simres.smi -xf' + finger + ' -s"' + smi + '"' # babel -> obabel

Check warning

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
@ralf-meyer
Copy link
Member

Hi @tlinjordet,

thank you for going through the trouble of actually tracking these issues down. Openbabel3 support is relatively new to molSimplify and even though we recently had students go through all the tutorials, apparently none of them used OB3.

Sorry that it took me so long to review and merge this PR!

@ralf-meyer ralf-meyer merged commit b5c30f7 into hjkgrp:master Oct 6, 2023
7 checks passed
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.

2 participants