Comments (7)
Sorry, I did not get what you mean by being folded. You mean wrapped?
from kseqpp.
I added an option to disable line wrapping by calling set_nowrapping
method before writing any record. Since this is a re-implementation of "kseq" library, I did not change the default behaviour. Please check the develop
branch. If it also works for you, I will merge it to master
.
from kseqpp.
Yes, I mean 'wrapped'. For most FASTQ files, The seq line and qual line are not wrapped. As far as I know, the wrapped FASTQ is not accepted by many downstream softwares, for example: bowtie2.
So my suggestion is, in default manner, the FASTA file should be wrapped while the FASTQ file should not be wrapped.
from kseqpp.
That makes sense. I am going to do the following then:
- add a parameter to
SeqStreamOut
class to specify the underlying file format (acceptingformat::fasta
, orformat::fastq
values inklibpp
namespace). ActuallyKStreamOut
class which is the base class ofSeqStreamOut
has already this option which just needs to be forwarded. - if the format is explicitly set to
format::fastq
, no-wrapping would be the default behaviour, otherwise it wraps at 60bps. - just for the record,
puts
no longer getswrap
parameter and wrapping is determined by thewraplen
value. If it is zero, it means no wrap.
from kseqpp.
Please check out develop
branch (sorry for the forced push!), let me know if it works.
from kseqpp.
Sorry for delayed reply. I am on the vocation due to Chinese national day.
from kseqpp.
No problem, feel free to reopen the issue if the problem persists.
from kseqpp.
Related Issues (10)
- Broken output if seq/qual is empty HOT 3
- feature request, make threads optional
- Maybe using libdeflate for decompression is faster?
- Unable to install the library using provided CMakeLists.txt HOT 3
- Add usage and installation guide
- ZLIB cannot be linked...
- No default constructor for defined classes HOT 2
- Is kseqpp faster than just using std::iostream? HOT 2
- A problem with a newline when writing FASTQ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kseqpp.