Skip to content

Commit c0615fb

Browse files
author
Jon Palmer
committed
AUGUSTUS_BASE path adjustment
1 parent 65d04d0 commit c0615fb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/funannotate-predict.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,12 @@ def which_path(file_name):
178178
lib.log.error("Bamtools not found and $BAMTOOLS_PATH environmental variable missing, BRAKER is not properly configured. You can use the --BAMTOOLS_PATH argument to specify a path at runtime.")
179179
sys.exit(1)
180180

181-
if os.path.basename(os.path.normcase(os.path.realpath(AUGUSTUS))) == 'config':
182-
AUGUSTUS_BASE = os.path.dirname(os.path.realpath(AUGUSTUS))
183-
AutoAug = os.path.join(AUGUSTUS_BASE, 'scripts', 'autoAug.pl')
181+
if os.path.basename(os.path.normcase(os.path.abspath(AUGUSTUS))) == 'config':
182+
AUGUSTUS_BASE = os.path.dirname(os.path.abspath(AUGUSTUS))
184183
BAM2HINTS = os.path.join(AUGUSTUS_BASE, 'bin', 'bam2hints')
185184
GeneMark2GFF = os.path.join(parentdir, 'util', 'genemark_gtf2gff3.pl')
186185

187-
programs = ['exonerate', 'diamond', 'tbl2asn', 'gmes_petap.pl', 'rmblastn', 'BuildDatabase', 'RepeatModeler', 'RepeatMasker', GeneMark2GFF, AutoAug, 'bedtools', 'augustus', 'etraining', 'rmOutToGFF3.pl']
186+
programs = ['exonerate', 'diamond', 'tbl2asn', 'gmes_petap.pl', 'rmblastn', 'BuildDatabase', 'RepeatModeler', 'RepeatMasker', GeneMark2GFF, 'bedtools', 'augustus', 'etraining', 'rmOutToGFF3.pl']
188187
programs = programs + args.aligners
189188
if 'blat' in args.aligners:
190189
programs = programs + ['pslCDnaFilter']

0 commit comments

Comments
 (0)