def test_run(self): pwm_dir = pkg_resources.resource_filename("seekr", "tests/data/pwms/") counts = pkg_resources.resource_filename( "seekr", "tests/data/example_2mers.npy") cw = CountsWeighter(pwm_dir, counts, k=2) cw.run() expected = np.array( [[4.56194883, 5.65991574, 6.5880013, 6.47169944, 8.14747599]]) assert np.allclose(cw.df.values, expected)
def _run_pwms(pwm_dir, counts, kmer, out_path): # TODO (Dan) name this function # Note: This function is separated for testing purposes. counts_weighter = CountsWeighter(pwm_dir, counts, kmer, out_path) counts_weighter.run()