Skip to content

Commit

Permalink
fix_in_frame_stop_codon_genes.py : added command line option --cdbtoo…
Browse files Browse the repository at this point in the history
…ls_path
  • Loading branch information
KatharinaHoff committed Sep 4, 2019
1 parent 25f7420 commit 2c6223c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/fix_in_frame_stop_codon_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
parser.add_argument('-p', '--print_format_examples', required=False,
action='store_true', help="Print gtf/gff3 input format \
examples, do not perform analysis")
parser.add_argument('-C', '--cdbtools_path', required=False, type=str,
help = "Set path to cdbfasta/cdbyank. If not given, \
will try to locate the path with which(cdbfasta).")
args = parser.parse_args()

### As args.hintsfile and args.extrinsicCfgFile have to be given together: ###
Expand Down Expand Up @@ -298,8 +301,12 @@ def sortSecond(val):
### Find required binaries on system ###
grep = find_tool("grep")
perl = find_tool("perl")
cdbfasta = find_tool("cdbfasta")
cdbyank = find_tool("cdbyank")
if args.cdbtools_path:
cdbfasta = check_tool_in_given_path(args.cdbtools_path, "cdbfasta")
cdbyank = check_tool_in_given_path(args.cdbtools_path, "cdbyank")
else:
cdbfasta = find_tool("cdbfasta")
cdbyank = find_tool("cdbyank")

### Find augustus_bin_path ###
if args.augustus_bin_path:
Expand Down

0 comments on commit 2c6223c

Please sign in to comment.