Skip to content

Commit

Permalink
Merge pull request #146 from andersen-lab/solving_compile_errors
Browse files Browse the repository at this point in the history
Solving compile errors for macos
  • Loading branch information
cmaceves authored Feb 6, 2023
2 parents d0e2ad0 + cee84a3 commit 74257f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

build-macos:

runs-on: [ macos-11 ]
runs-on: [ macos-latest ]

steps:
- uses: actions/checkout@master
Expand Down
7 changes: 4 additions & 3 deletions src/call_consensus_pileup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ ret_t get_consensus_allele(std::vector<allele> ad, uint8_t min_qual,
std::vector<allele> 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<allele>::iterator it;
Expand All @@ -56,7 +57,7 @@ ret_t get_consensus_allele(std::vector<allele> 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();
Expand Down Expand Up @@ -84,7 +85,7 @@ ret_t get_consensus_allele(std::vector<allele> 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
Expand Down

0 comments on commit 74257f4

Please sign in to comment.