Skip to content

Commit

Permalink
Add some debug information when reading the temporary file
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Jan 31, 2024
1 parent 3754176 commit 9e8c980
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chromap.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.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
Expand Down
2 changes: 1 addition & 1 deletion src/chromap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
3 changes: 3 additions & 0 deletions src/temp_mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e8c980

Please sign in to comment.