Giter Club home page Giter Club logo

Comments (8)

sjackman avatar sjackman commented on August 22, 2024

I found that FASTX-toolkit implements this feature.
http://hannonlab.cshl.edu/fastx_toolkit/commandline.html#fastx_trimmer_usage

   [-f N]       = First base to keep. Default is 1 (=first base).
   [-l N]       = Last base to keep. Default is entire read.

from seqtk.

vsbuffalo avatar vsbuffalo commented on August 22, 2024

This would be useful — I'd be happy to implement this and issue a pull request if it'll be incorporated. Note that bioawk can also do this pretty easily:

$ echo ">test-1\\nAGTATCTAGCATATCGT\\n>test-B\\nGCTAGCACGATC" | \
  bioawk -cfastx '{print fastx($name, substr($seq, 0, 10))}' # note this depends on fastx(), a function I implemented
>test-1
AGTATCTAGC
>test-B
GCTAGCACGA

from seqtk.

lh3 avatar lh3 commented on August 22, 2024

Release 1.0 does not support trimming to fixed length as adding the functionality may affect the stability of trimfq. You may use Vince's script to achieve the goal for now. I will leave the issue open.

from seqtk.

ndaniel avatar ndaniel commented on August 22, 2024

Actually release 1.0 supports trimming to fixed length!
Just try "seqtk -q 0 -l N input.fq" (it keeps the first N bp)!

from seqtk.

ndaniel avatar ndaniel commented on August 22, 2024

I have just commited some changes which does all these (i.e. shortcircuiting the q == 0, keep first last N bp).

from seqtk.

lh3 avatar lh3 commented on August 22, 2024

Implemented via 46cd37e ... after 3 years. Sorry.

from seqtk.

sjackman avatar sjackman commented on August 22, 2024

Thanks, Heng!

from seqtk.

sjackman avatar sjackman commented on August 22, 2024

Would you please tag a new stable release tagged either 1.1 or 87? The last stable release 1.0 was tagged in 2013. An out-of-date tagged stable release is more confusing than having no tagged stable release at all.

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.