EI-CoreBioinformatics / reat

Robust Eukaryotic Annotation Toolkit
https://reat.readthedocs.io/en/latest/
MIT License
17 stars 3 forks source link

gff_to_aug_hints error with empty file #22

Closed swarbred closed 2 years ago

swarbred commented 2 years ago

If the gold silver or bronze gff files are empty because no models with classified in that category then at the point of generating the hints files from these inputs the gff_to_aug_hints script errors

Traceback (most recent call last): File "/ei/software/testing/reat/dev_prediction_module/x86_64/bin/gff_to_aug_hints", line 95, in <module> main() File "/ei/software/testing/reat/dev_prediction_module/x86_64/bin/gff_to_aug_hints", line 91, in main transform_gff_to_hint(gff_file, args.order, args.priority_hint, args.source_hint, args.source, args.type) File "/ei/software/testing/reat/dev_prediction_module/x86_64/bin/gff_to_aug_hints", line 72, in transform_gff_to_hint print_features(exons, introns, pre_seqid, source_gff, feature_type, pre_score, pre_strand, pre_phase, File "/ei/software/testing/reat/dev_prediction_module/x86_64/bin/gff_to_aug_hints", line 11, in print_features print(f"{seqid}\t{source}\t{ftype}part\t{exons[0]}\t{score}\t{strand}\t{phase}\t{attributes}") IndexError: list index out of range