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

CDS phase checkup: "ValueError: Unknown format code 'd' for object of type 'str'" #6

Closed
estolle opened this issue Feb 8, 2019 · 2 comments

Comments

@estolle
Copy link

estolle commented Feb 8, 2019

Hi there,
I just discovered your nice gff3 tool during my search for a tool adding the phase to the CDS's in a gff file ( (phases are missing for all CDS, I have the corresponding genomic.fa from an insect). However, I have troubles with checking the phase of the CDS as it throws an error about unknown format code. Do you have any idea how to mitigate this? Any help would be greatly appreciated!

my command
python /opt/scripts/gff_fix.py --gff_file edit.1.0.annotations.formatted.gff --fasta_file Edil.fa --allowed_num_of_n 0 --check_n_feature_types CDS --report_file Edil.1.0.gff.validation_report.txt

output:
INFO Checking GFF3 file (edit.1.0.annotations.formatted.gff)...
INFO Checking syntax and formatting...
INFO Checking reference seqid, bounds and N count...
INFO Checking parent boundaries...
Traceback (most recent call last):
File "/opt/scripts/gff_fix.py", line 139, in
gff3.check_phase()
File "/usr/local/lib/python2.7/dist-packages/gff3/gff3.py", line 213, in check_phase
self.add_line_error(line, {'message': 'Wrong phase {0:d}, should be {1:d}'.format(line['phase'], phase), 'error_type': 'PHASE'})
ValueError: Unknown format code 'd' for object of type 'str'

@hsiaoyi0504
Copy link
Collaborator

hsiaoyi0504 commented Mar 5, 2019

Hi @estolle, sorry for the late response, but it seems to me you may want to post https://github.com/NAL-i5K/GFF3toolkit/ rather than this project.

@hsiaoyi0504
Copy link
Collaborator

hsiaoyi0504 commented Mar 5, 2019

To make us to help you easier, can you also provide the version inforamtion gff3, gff3tool you use and the input file that raises this error ?

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

2 participants