Skip to content

Commit

Permalink
debug ld clump
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Sep 27, 2024
1 parent 4507d4d commit a26fcd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/LD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ std::tuple<Int2D, Int2D> get_target_snp_idx(const SNPld& snp_t,
i = 0;
while (snp_t.chr[i] != snp.chr[c]) {
i++;
if (i == (int)snp_t.chr.size()) break;
}
ord.push_back(i);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ struct SNPld {
std::vector<int> pos; // pos of each SNP
std::vector<int> end_pos; // 0-based index for last snp pos
std::vector<std::string> chr; // chr sequences
std::vector<int> ws, we; // the snp index, i.e the index for lead SNP
// std::vector<int> we; // the number of SNPs (including lead SNP) in a window
Double1D af; // allele frequency
Double1D af; // allele frequency
std::vector<int> ws; // the snp index, i.e the index for lead SNP
std::vector<int> we; // the number of SNPs (including lead SNP) in a window
};

std::string get_machine();
Expand Down

0 comments on commit a26fcd1

Please sign in to comment.