Skip to content

Commit

Permalink
remove deletable files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaoyx committed Oct 10, 2024
1 parent 3472949 commit a20d91b
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cooltools/api/expected.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def per_region_smooth_cvd(

return cvd

def _transformer(p, weight1, weight2):
def _balance_transform(p, weight1, weight2):
return p["count"] * p[weight1] * p[weight2]

# user-friendly wrapper for diagsum_symm and diagsum_pairwise - part of new "public" API
Expand Down Expand Up @@ -1183,7 +1183,7 @@ def expected_cis(
# define balanced data transform:
weight1 = clr_weight_name + "1"
weight2 = clr_weight_name + "2"
transforms = {"balanced": partial(_transformer, weight1=weight1, weight2=weight2)}
transforms = {"balanced": partial(_balance_transform, weight1=weight1, weight2=weight2)}
else:
raise ValueError(
"cooler is not balanced, or"
Expand Down Expand Up @@ -1321,7 +1321,7 @@ def expected_trans(
# define balanced data transform:
weight1 = clr_weight_name + "1"
weight2 = clr_weight_name + "2"
transforms = {"balanced": partial(_transformer, weight1=weight1, weight2=weight2)}
transforms = {"balanced": partial(_balance_transform, weight1=weight1, weight2=weight2)}
else:
raise ValueError(
"cooler is not balanced, or"
Expand Down
Binary file removed tests/data/CN.mm9.10000kb.test_sampled.cool
Binary file not shown.
Binary file removed tests/data/CN.mm9.1000kb.test_sampled.cool
Binary file not shown.
Binary file removed tests/data/test_coverage.cool
Binary file not shown.
Binary file removed tests/test_chr2chr1_reordered_inverted.cool
Binary file not shown.
Binary file removed tests/test_chrom1_reordered.cool
Binary file not shown.
Binary file removed tests/test_chrom1_reordered_inverted.cool
Binary file not shown.
3 changes: 2 additions & 1 deletion tests/test_expected.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,4 +732,5 @@ def test_diagsum_from_array():
exp = _diagsum_symm_dense(ar, bad_bins=list(range(3, 5)))
exp1 = diagsum_from_array(ar, ignore_diags=0)
exp1["balanced.avg"] = exp1["balanced.sum"] / exp1["n_valid"]
assert np.allclose(exp, exp1["balanced.avg"].values, equal_nan=True)
assert np.allclose(exp, exp1["balanced.avg"].values, equal_nan=True)

Binary file removed tests/test_not_reordered.cool
Binary file not shown.

0 comments on commit a20d91b

Please sign in to comment.