-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update README.md #5
Conversation
Add ChEMBL version the code base has been tested on.
Not sure a note like this is super valuable, here's how I'd go about this:
|
I see. Okay. It is going to take some time, but I will try and send a PR soon. |
@cthoyt for the 1st point with regard to statistics, do you have anything specific in mind or should I just print the total no.of chemicals and then add it to the tabulate? |
Total number of chemicals sounds good |
@cthoyt check out the commit. It writes to the README directly.. but I am sure you would want to error to be more cleaner.. any pointers for me? |
Please run |
In fffd13c, I added the following functionality:
|
Please don't worry about automatically re-writing the README, this is not so important |
@YojanaGadiya all you need to do now is re-run the script |
@cthoyt I think the PR is ready to be merged. Please check if this is according to what you expected. |
@cthoyt the table is now updated. Please check if this is how you planned. |
try: | ||
path = chembl_downloader.download_extract_sqlite(version=version_name) | ||
except Exception as e: | ||
return version_name, 'No', str(e), '-' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better than str(e)
is just to write that this version does not distribute SQLite, or even better, since this is tons of redundant information, leave the third column blank and put a note above the table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also combine the last three columns since they're redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Will just have 2 columns then. With the version and the Yes/No running status as you mentioned.
Codecov Report
@@ Coverage Diff @@
## main #5 +/- ##
==========================================
- Coverage 22.95% 21.32% -1.63%
==========================================
Files 6 7 +1
Lines 305 333 +28
Branches 65 68 +3
==========================================
+ Hits 70 71 +1
- Misses 232 259 +27
Partials 3 3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Does anything need to be done with respect to coverage? |
No don't worry about coverage but the rest are required |
Please check the latest commits. Is this similar to what you expected? |
@YojanaGadiya better, but there's no need for a duplicate yes/no column at this point since there is either a number or a dash that says the same information. |
If you can fix that and pass tox, this is ready to merge. |
@cthoyt I fixed the README and flake8 on my end. Please can you check/approve the workflow to confirm. Thank you. |
Apologies for spamming. Hopefully the last commit to the PR. Please approve @cthoyt |
Note that before merging, I deduplicated a lot of code. And combine the new table with the existing one. Thanks @YojanaGadiya. |
Closes #4
This PR adds total compound counts via the SQLite dump, which implicitly documents for which versions SQLite is available.