Skip to content

Commit

Permalink
Merge pull request #13 from joshuak94/options_fix
Browse files Browse the repository at this point in the history
Add threads and output prefix to option constructor.
  • Loading branch information
smehringer authored Nov 29, 2019
2 parents 72d1e0c + f7fca35 commit 0ba41a1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions include/sviper/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct CmdOptions
bool verbose{false};
bool veryVerbose{false};
bool output_polished_bam{false};
unsigned threads{0};
unsigned threads{std::thread::hardware_concurrency()};
int flanking_region{400}; // size of flanking region for breakpoints
int mean_coverage_of_short_reads{36}; // original coverage
double mean_insert_size_of_short_reads{280.054}; // original coverage
Expand All @@ -23,13 +23,18 @@ struct CmdOptions
std::string reference_file_name{};
std::string log_file_name{};

CmdOptions(std::string long_, std::string short_, std::string candidate_, std::string ref_) :
threads(std::thread::hardware_concurrency()),
CmdOptions(unsigned threads_,
std::string long_,
std::string short_,
std::string candidate_,
std::string ref_,
std::string output_prefix_) :
threads(threads_),
long_read_file_name(long_),
short_read_file_name(short_),
candidate_file_name(candidate_),
output_prefix(candidate_ + "_polished"),
reference_file_name(ref_) {}
reference_file_name(ref_),
output_prefix(output_prefix_) {}

CmdOptions() = default;
CmdOptions(const CmdOptions&) = default;
Expand Down

0 comments on commit 0ba41a1

Please sign in to comment.