Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

OBO parser: alt_id #694

Open
Open

Description

@tulay

Hi,
The code only keeps one alt_id for a term since it stores it as a value for alt_id key in annotation. Would it be possible for you to fix this behavior so multiple alt_ids can be available through the api?
Thanks!

Activity

  1. added this to the BioJava 5.0.0 milestone on Aug 7, 2017
  2. lafita commented on Aug 7, 2017

    @lafita
    Member

    Hi @tulay, thank you for reporting the issue!

    Can you be more specific to what Class should be modified in order to adapt the API? I mean the method you are accessing that only returns one alt_id and should return multiple ones. I guess the data structure should be changed to key:List(value), but I want to check the dependencies on the API.

    Also, isn't alt_id unique for each term? I have checked some .obo files and I could not see a term with multiple alt_ids. Can you show an example or give a use case for it?

    We would also be grateful if you could submit a pull request for this change.

  3. lafita commented on Aug 7, 2017

    @lafita
    Member

    I checked the specification of the OBO file format and there can be multiple number of alt_id.

    ftp://ftp.geneontology.org/go/www/GO.format.obo-1_2.shtml

    alt_id
         Defines an alternate id for this term. A term may have any number of alternate ids.
    

    So this has to be changed. @tulay do you think you can submit a PR for it?

  4. modified the milestones: BioJava 5.0.0, on Mar 6, 2018
  5. richarda23 commented on Aug 28, 2021

    @richarda23
    Contributor

    Hi
    Made a PR for this as fix seems quite easy and doesn't break any API as it is just altering an Annotation value ( defined as Object) to be a jva.util.List, not a String

    Is Annotation too generic a mechanism though for modelling information on a well -defined data structure like obo, would it be better to have specific methods like getAltIds(), getComments() etc? (Not for this issue, just a general comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and bugfixesenhancementImprovement of existing code or method

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions