Skip to content

Commit

Permalink
enable site repeats by default
Browse files Browse the repository at this point in the history
  • Loading branch information
amkozlov committed Oct 19, 2018
1 parent 16e95e5 commit 045ccf1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ The code is currently licensed under the GNU Affero General Public License versi
When using RAxML-NG, please cite [this preprint](https://www.biorxiv.org/content/early/2018/10/18/447110):

Alexey M. Kozlov, Diego Darriba, Tomáš Flouri, Benoit Morel, and Alexandros Stamatakis (2018)
**RAxML-NG: A fast, scalable, and user-friendly tool for maximum likelihood phylogenetic inference**
*bioarxiv*
**RAxML-NG: A fast, scalable, and user-friendly tool for maximum likelihood phylogenetic inference.**
*bioarxiv.*
doi:[10.1101/447110](https://doi.org/10.1101/447110)

## The team
Expand Down
15 changes: 9 additions & 6 deletions src/CommandLineParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,18 @@ void CommandLineParser::parse_options(int argc, char** argv, Options &opts)

/* compress alignment patterns by default */
opts.use_pattern_compression = true;
/* use tip-inner case optimization by default */
opts.use_tip_inner = true;

/* do not use tip-inner case optimization by default */
opts.use_tip_inner = false;
/* use site repeats */
opts.use_repeats = true;

/* do not use per-rate-category CLV scalers */
opts.use_rate_scalers = false;

/* use probabilistic MSA _if available_ (e.g. CATG file was provided) */
opts.use_prob_msa = true;

/* do not use site repeats */
opts.use_repeats = false;

/* optimize model and branch lengths */
opts.optimize_model = true;
opts.optimize_brlen = true;
Expand Down Expand Up @@ -376,6 +376,7 @@ void CommandLineParser::parse_options(int argc, char** argv, Options &opts)
opts.use_prob_msa = true;
opts.use_pattern_compression = false;
opts.use_tip_inner = false;
opts.use_repeats = false;
}
else
opts.use_prob_msa = false;
Expand All @@ -387,6 +388,8 @@ void CommandLineParser::parse_options(int argc, char** argv, Options &opts)

case 13: /* disable tip-inner optimization */
opts.use_tip_inner = !optarg || (strcasecmp(optarg, "off") != 0);
if (opts.use_tip_inner)
opts.use_repeats = false;
break;

case 14: /* branch length linkage mode */
Expand Down Expand Up @@ -781,7 +784,7 @@ void CommandLineParser::print_help()
" --seed VALUE seed for pseudo-random number generator (default: current time)\n"
" --pat-comp on | off alignment pattern compression (default: ON)\n"
" --tip-inner on | off tip-inner case optimization (default: ON)\n"
" --site-repeats on | off use site repeats optimization, 10%-60% faster than tip-inner (default: OFF)\n"
" --site-repeats on | off use site repeats optimization, 10%-60% faster than tip-inner (default: ON)\n"
" --threads VALUE number of parallel threads to use (default: 2).\n"
" --simd none | sse3 | avx | avx2 vector instruction set to use (default: auto-detect).\n"
" --rate-scalers on | off use individual CLV scalers for each rate category (default: OFF)\n"
Expand Down
3 changes: 2 additions & 1 deletion src/TreeInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ pll_partition_t* create_pll_partition(const Options& opts, const PartitionInfo&

if (opts.use_repeats)
{
attrs |= PLL_ATTRIB_SITE_REPEATS;
assert(!(opts.use_prob_msa));
attrs |= PLL_ATTRIB_SITE_REPEATS;
}
else if (opts.use_tip_inner)
{
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define RAXML_VERSION "0.6.0git BETA"
#define RAXML_DATE "12.10.2018"
#define RAXML_DATE "19.10.2018"

0 comments on commit 045ccf1

Please sign in to comment.