Skip to content

Commit

Permalink
fix parsing for outputdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer committed Jul 30, 2019
1 parent 58d2600 commit 1931635
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/funannotate-functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,12 @@ def parseEggNoggMapper(input, output, GeneDict):
inputdir = os.path.join(args.input, 'predict_results')
outputdir = args.input
else:
inputdir = os.path.join(args.input) #here user specified the predict_results folder, or it is a custom folder
inputdir = os.path.abspath(args.input) #here user specified the predict_results folder, or it is a custom folder
if '_results' in inputdir: #then it is the _results dir, so move up one directory
outputdir = os.path.dirname(inputdir)
else:
lib.log.error('Unable to detect funannotate folder as input, please provide -o,--out directory')
sys.exit(1)

annotTBL = os.path.join(outputdir, 'annotate_misc', 'genome.tbl')

Expand Down

0 comments on commit 1931635

Please sign in to comment.