Skip to content

Commit f01f8da

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
updates to v0.3.4
1 parent 120f08d commit f01f8da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/funannotate-predict.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def __init__(self,prog):
338338
blat2hints = os.path.join(AUGUSTUS_BASE, 'scripts', 'blat2hints.pl')
339339
subprocess.call([blat2hints, b2h_input, b2h_output, '--minintronlen=20', '--trunkSS'], stdout=FNULL, stderr=FNULL)
340340
else:
341-
lib.log.error("No transcripts availble to generate Augustus hints, provide --transcript_evidence")
341+
lib.log.error("No transcripts available to generate Augustus hints, provide --transcript_evidence")
342342

343343
#check for protein evidence/format as needed
344344
p2g_out = os.path.join(args.out, 'predict_misc', 'exonerate.out')
@@ -452,7 +452,7 @@ def __init__(self,prog):
452452
shutil.rmtree(os.path.join(args.out, 'predict_misc', 'braker'))
453453
os.rename('braker', os.path.join(args.out, 'predict_misc', 'braker'))
454454
#okay, now need to fetch the Augustus GFF and Genemark GTF files
455-
aug_out = os.path.join(args.out, 'predict_misc', 'braker', aug_species, 'augustus.gff')
455+
aug_out = os.path.join(args.out, 'predict_misc', 'braker', aug_species, 'augustus.gff3')
456456
gene_out = os.path.join(args.out, 'predict_misc', 'braker', aug_species, 'GeneMark-ET', 'genemark.gtf')
457457
#now convert to EVM format
458458
Augustus = os.path.join(args.out, 'predict_misc', 'augustus.evm.gff3')
@@ -759,7 +759,7 @@ def __init__(self,prog):
759759
lib.log.error("GeneMark predictions failed, proceeding with only Augustus")
760760

761761
#if hints used for Augustus, get high quality models > 80% coverage to pass to EVM
762-
if os.path.isfile(hints_all):
762+
if os.path.isfile(hints_all) and not args.rna_bam:
763763
lib.log.info("Pulling out high quality Augustus predictions")
764764
hiQ_models = []
765765
with open(aug_out, 'rU') as augustus:

0 commit comments

Comments
 (0)