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.pm has problemas when parsing Target attribute #7

Open
arremb opened this issue Jan 8, 2015 · 0 comments
Open

gff.pm has problemas when parsing Target attribute #7

arremb opened this issue Jan 8, 2015 · 0 comments

Comments

@arremb
Copy link

arremb commented Jan 8, 2015

gff.pm in 1.6 decodes strings in the wrong place, resulting in exception even if valid values.

GFF3 specification:

Target

Indicates the target of a nucleotide-to-nucleotide or protein-to-nucleotide alignment. The format of the value is "target_id start end [strand]", where strand is optional and may be "+" or "-". If the target_id contains spaces, they must be escaped as hex escape %20.

However, line 636 from gff.pm assigns a DECODED value to attr Target, converting valid %20 into spaces
So, Target='A%20B 1 23 +;' will be converted to $attr{'Target'} = 'A B 1 23 +' when it should keep the original value.
This brings problems when the value is parsed at line 706 (my ($t_id,$tstart,$tend,$strand,$extra) = split /\s+/, $target_string; ), resulting in an exception 'The value in the Target string, $target_string, does not conform to the GFF3 specification'

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