diff --git a/snapatac2-core/src/preprocessing/import.rs b/snapatac2-core/src/preprocessing/import.rs index b704b52b..6ec204c4 100644 --- a/snapatac2-core/src/preprocessing/import.rs +++ b/snapatac2-core/src/preprocessing/import.rs @@ -377,7 +377,7 @@ where count }) .collect::>(); - let (r, c, offset, ind, csr_data) = to_csr_data(counts, genome_size * genome_size); + let (r, c, offset, ind, csr_data) = to_csr_data(counts, genome_size); CsrMatrix::try_from_csr_data(r, c, offset, ind, csr_data).unwrap() });