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

feat: add therapy-normalizer data sources #13

Merged
merged 23 commits into from
Nov 16, 2023
Merged

feat: add therapy-normalizer data sources #13

merged 23 commits into from
Nov 16, 2023

Conversation

jsstevenson
Copy link
Member

@jsstevenson jsstevenson commented Nov 3, 2023

close #3

@jsstevenson jsstevenson changed the title feat: add Therapy Normalizer sources feat: add therapy-normalizer data sources Nov 3, 2023
Comment on lines +67 to +69
def get_latest(
self, from_local: bool = False, force_refresh: bool = False
) -> Tuple[GtoPLigandPaths, str]:
Copy link
Member Author

Choose a reason for hiding this comment

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

hemonc and gtop both acquire multiple files. With HemOnc, it's basically a bundle (each one is meaningless without the others) but with GtoP, it's just a selection of useful files (and in fact, DGIdb uses a different selection of GtoP files). I thought about a few different ways to handle this (including making a separate class for each file) and all of them were sort of awkward. I think returning a namedtuple of paths like this is the easiest way to handle it for data consumers.

@jsstevenson jsstevenson marked this pull request as ready for review November 3, 2023 19:14
@jsstevenson jsstevenson requested review from korikuzma and removed request for korikuzma November 3, 2023 19:14
@jsstevenson jsstevenson marked this pull request as draft November 3, 2023 19:50
@jsstevenson
Copy link
Member Author

TODO for next week/week after: chembl download is being weird

@jsstevenson
Copy link
Member Author

also TODO document rxnorm api key requirement

@jsstevenson jsstevenson marked this pull request as ready for review November 10, 2023 17:08
src/wags_tails/drugbank.py Outdated Show resolved Hide resolved
src/wags_tails/hemonc.py Outdated Show resolved Hide resolved
src/wags_tails/rxnorm.py Outdated Show resolved Hide resolved
src/wags_tails/rxnorm.py Outdated Show resolved Hide resolved
@jsstevenson jsstevenson merged commit bd3dce2 into main Nov 16, 2023
10 checks passed
@jsstevenson jsstevenson deleted the therapy branch November 16, 2023 15:30
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.

Add therapy sources
2 participants