Coder Social home page Coder Social logo

Comments (10)

apcamargo avatar apcamargo commented on July 29, 2024 2

Fixed in version 1.8.0. Thanks @LanderDC!

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024 1

Hi @LanderDC,

You make a good point. I'm not sure about adding an "unclassified" taxon to the lineage (your second option) because it might confuse users. They could think that geNomad couldn't assign the sequence to an order but could assign it to a family, when in reality, the family isn't part of any order at all

I like your first option, though.

Another possibility would be adding prefixes to the taxa names, like GTDB does? For instance:

Viruses;r__Duplodnaviria;k__Heunggongvirae;p__Uroviricota;c__Caudoviricetes;f__Straboviridae;

This could make parsing easier. The problem is that "Viruses" is not a taxon at all and doesn't have a named rank.

from genomad.

LanderDC avatar LanderDC commented on July 29, 2024

Thanks for your swift reply!

You are right that my second option might cause some confusion. I like your suggestion to add prefixes, because you immediately see which taxonomic rank you're dealing with and don't have to remember which suffix belongs to which rank. However, if possible I would still like empty places for ranks that are not yet classified by ICTV, because then you can just split the taxonomy column based on the semicolon:

Viruses;r__Duplodnaviria;k__Heunggongvirae;p__Uroviricota;c__Caudoviricetes;;f__Straboviridae;;

About the "Viruses" problem, I don't feel that it is really an issue but I understand that you would like to have everything consistent.

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

I like your suggestion. The "Viruses" thing does bother me, though. If I add the additional semicolons, the ranks would be could be inferred by the number of the column, so the prefixes are not strictly required.

from genomad.

LanderDC avatar LanderDC commented on July 29, 2024

True, whatever is easier to implement should be fine 🙂

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

I'll will work on that for the next release :)

from genomad.

LanderDC avatar LanderDC commented on July 29, 2024

Nice, thanks!

from genomad.

LanderDC avatar LanderDC commented on July 29, 2024

Are you ok with a pull request on this issue? I forked your repo and slightly modified taxonomy.py to get these empty fields for unclassified ranks (LanderDC@14eb85d). Incidentally, the "Viruses" rank is also removed by these modifications.

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

Thanks, @LanderDC

If it's easy enough, I'd appreciate that. I'd need to evaluate what could break with this change (the removal of the "Viruses" taxon), but I don't forsee any issues.

from genomad.

LanderDC avatar LanderDC commented on July 29, 2024

Great!

from genomad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.