Comments (3)
You may have fixed this but I'll post here for posterity. See jmschrei/pomegranate#1052, jmschrei/pomegranate#1057 for more information about what's going on here.
Long story short is that cnvkit
asks for pomegranate
0.14.8 or 0.14.9, but those versions of pomegranate
ask for numpy
versions >=1.20.0. the issue here is that the numpy
2.0.0 release is not backwards compatible, so when you install, it tries to use the most recent (but incompatible) version, causing the error you posted.
The fix in jmschrei/pomegranate#1052 hasn't been pushed. If it ever does get pushed/released, there may still be problems if they release it under 0.14.10 since cnvkit
asks for pomegranate >= 0.14.8, <=0.14.9.
The fastest fix is to download a version of pomegranate
labelled as release 0.14.9 that asks for numpy
<2.0.0. This repo I made does precisely that. I was able to install cnvkit by making sure I downloaded old versions of the problematic dependencies (cython
, numpy
) and then the "new" pomegranate
.
Try doing
pip uninstall cython numpy -y
pip install cython==0.29.17 numpy==1.26.4 -y
git clone -b v0.14.9 --single-branch https://github.com/tiwalayo/pomegranate.git
pip install -e pomegranate/
from cnvkit.
I have the same issue on x86_64.
from cnvkit.
Thank you tiwalayo It works like a charm. You saved me a lot of time. Thank you! :)
from cnvkit.
Related Issues (20)
- baits and target bed file
- How to merge vcfs of different samples?
- Running CNVkit with VCF files
- how to install the cnvkit v0.9.11 by the tar.gz source
- No Results HOT 1
- Unable to produce .cnr files HOT 2
- Getting BAF and allelic imbalance in export vcf
- Improper post-processing of segment [bug]
- Unable to use fix without antitarget file for WGS samples
- Merging segments while running pipeline
- `segment` function fails HOT 1
- Somatic CNV calling in case of pre-existing CNVs
- Installation problems HOT 1
- Unable to load BED file with skgenome
- cnvkit.py segment error
- CNVkit segment command RuntimeError: Subprocess command failed
- access command: recommended -s (mingap) value
- Blank plots HOT 1
- Possible bug in bin sizes
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 cnvkit.