Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Tests #1

wants to merge 2 commits into from

Conversation

hanyelgaml-roche
Copy link

Tests

Comment on lines +34 to +35
mMgr = MeasurementManager()
fms = mMgr.import_records(records, genome="hg19")
Copy link
Member

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

Comment on lines +57 to +63
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
Copy link
Member

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

@jkanche
Copy link
Member

jkanche commented Apr 29, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants