GFFtools-GX
GFFtools-GX copied to clipboard
gff_to_bed int and str arguments to - operator
Hi I encountered this while converting GCF_000001405.33_GRCh38.p7_genomic.gff.
I got an error about a string and int value being passed as operands to the -
operator.
In gff_to_bed.py, line 90 is missing some parentheses:
89 out_print = [ent1['chr'],
90 '%d' % int(ent1['start'])-1,
91 '%d' % int(ent1['stop']),
This fixed the issue:
89 out_print = [ent1['chr'],
90 '%d' % (int(ent1['start'])-1),
91 '%d' % int(ent1['stop']),
Thanks for the great tool!