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

gff3_QC error #137

Open
Ziwei-Liu opened this issue May 17, 2024 · 3 comments
Open

gff3_QC error #137

Ziwei-Liu opened this issue May 17, 2024 · 3 comments

Comments

@Ziwei-Liu
Copy link

Hi team,

I just found this tool during my search for a tool fixing my gff file. However, error happens when I am trying to fix CDS phases. Do you have any idea how to mitigate this? Any help would be greatly appreciated!

My command:
gff3_QC -g Lvan.LG.deduplication.gff3 -f Lvan.genome.fasta -i -o report.txt -s statistic.txt

The error message:

INFO     Checking gff file (Lvan.LG.deduplication.gff3)...
INFO     Checking genome fasta (Lvan.genome.fasta)...
INFO     Reading gff files: (Lvan.LG.deduplication.gff3)...

INFO     Checking errors in the gff files: (Lvan.LG.deduplication.gff3)...

Traceback (most recent call last):
  File "/media/hjg-r940/data/local/conda/miniconda3/envs/gff3toolkit/bin/gff3_QC", line 8, in <module>
    sys.exit(script_main())
  File "/media/hjg-r940/data/local/conda/miniconda3/envs/gff3toolkit/lib/python3.7/site-packages/gff3tool/bin/gff3_QC.py", line 86, in script_main
    gff3.check_phase(args.initial_phase)
  File "/media/hjg-r940/data/local/conda/miniconda3/envs/gff3toolkit/lib/python3.7/site-packages/gff3tool/lib/gff3/gff3.py", line 293, in check_phase
    self.add_line_error(cds_list[0], {'message': '{0:s} {1:d}, should be {2:d}'.format(ERROR_INFO['Ema0006'], cds_list[0]['phase'], 0), 'error_type': 'PHASE', 'eCode': 'Ema0006', 'error_level': 'Info'}, log_level=logging.INFO)
ValueError: Unknown format code 'd' for object of type 'str'


@Ziwei-Liu
Copy link
Author

I found that if i run my command without -i option then it works properlly:

gff3_QC -g Lvan.LG.deduplication.gff3 -f Lvan.genome.fasta -o report.txt -s statistic.txt

But it is neccesary for me to check whether my initial CDS starts with phase 0 properlly, so the -i option is inevitable to me.

@mpoelchau
Copy link
Contributor

@Ziwei-Liu sorry you're having trouble with the -i option. Are you able to share your gff3 and fasta (or a subset)? That would help me debug. Let me know if that's possible and I can send you an email address.

@Ziwei-Liu
Copy link
Author

@mpoelchau OK, I can send you my fasta and gff3 file. Please tell me your email address.

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