Entering edit mode
9 months ago
dwpeng
▴
110
Hello, erveyone, I write a c library named seqio for writing and reading sequence in fasta and fastq format. I have make it open on Github https://github.com/dwpeng/seqio/ . If you have any needs for writing/reading fasta/fastq file, I strongly recommand you have a try.
Do you want to say a little bit about _why_ they should try out this library, rather than something like kseq, kseqpp, etc.?
Here are a few reasons why I recommend using it:
1. No macro definition required
You only need to include the header file to use it, without the need for macro definitions, as shown below
2. No need to manually release memory
SeqioRead will automatically release memory, so you don't need to manually release memory to avoid memory leaks.
3. Intuitive API
Using it is like using a regular file, only opening, reading, and closing are required, without the need for internal implementation of relationships.
4. Support read and write of compressed files
Support reading and writing compressed files, you don't need to worry about whether the file is compressed or uncompressed, just set the parameters.
5. Both C and C++ can use it
I would recommend you provide Python binding.
Great suggestion, I will try to implement it.