Skip to content

Commit 74257f4

Browse files
authored
Merge pull request #146 from andersen-lab/solving_compile_errors
Solving compile errors for macos
2 parents d0e2ad0 + cee84a3 commit 74257f4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ccpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
build-macos:
5959

60-
runs-on: [ macos-11 ]
60+
runs-on: [ macos-latest ]
6161

6262
steps:
6363
- uses: actions/checkout@master

src/call_consensus_pileup.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ ret_t get_consensus_allele(std::vector<allele> ad, uint8_t min_qual,
3333
std::vector<allele> nuc_pos;
3434
allele tmp_a;
3535
char n;
36-
uint32_t max_l = 0, max_depth = 0, cur_depth = 0, tmp_depth = 0,
36+
uint32_t max_l = 0, max_depth = 0, tmp_depth = 0,
3737
total_max_depth = 0, gap_depth = 0, total_indel_depth = 0;
38+
// uint32_t cur_depth = 0;
3839
uint8_t ambg_n = 1, ctr = 0;
3940
double q = 0, tq = 0, cur_threshold = 0;
4041
std::vector<allele>::iterator it;
@@ -56,7 +57,7 @@ ret_t get_consensus_allele(std::vector<allele> ad, uint8_t min_qual,
5657
tq = 0;
5758
max_depth = 0;
5859
tmp_depth = 0;
59-
cur_depth = 0;
60+
// cur_depth = 0;
6061
// prev_depth = 0;
6162
ctr = 1;
6263
it = ad.begin();
@@ -84,7 +85,7 @@ ret_t get_consensus_allele(std::vector<allele> ad, uint8_t min_qual,
8485
it++;
8586
ctr++;
8687
}
87-
cur_depth += tmp_depth;
88+
// cur_depth += tmp_depth;
8889
tmp_a.nuc = it->nuc[i];
8990
tmp_a.mean_qual = tq;
9091
tmp_a.reverse = 0; // Reverse reads not important for consensus

0 commit comments

Comments
 (0)