-
Notifications
You must be signed in to change notification settings - Fork 28
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
0.3.0 roadmap #48
Comments
tests for split are now available: 31e11f5 (@gfudenberg, does it look good?) |
looks good!
…-- it would help to add a few more of the explanations (# Test the case
when a chromosome is missing from points is perfect).
-- looks like the case where points is a dict could use a test (if we
intend to keep that option for split() ).
-- looks like add_names could use a test
ops.split() also appears to need a docstring update for cols_points &
add_names.
On Tue, Nov 24, 2020 at 2:00 PM Anton Goloborodko ***@***.***> wrote:
tests for split are now available: 31e11f5
<31e11f5>
***@***.*** <https://github.com/gfudenberg>, does it look good?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEV7GZMVPLD7DTJ3P62CWPLSRQUIVANCNFSM4PTVIJ4A>
.
|
Will this be the desired behavior after updating to
--> update: complement now allows for intervals from df to cover multiple regions in view_df. |
see the decorator code from Nezar below and the post-release bullet (consider replacing the repeated get_default_colnames and _verify_columns() in each ops with either a decorator or a function that does both. )
see todo item of deleting split, and change make_chromarms to use subtract |
from functools import wraps
def checks_colnames(func):
@wraps(func)
def wrapped(*args, **kwargs):
df = args[0]
cols = kwargs.get('cols')
ck, sk, ek = _get_default_colnames() if cols is None else cols
_verify_columns(df, [ck, sk, ek])
func(*args, **kwargs)
return wrapped |
released! |
TODO:
API
Cosmetic:
arg
for arguments in docstrings, to agree with https://numpydoc.readthedocs.io/en/latest/format.html#parameters. internal links can be added with func:myfunc()
Changes in the existing code code:
New code:
(chrom, start, end, on)
. This is currently handled on a function-by-function basis to avoid casting to float.solution: write a function that nans a part of a table AND casts numpy numeric types into pandas typesbioframe.core.construction.sanitize_bioframe
Test:
Docs:
need to use a different word for ‘name’ of an interval, vs. the ‘parent_region_name’ of an interval. E.g. a set of CTCF peaks could have names CTCFpeak1,…, CTCFpeakN, but they could all be on chr1p.→→ defaults are 'view_region' and 'name'
_verify_columns
and_verify_column_dtypes
to specs documentation (https://stackoverflow.com/a/7740295)The text was updated successfully, but these errors were encountered: