Skip to content

gff_to_bed int and str arguments to - operator #3

@tzintzuni

Description

@tzintzuni

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions