Comments (6)
It works quite nicely. See ablab/spades#67 (comment) for 3 shell lines and an example performance on LustreFS. Best is to have a ramdisk on the machine, write the sorted BAM file to it and then, move the final BAM with its index to the real storage filesystem.
from biobambam2.
The sortthreads option should work. I will add it to the documention in the next version.
from biobambam2.
So how does sortthreads
relate to inputthreads
and outputthreads
if I use all three on the commandline? In which ratio should I distribute the available cores in between these three?
from biobambam2.
@mmokrejs: the issue with bamsort is that it does not use pooled threading throughout the program. The input, output and sortthreads may run all at the same time. You can use a tool like cpuset to limit the number of real cores used by the program and set all three to that number of threads. If you want a program that will use exactly a given number of threads for processing at any time, then please check bamsormadup, it was designed for this.
from biobambam2.
@gt1 You say that if I run bamsort sortthreads=$phys_cores inputthreads=$phys_cores outputthreads=$phys_cores
that I will end-up with load 300?
Shall I divide the numbers of available cores by 3 to ensure the load will be max 100?
But isn't one decompression and one compression thread enough? So bamsort sortthreads=$phys_cores-2 inputthreads=1 outputthreads=1
?
from biobambam2.
@mmokrejs This could happen, although it is rather unlikely. In my experience, assuming you do not set level=0 for uncompressed output, the output compression is rather compute heavy, so you might want to spend more threads there.
from biobambam2.
Related Issues (20)
- query: bammarkduplicates2 - are QCfail included HOT 2
- Invalid alignment: Query name contains illegal symbols
- bammerge - additional decompression threads?
- bammaskflags - add condition option? HOT 2
- 2.0.83 - precompiled archive duplicated content HOT 1
- csi indexing of BAM file HOT 3
- Support for positions values up to 2^31 (=according to BAM spec) instead of 2^29 HOT 5
- Controlling number of temporary files for bamsormadup
- Is REF_PATH/REF_CACHE used for reading CRAM? HOT 1
- Invalid @PG line
- bamsort-2.0.87: input reading gets stuck
- bamsort crash at libmaus2::lz::BgzfDeflateParallel::flush HOT 4
- bamsort: Query name contains illegal symbols
- Feature request: bamsormadup quality filter
- failed to find libmaus2 HOT 8
- does bamtofastq have same outputs for queryname and coordinate sorted input BAM/CRAM HOT 2
- bamsormadup v2.0.79: assertion failed HOT 2
- bammarkduplicates - unusual case HOT 2
- `bamsormadup` stalls if temp folder does not exist HOT 4
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 biobambam2.