Open leezx opened 1 year ago
I encounter the same error when creating annotator from gtf file.
ValueError: invalid literal for int() with base 10: 'ENSE00002234944.1'
It seemed that the function here want to get "exon_number" here but actually it turns for "exon_id".
I find the reason is that my gtf file don't have the quotation mark in "exon_number" field and here is one solution:
return int(row["attribute"].split("exon_number")[-1].split(";")[0].strip())
it returns the "exon_number" instead of "exon_id"
encounter an error when creating annotator from 10x gtf file.
Modifying the get_exon_number function works for me.