Commit 9e8c9802 authored by Li's avatar Li Committed by Li Song
Browse files

Add some debug information when reading the temporary file

parent 37541769
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
.TH chromap 1 "25 Jan 2024" "chromap-0.2.6 (r489)" "Bioinformatics tools"
.TH chromap 1 "25 Jan 2024" "chromap-0.2.6 (r490)" "Bioinformatics tools"
.SH NAME
.PP
chromap - fast alignment and preprocessing of chromatin profiles
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
#include "temp_mapping.h"
#include "utils.h"

#define CHROMAP_VERSION "0.2.6-r489"
#define CHROMAP_VERSION "0.2.6-r490"

namespace chromap {

+3 −0
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@ struct TempMappingFileHandle {

  inline void InitializeTempMappingLoading(uint32_t temp_mapping_block_size) {
    file = fopen(file_path.c_str(), "rb");
    if (file == NULL) {
      std::cerr << "Temporary file " << file_path << " is missing.\n" ;
    }
    assert(file != NULL);
    num_mappings = 0;
    block_size = temp_mapping_block_size;