Giter Club home page Giter Club logo

Comments (4)

lh3 avatar lh3 commented on August 22, 2024

Like SPACE, TAB is not part of fasta name, either.

from seqtk.

deprekate avatar deprekate commented on August 22, 2024

Yes, but the SPACE in a sequence header should not be substituted for a TAB. It causes problems downstream, especially for software that relies on the SPACE boundary to get the comment portion (which usually includes functional annotation and taxonomy information).

A TAB also messes up other things like, creating TAB delimited lists, and using the header as one column. It then throws off the column count.

from seqtk.

tseemann avatar tseemann commented on August 22, 2024

@lh3 I agree with @deprekate that the current behaviour is undesirable.

The vast majority of FASTA/Q files will use a SPACE between the ID and the COMMENT.

I suspect the TAB wasn't intentional in the FASTA/Q output mode, and printing a SPACE would be more compatible:

if (seq->comment.l) printf("\t%s", seq->comment.s);

should be

if (seq->comment.l) printf(" %s", seq->comment.s);

I hope you can make the change, or if you want a pull request I will do it.

from seqtk.

lh3 avatar lh3 commented on August 22, 2024

Fixed via e5c4fd9. Thanks.

from seqtk.

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.