Skip to content

Commit

Permalink
snp annotation filter works
Browse files Browse the repository at this point in the history
  • Loading branch information
juli-p committed Jan 17, 2024
1 parent f22c38f commit ccbe4e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/jobs/PlinkFilterSNPAnnotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,25 @@ namespace epi {
}
exclude_file.close();

Logger::logLine("Exclude those variants from the data");
if (exclude_annotations) {
Logger::logLine("Exclude those variants from the data");
} else {
Logger::logLine("Keep those variants from the data");
}
run_plink_command(ext_path, {
"--threads",
std::to_string(num_threads),
"--bfile",
input_path,
exclude_annotations ? "--exclude" : "--extract",
output_path + ".notnetwork",
output_path + ".withanno",
"--noweb",
"--make-bed",
"--out",
output_path
});

remove_plink_temp_files(output_path, { ".log", ".hh", ".notnetwork", ".nosex" });
remove_plink_temp_files(output_path, { ".log", ".hh", ".withanno", ".nosex" });

logger.stop();
}
Expand Down

0 comments on commit ccbe4e8

Please sign in to comment.