diff --git a/src/libhictk/balancing/include/hictk/balancing/ice.hpp b/src/libhictk/balancing/include/hictk/balancing/ice.hpp index ce08b5808..4c05d2f10 100644 --- a/src/libhictk/balancing/include/hictk/balancing/ice.hpp +++ b/src/libhictk/balancing/include/hictk/balancing/ice.hpp @@ -14,7 +14,7 @@ namespace hictk::balancing { class ICE { - std::vector _chrom_offsets{}; + std::vector _chrom_offsets{}; std::vector _biases{}; std::vector _variance{}; std::vector _scale{}; diff --git a/src/libhictk/balancing/include/hictk/balancing/impl/ice_impl.hpp b/src/libhictk/balancing/include/hictk/balancing/impl/ice_impl.hpp index ff8067515..381907ff4 100644 --- a/src/libhictk/balancing/include/hictk/balancing/impl/ice_impl.hpp +++ b/src/libhictk/balancing/include/hictk/balancing/impl/ice_impl.hpp @@ -145,14 +145,10 @@ inline void ICE::balance_cis(const MatrixT& matrix, const BinTable& bins, std::s template auto ICE::construct_sparse_matrix(const File& f, Type type, std::size_t num_masked_diags) -> SparseMatrix { - switch (type) { - case Type::cis: - return construct_sparse_matrix_cis(f, num_masked_diags); - case Type::trans: - [[fallthrough]]; - case Type::gw: - return construct_sparse_matrix_gw(f, num_masked_diags); + if (type == Type::cis) { + return construct_sparse_matrix_cis(f, num_masked_diags); } + return construct_sparse_matrix_gw(f, num_masked_diags); } template diff --git a/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp b/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp index b5b21b219..4bcecf3e4 100644 --- a/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp +++ b/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp @@ -21,8 +21,8 @@ class SparseMatrix { std::vector _counts{}; std::uint32_t _chrom_id{}; // ID of the chromosome that is being procesed - std::vector _chrom_offsets{}; - std::vector _bin1_offsets{}; + std::vector _chrom_offsets{}; + std::vector _bin1_offsets{}; mutable std::vector _marg{}; static constexpr auto _gw_id = std::numeric_limits::max();