stringtie icon indicating copy to clipboard operation
stringtie copied to clipboard

Error: no valid ID found for GFF record

Open zuodabin opened this issue 2 years ago • 2 comments

Hello, I don't know what went wrong, could you tell me? thank you

zuodabin avatar Apr 01 '22 08:04 zuodabin

see https://github.com/gpertea/gffread/issues/84 you are likely using a gtf2.2 reference, of which the omission of transcript_id is allowed causing legacy gtf readers to complain

try using an older assembly / annotation pair alternatively try using a gff file from that assembly and converting it to gtf format

kennyworkman avatar May 27 '22 07:05 kennyworkman

If it is that GTF2.2 issue indeed, as I wrote in gpertea/gffread#84, I do not want to encourage such terrible ideas (empty string identifiers in a file format), so I recommended one of the following solutions instead:

  • use the GFF3 version of that same annotation, if available ..or if that's not an option:
  • use a grep filter to weed out the badly formatted lines from that GTF2.2 file, e.g. something like this:
grep -P '\btranscript_id\s+"[^"]+"'  ann_gtf22.gtf >  ann_fixed.gtf

gpertea avatar May 27 '22 12:05 gpertea