Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gff_to_bed int and str arguments to - operator #3

Open
tzintzuni opened this issue Jul 20, 2016 · 0 comments
Open

gff_to_bed int and str arguments to - operator #3

tzintzuni opened this issue Jul 20, 2016 · 0 comments

Comments

@tzintzuni
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant