From f1ecf63b2a9abbd460503229b3c168d95ba405a0 Mon Sep 17 00:00:00 2001 From: cmaceves Date: Mon, 6 Feb 2023 12:20:54 -0800 Subject: [PATCH 1/2] adding macos latest back to github actions --- .github/workflows/ccpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index b6b707ad..954f063f 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -57,7 +57,7 @@ jobs: build-macos: - runs-on: [ macos-11 ] + runs-on: [ macos-latest ] steps: - uses: actions/checkout@master From cee84a3036a53b937f81c15b0ee0d38fdbd5e75a Mon Sep 17 00:00:00 2001 From: cmaceves Date: Mon, 6 Feb 2023 12:30:56 -0800 Subject: [PATCH 2/2] removing unused variable cur_depth --- src/call_consensus_pileup.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/call_consensus_pileup.cpp b/src/call_consensus_pileup.cpp index a9d1b12f..f77191b2 100644 --- a/src/call_consensus_pileup.cpp +++ b/src/call_consensus_pileup.cpp @@ -33,8 +33,9 @@ ret_t get_consensus_allele(std::vector ad, uint8_t min_qual, std::vector nuc_pos; allele tmp_a; char n; - uint32_t max_l = 0, max_depth = 0, cur_depth = 0, tmp_depth = 0, + uint32_t max_l = 0, max_depth = 0, tmp_depth = 0, total_max_depth = 0, gap_depth = 0, total_indel_depth = 0; + // uint32_t cur_depth = 0; uint8_t ambg_n = 1, ctr = 0; double q = 0, tq = 0, cur_threshold = 0; std::vector::iterator it; @@ -56,7 +57,7 @@ ret_t get_consensus_allele(std::vector ad, uint8_t min_qual, tq = 0; max_depth = 0; tmp_depth = 0; - cur_depth = 0; + // cur_depth = 0; // prev_depth = 0; ctr = 1; it = ad.begin(); @@ -84,7 +85,7 @@ ret_t get_consensus_allele(std::vector ad, uint8_t min_qual, it++; ctr++; } - cur_depth += tmp_depth; + // cur_depth += tmp_depth; tmp_a.nuc = it->nuc[i]; tmp_a.mean_qual = tq; tmp_a.reverse = 0; // Reverse reads not important for consensus