Comments (9)
Thanks for reporting. And trying pyranges :)
Can you report your system and versions with pr.version_info()?
Do you have some example data where it happens?
from pyranges.
Hi, the version output is:
{'pyranges version': '0.0.129', 'pandas version': '2.0.3', 'numpy version': '1.25.1', 'python version': sys.version_info(major=3, minor=11, micro=4, releaselevel='final', serial=0), 'ncls': '0.0.68', 'sorted_nearest': '0.0.39', 'pyrle': 'not installed', 'ray': 'not installed', 'bamread': 'not installed', 'pyranges_db': 'not installed', 'pybigwig': 'not installed', 'hypothesis': 'not installed'}
The system is Windows 10, using interactive jupyter notebook.
Example minimal data which creates an error on my PC:
data = {'Chromosome': ['chr1', 'chr1', 'chr1'],
'Start': [1, 4, 10],
'End': [5, 8, 15]}
df = pd.DataFrame(data)
df["Start"] = np.int64(df["Start"])
df["End"] = np.int64(df["End"])
pyranges_obj = pr.PyRanges(df,int64=True)
pyranges_obj.cluster()
from pyranges.
We have no way of testing on windows, unfortunately.
I want to write the algorithms in rust instead of cython which should take care of such problems.
But I cannot help you for now, unfortunately.
from pyranges.
Then you will probably do pandas-->polars transition for underlying dataframe manipulation? Or you would just write rust extensions using pyo3 to be used in similar fashion to cpython functions?
from pyranges.
Separate question: how are you running python in the first place? You can try WSL2 to run everything in a Linux like environment. Try a simple python interpreter at first. If this clears the error, you can Google how to run Jupiter from WSL2.
If you're already using WSL2... well, nevermind this comment
from pyranges.
There would be value in providing an alternative for Windows users.
I do not know why Windows does not treat/respect int64 like Linux/Mac does. I know that if you are unspecific about types int might interpret int or long differently, but it should not do so when one is being explicit.
from pyranges.
Separate question: how are you running python in the first place? You can try WSL2 to run everything in a Linux like environment. Try a simple python interpreter at first. If this clears the error, you can Google how to run Jupiter from WSL2. If you're already using WSL2... well, nevermind this comment
Sorry for the wlong reply, had to write a polars extension for solution, avoiding pandas/pyranges. When running this code in WSL2 seems to work so the problem is in the cython/windows interface and their respective integer treatment.
from pyranges.
Thanks mvolar. TL;DR for future readers: if you want pyranges in windows, use WSL2
from pyranges.
We should add this to the documentation! Thanks
from pyranges.
Related Issues (20)
- left join broken with ValueError and TypeError HOT 22
- Future warning when trying to find intersection between non overlapping ranges HOT 9
- Is there a way to do an `intersect()` of a dataframe with itself without symmetric duplicates? HOT 3
- pandas futurewarning in init.py HOT 2
- Additional how-to-pages HOT 1
- Stable non-conflicting interface: v.1.0.0 HOT 2
- Return overlap between PyRanges objects, keeping columns from both? HOT 6
- subtract does not respect strandedness default
- when using .coverage: AttributeError: module 'numpy' has no attribute 'long' HOT 1
- count_overlaps causes overflow errors when number of reads are large HOT 1
- ModuleNotFoundError: No module named 'pyfaidx' HOT 2
- count_overlaps documentation says it supports nb_cpu but it is not implemented HOT 1
- overlap default strandedness argument incorrectly documented
- pr.get_sequence may not be working? HOT 4
- PyRanges.intersect - "invert=True" kwarg behavior HOT 1
- Unexpected behaviour with strandedness of pyranges object HOT 8
- PyRanges read_bed produces wrong number of chromosomes when cast to categorical HOT 1
- ResourceWarning: files opened in readers.read_bed are never closed HOT 3
- SyntaxError: invalid syntax for L131 in names.py HOT 12
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 pyranges.