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

Bio::Tools::GFF add extra empty attribute problematic #388

Open
Juke34 opened this issue Apr 4, 2024 · 1 comment
Open

Bio::Tools::GFF add extra empty attribute problematic #388

Juke34 opened this issue Apr 4, 2024 · 1 comment

Comments

@Juke34
Copy link
Contributor

Juke34 commented Apr 4, 2024

When reading such feature:
chr10p ambMex60DD gene 313039 315424 1000 + . gene_id "AMEX60DD000001"; gene_name "ZFP37 [nr]|ZNF568 [hs]";

with GFF parser set to 2 or 2.5 it creates this object:

$VAR1 = bless( {
                 '_primary_tag' => 'gene',
                 '_root_cleanup_methods' => [
                                              sub { "DUMMY" }
                                            ],
                 '_parse_h' => {},
                 '_gsf_seq_id' => 'chr10p',
                 '_gsf_tag_hash' => {
                                      'score' => [
                                                   '1000'
                                                 ],
                                      'gene_name' => [
                                                       'ZFP37 [nr]|ZNF568 [hs]'
                                                     ],
                                      'ID' => [
                                                ' '
                                              ],
                                      'gene_id' => [
                                                     'AMEX60DD000001'
                                                   ]
                                    },
                 '_location' => bless( {
                                         '_end' => '315424',
                                         '_start' => '313039',
                                         '_location_type' => 'EXACT',
                                         '_strand' => 1
                                       }, 'Bio::Location::Simple' ),
                 '_gsf_frame' => '.',
                 '_source_tag' => 'ambMex60DD'
               }, 'Bio::SeqFeature::Generic' );

this part is problematic

                                      'ID' => [
                                                ' '
                                              ],

and shouldn't appear as is ti absent from the GFF/GTF feature provided as input

@cjfields
Copy link
Member

@Juke34 we can address this but can't commit to a timeline. If you know the specific fix we also (gladly!) accept pull requests.

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