-
Notifications
You must be signed in to change notification settings - Fork 29
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 functions to support padding and filtering intervals: filter_by_intervals
, pad_intervals
, parse_locus_intervals
#752
Add functions to support padding and filtering intervals: filter_by_intervals
, pad_intervals
, parse_locus_intervals
#752
Conversation
pad_intervals
, filter_by_intervals
, pad_intervals
, parse_locus_intervals
filter_by_intervals
, pad_intervals
, parse_locus_intervals
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. Thanks for separating the functions. I have a few comments.
.. note:: | ||
|
||
If no Gencode Table is provided, the default version of the Gencode Table | ||
resource for the genome build of the input Table/MatrixTable will be used. |
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 think the note here is a bit redundant, since it's already mentioned in filter_gencode_ht function.
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 don't think it hurts to have it here for users that don't realize this function is using that function
|
||
if is_expr: | ||
_ht = intervals._indices.source | ||
num_intervals = _ht.count() |
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.
num_intervals
is only checked when the intervals is_exper
, what if a list is bigger than our max? The list won't cause a memory issue?
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 think the memory issue is in the collect right? So the user will already have encountered that
Fix docstring
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.
LGTM!
No description provided.