Skip to content

Commit

Permalink
remove max_depth modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffan committed Oct 1, 2023
1 parent 7e7172c commit 9cbc265
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.4)
cmake_minimum_required(VERSION 2.8.12)
project(VerifyBamID)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
Expand Down
7 changes: 3 additions & 4 deletions SimplePileupViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,9 @@ int SimplePileupViewer::SimplePileup(mplp_conf_t *conf, int n, char **fn) {
max_depth = conf->max_depth;
if (max_depth * sm->n > 1 << 20)
fprintf(stderr, "[%s] Max depth is above 1M. Potential memory hog!\n", __func__);
if (max_depth * sm->n < 8000) {
max_depth = 8000 / sm->n;
fprintf(stderr, "[%s] Set max per-file depth to %d\n", __func__, max_depth);
}

fprintf(stderr, "[%s] Set max per-file depth to %d\n", __func__, max_depth);

max_indel_depth = conf->max_indel_depth * sm->n;
bam_mplp_set_maxcnt(iter, max_depth);
bcf1_t *bcf_rec = bcf_init1();
Expand Down
2 changes: 1 addition & 1 deletion libVcf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.12)
project(libVcf)

file(GLOB SOURCE_FILES
Expand Down
2 changes: 1 addition & 1 deletion samtools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.12)
project(samtools)

file(GLOB SOURCE_FILES *.c)
Expand Down
2 changes: 1 addition & 1 deletion statgen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.12)
project(statgen)

file(GLOB CXX_SOURCE_FILES *.cpp)
Expand Down

0 comments on commit 9cbc265

Please sign in to comment.