Skip to content

Commit

Permalink
update --hcp as default for build model
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfangs committed Jan 13, 2018
1 parent e1d3187 commit 672517d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions physpetool/physpe/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def start_args(input):
help="Specify the number of processing threads (CPUs) to reconstruct \
phylogenetic tree. The default is 1.")
build_args.add_argument('--hcp', action='store_true', dest='HCP',
default=False,
default=True,
help="Specify the hcp (highly conserved protein) method to reconstruct \
phylogenetic tree. The default method is hcp.")
build_args.add_argument('--srna', action='store_true', dest='ssurna',
Expand Down Expand Up @@ -115,19 +115,9 @@ def starting(args):
elif os.path.isdir(args.input):
args_input = os.path.join(pwd, args.input)

if args.HCP:
setlogdir(out_put)
build_hcp(args_input, out_put,
args.muscle, args.muscle_parameter,
args.clustalw, args.clustalw_parameter,
args.mafft, args.mafft_parameter,
args.gblocks, args.gblocks_parameter,
args.trimal, args.trimal_parameter,
args.raxml, args.raxml_parameter,
args.fasttree, args.fasttree_parameter,
args.thread)

# reconstruct phylogenetic tree by ssu RNA
elif args.ssurna:
if args.ssurna:
setlogdir(out_put)
build_srna(args_input, out_put,
args.muscle, args.muscle_parameter,
Expand All @@ -138,3 +128,14 @@ def starting(args):
args.raxml, args.raxml_parameter,
args.fasttree, args.fasttree_parameter,
args.thread)
elif args.HCP:
setlogdir(out_put)
build_hcp(args_input, out_put,
args.muscle, args.muscle_parameter,
args.clustalw, args.clustalw_parameter,
args.mafft, args.mafft_parameter,
args.gblocks, args.gblocks_parameter,
args.trimal, args.trimal_parameter,
args.raxml, args.raxml_parameter,
args.fasttree, args.fasttree_parameter,
args.thread)

0 comments on commit 672517d

Please sign in to comment.