Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Sep 27, 2024
1 parent 815c82c commit 6a9c10d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/LD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,13 @@ void ld_clump_single_pheno(const std::string& fileout, const std::string& head,
auto mpp = pvals_per_chr[c]; // key: pos, val: pval
Double1D pp;
Int1D ps;
cao.print("process chr", c);
for (auto it = mpp.begin(); it != mpp.end(); it++) {
if (it->second.first <= clump_p1) {
ps.push_back(it->first);
pp.push_back(it->second.first);
}
}
int p, p2, j, k;
cao.print("start clumping", c);
for (auto i : sortidx(pp)) { // snps sorted by p value
p = ps[i];
if (mpp.count(p) == 0)
Expand Down

0 comments on commit 6a9c10d

Please sign in to comment.