-
Notifications
You must be signed in to change notification settings - Fork 14
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
ENH: add actions to filter MAGs #169
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
==========================================
- Coverage 97.82% 97.78% -0.04%
==========================================
Files 64 67 +3
Lines 3534 3700 +166
==========================================
+ Hits 3457 3618 +161
- Misses 77 82 +5 ☔ View full report in Codecov by Sentry. |
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.
Hi @misialq
I ran it with the provided data with no problems.
I have one suggestion. If I understand correctly the metadata is not optional and has to be provided for the filter actions. If the metadata is not given in the command, the error message is NoneType' object has no attribute 'get_ids
, what is not very informative. I would add a check that raises an error if metadata is None, with an informative error message.
Apart from that all looks good! :)
Hey @VinzentRisch, thanks, good catch! Actually, it does not make much sense for the metadata to be optional - otherwise, there's nothing to filter on... I just turned it into a required argument - hope that addresses your comment ;) |
Ah yeah that makes sense. |
No, it should not be mandatory. You can also provide a metadata file which contains the IDs you want to filter on - there is no need to provide the "where" condition in such a case (you may already have a metadata table which is pre-filtered). This is explained in the help description of |
Ah okay that makes sense. |
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.
Looks good :)
Closes #160.
Some artifacts useful for testing can be found here.