GithubHelp home page GithubHelp logo

Comments (6)

sfchen avatar sfchen commented on August 29, 2024

This will be implemented:)

from fastp.

sfchen avatar sfchen commented on August 29, 2024

Hi @Toliman06 , this feature is implemented.

You can use -S lines to limit the lines of each split file, instead of using -s to limit the total split file number.

For example, -S 10000 to set every output file will be near 10000 lines.

You can use either -s or -S for splitting output, but you cannot choose both.

Could you please try latest code or binary (not the release) and update this issue?

from fastp.

Toliman06 avatar Toliman06 commented on August 29, 2024

Nice! I will try this ans keep you in touch

from fastp.

Toliman06 avatar Toliman06 commented on August 29, 2024

The program have a strange behavior:
`root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# fastp -i 4d64173b-71dc-4aef-a877-fda22c960a66_1.fastq.gz -S 10000 -o test.fastq
root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# wc -l 0174.test.fastq

11996 0174.test.fastq
root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# wc -l 0165.test.fastq

12000 0165.test.fastq
root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# wc -l 0138.test.fastq

12000 0138.test.fastq
root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# wc -l 0116.test.fastq

12000 0116.test.fastq
root@seqonesandbox:/data/analysis/bbb9ba7-b4e062897804/input_files# wc -l 0073.test.fastq

12000 0073.test.fastq
`
There is 12000 lines per file instead of 10000.

PS: perhaps the number of reads per file could be more interesting that the number of lines (as a read is supposed to be 4 lines...)

from fastp.

sfchen avatar sfchen commented on August 29, 2024

This is reasonable.

Since fastp reads data by blocks, a block contains 1000 reads (4000 lines). And fastp also writes by blocks, so the output may be a little more than 10000 lines.

Since the lines setting are usually much greater than 1000 lines, so this will not cause any problems.

from fastp.

Toliman06 avatar Toliman06 commented on August 29, 2024

Nice! It could be helpfull to mention it in the readme file section.
I will close this subject.

from fastp.

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.