Skip to content

Commit

Permalink
(FORK COMMIT) Consider flip+switch in QC filters; add these variants …
Browse files Browse the repository at this point in the history
…to excluded snps filter

Refs genepi#137
  • Loading branch information
abought committed Apr 18, 2024
1 parent d24f2e5 commit 0d15b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ else if (task.getStrandFlipSimple() + task.getStrandFlipAndAlleleSwitch() > stra
}

// Check if too many allele switches are detected
else if (task.getAlleleSwitch() > alleleSwitches) {
else if ((task.getAlleleSwitch() + task.getStrandFlipAndAlleleSwitch()) > alleleSwitches) {
text.append("<br><b>Error:</b> More than " + alleleSwitches
+ " allele switches have been detected. Imputation cannot be started!");
context.error(text.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,15 @@ else if (GenomicTools.alleleSwitch(snp, refSnp)) {
if (insideChunk) {

alleleSwitch++;
filtered++;
excludedSnpsWriter.write(snp + "\t" + "Allele switch" + "\t" + "Ref:" + legendRef + "/" + legendAlt);
/*
* logWriter.write("Allele switch" + snp.getID() + "\t" + chr + ":"+
* snp.getStart() + "\t" + "ref: " + legendRef + "/" + legendAlt + "; data: " +
* studyRef + "/" + studyAlt + ")");
*/
}
return;

}

Expand Down

0 comments on commit 0d15b69

Please sign in to comment.