-
Notifications
You must be signed in to change notification settings - Fork 3
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
Metric wishlist #104
Comments
@msto I have no objections to any of the issues linked; I might have input on implementation of those but I'm 100% on board with the functionality being added. With the possible exception of #89 if we really can't find a way to make it back-compat, or guarded by a check to see if the python version in use is high enough to support it. Re pysam ... I am also on board with finding a way to use the rest of fgpyo without forcing the pysam dependency. I don't know enough about how optional dependencies work in python/pypi (and by extension conda). That said, I think I could easily 👍 a solution that looks something like:
I think that would be preferable to trying to split fgpyo in two, but I'm open to being convinced of better solutions. |
Fantastic! I'll open a number of PRs over the next few weeks with candidate implementations. Re: pysam, I'm on board with your solution. The only modification I'd propose would be to make This is straightforward with pip/poetry - I can look into if/how conda supports it. https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies |
conda/conda#3299 Looks like a conda solution may take some consideration |
I was thinking that rather than pull in the dev dependencies, users would just add pysam to their own dependencies and that way they also get to pick their preferred version. |
Hey @nh13 @tfenne ,
I'd like to consolidate a wishlist of features/improvements to the
Metric
class.Their absence has blocked the use of
Metric
in client contexts (of note, #103 being blocked required me to re-implement much of theMetric
functionality from scratch on a client project), and I'd greatly appreciate their inclusion in thefgpyo
roadmap.In rough order of perceived priority:
Metric
should not be dependent onpysam
.Metric
(and other non-pysam-dependent modules) could be spun out into a separate package, or ifpysam
could be made an optional dependency.Optional
types #89I've written proof-of-concept solutions to these in https://github.com/msto/dataclass_io/, and am curious which might be considered for adoption by
fgpyo
. I would very much like to seeMetric
become the general solution for serializing/deserializing dataclasses in our client repos, but I've been hesitant to open additional PRs onfgpyo
to address these issues due to lack of clarity around which of these features are compatible with the vision forMetric
andfgpyo
.The text was updated successfully, but these errors were encountered: