-
Notifications
You must be signed in to change notification settings - Fork 64
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
bed_to_gff3 error #919
Comments
Can you share your bed file or part of it so we can use it to reproduce the issue? Thanks! |
Has this been solved? I'm having the same issue |
The issue remains, since I do not remember receiving an example file. @SSPuliasis can you provide a (minimal?) example file that would allow me to reproduce the issue? |
Here is a small sample of the file I tried it on (saved as .txt here because github does not support .bed upload) . The error is: "gt bed_to_gff3: error: file "sample_bed_file.bed": line 1: expected character ' Thanks |
Thanks, I'll take a look. |
Looks like your BED file has 14 columns while the spec (https://genome.ucsc.edu/FAQ/FAQformat.html#format1) only describes 12:
That's why the parser is confused about additional data where a newline should be. |
As a workaround, you can simply cut off the superfluous fields and then pass the result to
|
Thanks for your help! :) The bed file is from the UniProt human database, below is their description for each of their columns: ".bed
Missing values are represented by dots." |
I see... Weird that they simply extend the format and potentially break parsers... :/ |
Can we consider this done, btw? |
Tagging this as "enhancement" as there is now only a feature request to ignore BED columns beyond the 12th. |
Problem description
Hey there! I'm trying to convert ChIP peaks (in a bed file format) to gff3. Below is the command and the resulting error:
I reformated the bed file to see if that was the issue and got the following error:
What GenomeTools version are you reporting an issue for (as output by
gt -version
)?$ gt -version
gt (GenomeTools) 1.5.10
Did you compile GenomeTools from source? If so, please state the
make
parameters used.Yes. I didn't add any make parameters
What operating system (e.g. Ubuntu, Mac OS X), OS version (e.g. 15.10, 10.11) and platform (e.g. x86_64) are you using?
Ubunutu 18.04.3
The text was updated successfully, but these errors were encountered: