-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tests #1
base: main
Are you sure you want to change the base?
Tests #1
Conversation
- new test for mMgr.import_files
mMgr = MeasurementManager() | ||
fms = mMgr.import_records(records, genome="hg19") |
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.
it might be cumbersome to create a mgr and import records everytime inside each test. Probably should use the same objects from Line 17-18
def test_mean(): | ||
mMgr = MeasurementManager() | ||
fms = mMgr.import_records(records, genome="hg19") | ||
res = asyncio.run(fms[0].get_data("chr1", 1000000, 1002000, bins=100)) | ||
df = res[0] | ||
mean = df['E079-H3K27me3'].mean() | ||
assert mean == 1.6159404346346855 |
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.
this should be a computed mean across two measurements, i.e. defining a computed measurements with numpy.mean
as the function
also tests need to use the handler, they currently don't, as an example, do take a look at the changes and the test script here - 5042ad9 |
Tests