Skip to content

Commit

Permalink
update to conform with new bioframe and pandas 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gfudenberg authored Feb 11, 2022
1 parent 36bd13d commit ac36a82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cooltools/api/eigdecomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ def _each(region):
# output table eigvec_table and eigvals_table
for _region, _eigvals, _eigvecs in results:
idx = bioframe.select(eigvec_table, _region).index
eigvec_table.at[idx, eigvec_columns] = _eigvecs.T
eigvec_table.loc[idx, eigvec_columns] = _eigvecs.T
idx = bioframe.select(eigvals_table, _region).index
eigvals_table.at[idx, eigval_columns] = _eigvals
eigvals_table.loc[idx, eigval_columns] = _eigvals

return eigvals_table, eigvec_table

Expand Down
2 changes: 1 addition & 1 deletion cooltools/sandbox/expected_smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _agg_smooth_cvd(
cvd, groupby, sigma_log10, window_sigma, points_per_sigma, cols=None
):
if groupby:
cvd = cvd.groupby(groupby).apply(
cvd = cvd.set_index(groupby).groupby(groupby).apply(
_smooth_cvd_group,
sigma_log10=sigma_log10,
window_sigma=window_sigma,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_expected.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _blocksum_asymm_dense(matrix, bad_bin_rows=None, bad_bin_cols=None):
common_regions.append(reg1)
common_regions.append(reg2)

view_df = bioframe.make_viewframe(common_regions)
view_df = bioframe.make_viewframe(common_regions, name_style='ucsc')


def test_diagsum_symm(request):
Expand Down

0 comments on commit ac36a82

Please sign in to comment.