Comments (2)
Not observed when writing to file; a SAM file created by streammd
is well-formed according to samtools view
.
Also not observed when running with a single worker (consumer) process.
from streammd.
The issue was a combination of finite buffer size (Linux system default=8192) and having each of the worker processes writing to stdout simultaneously. When the size of the output chunk exceeds the buffer size (hence the dependence on batchsize) samtools view
gets an incomplete line in the input. With multiple writers to stdout there's no guarantee that what follows is the remainder of the first incomplete chunk. (But when output is redirected to a file the parallel writes are correctly sequenced, and all is well... the kernel is clever?)
Some possible solutions:
- increase buffer size so that it's larger than any potential batch size
- use an output queue
- is less work but more fragile and smelly
- is a little more work, smells better, query on performance
from streammd.
Related Issues (20)
- Add @PG line into output SAM file header HOT 1
- write metrics to their own file HOT 1
- investigate alternatives to pysam.AlignedSegment HOT 1
- Does not build on ARM HOT 6
- unit tests from MarkDuplicates HOT 3
- option to discard or separate duplicates
- some tests fail when compiling with clang HOT 1
- stored items count incorrect HOT 1
- set up local cross-compile envs HOT 1
- Improve help for --fp-rate option HOT 1
- Add streammd to bioconda clouds HOT 1
- got 1 primary alignment(s). Input is not paired or not qname-grouped? HOT 3
- TEMPLATE_DUPLICATE_FRACTION calculation
- Tests HOT 1
- output an estimate for actual marginal FP rate at the end of a run
- Documentation HOT 1
- Versioning HOT 1
- Handle non-string values in BloomFilter.add HOT 1
- Tool to calculate mem from input n, p
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 streammd.