Comments (2)
os.sched_getaffinity
only available in python3
from centrifuge.
for python 2
a solution will be:
import re
try:
m = re.search(r'(?m)^Cpus_allowed:\s*(.*)$', open('/proc/self/status').read())
if m:
num_cpus = bin(int(m.group(1).replace(',', ''), 16)).count('1')
except IOError:
num_cpus = os.cpu_count()
regards
Erci
from centrifuge.
Related Issues (20)
- viral bacteria and archaea DB now very large >60G HOT 3
- Database download for Centrifuge HOT 222
- Print (un)classified sequences HOT 1
- (ERR): centrifuge-class exited with value 1 HOT 4
- Centrifuge Database Download Error HOT 6
- Classification filtering only virus/archaea sequences HOT 1
- Issues with --nodc, --justref and --noref parameters
- Warning: Encountered reference sequence with only gaps HOT 2
- Error compiling on macOS ventura HOT 1
- Unable to use sudo make install prefix=/usr/local HOT 4
- Unusual abundance results with custom classifier index HOT 6
- Calculate abundance without genome size taken into account
- make p_compressed = "could not find jellyfish" HOT 1
- Where are you Sulfobacillus? HOT 33
- error in make
- Custom database including only specific organisms for reads separation?
- Error when executing centrifuge "Argument list too long" HOT 4
- how to make seqid2taxid.map HOT 1
- Error when downloading only bacteria version HOT 3
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 centrifuge.