Skip to content

Commit

Permalink
Update tests to use the latest hictk API
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed May 21, 2024
1 parent f3fab4a commit fc33715
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/units/libmodle_io/contact_matrix_io_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ TEST_CASE("ContactMatrixDense to Cooler Roundtrip (square)", "[io][matrix][short

const hictk::Reference chroms{{0, "chr1", chrom_size}};
{
auto f = init_cooler_file<i32>(test_file, false, chroms,
hictk::cooler::StandardAttributes::init(bin_size));
auto f =
init_cooler_file<i32>(test_file, false, chroms, hictk::cooler::Attributes::init(bin_size));
append_contact_matrix_to_cooler(f, "chr1", m1);
REQUIRE(m1.get_nnz() == f.attributes().nnz);
}
Expand Down Expand Up @@ -82,8 +82,8 @@ TEST_CASE("ContactMatrixDense to Cooler Roundtrip", "[io][matrix][long]") {
const auto m1 = init_dense_matrix<u32>(rand_eng, nrows, ncols);
const hictk::Reference chroms{{0, "chr1", chrom_size}};
{
auto f = init_cooler_file<i32>(test_file, false, chroms,
hictk::cooler::StandardAttributes::init(bin_size));
auto f =
init_cooler_file<i32>(test_file, false, chroms, hictk::cooler::Attributes::init(bin_size));
append_contact_matrix_to_cooler(f, "chr1", m1);
REQUIRE(m1.get_nnz() == f.attributes().nnz);
}
Expand Down Expand Up @@ -114,7 +114,7 @@ TEST_CASE("ContactMatrixDense to Cooler Roundtrip (FP)", "[io][matrix][long]") {
const hictk::Reference chroms{{0, "chr1", chrom_size}};
{
auto f = init_cooler_file<double>(test_file, false, chroms,
hictk::cooler::StandardAttributes::init<double>(bin_size));
hictk::cooler::Attributes::init<double>(bin_size));
append_contact_matrix_to_cooler(f, "chr1", m1);
REQUIRE(m1.get_nnz() == f.attributes().nnz);
}
Expand Down

0 comments on commit fc33715

Please sign in to comment.