Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlap function met error using multi-cpus #298

Open
ttbond opened this issue Mar 17, 2023 · 2 comments
Open

Overlap function met error using multi-cpus #298

ttbond opened this issue Mar 17, 2023 · 2 comments

Comments

@ttbond
Copy link

ttbond commented Mar 17, 2023

Hi~
Pyranges is a really helpful python pacakge for my research! Many thanks!
But I have a problem, that is, when I use overlap function, the following error is asserted:

File "/data/home/mySrc/xxx.py", line 168, in <module>  
    counter.countExon('baby1')  
  File "/data/home/mySrc/xxx.py", line 145, in countExoner  
    if self.checkAnyGeneRela(tmpPrList):  
  File "/data/home/mySrc/xxx.py", line 125, in checkAnyGeneRela  
    overRel = refGenePr.overlap(myPr, nb_cpu=self.threads)  # here, self.threads was setted as 2  
  File "/data/home/xutun/miniconda3/envs/myEnv/lib/python3.9/site-packages/pyranges/pyranges.py", line 3494, in overlap  
    dfs = pyrange_apply(_overlap, self, other, **kwargs)  
  File "/data/home/xutun/miniconda3/envs/myEnv/lib/python3.9/site-packages/pyranges/multithreaded.py", line 291, in pyrange_apply  
    df, odf = make_binary_sparse(kwargs, df, odf)  
  File "/data/home/xutun/miniconda3/envs/myEnv/lib/python3.9/site-packages/pyranges/multithreaded.py", line 134, in make_binary_sparse  
    odf = make_sparse(odf)  
  File "/data/home/xutun/miniconda3/envs/myEnv/lib/python3.9/site-packages/pyranges/multithreaded.py", line 113, in make_sparse  
    if "Strand" in df:  
TypeError: argument of type 'ray._raylet.ObjectRef' is not iterable

Actually, I tried different versions of python enviroment and none of them works (with different problems related to ray).
Thanks again for developing such a valuable package. Look for your favorable reply.

@endrebak
Copy link
Collaborator

endrebak commented Apr 30, 2023 via email

@endrebak
Copy link
Collaborator

endrebak commented May 1, 2023

Ray has changed and there is little to be gained from using multiple CPUs.

I wonder if I should consider removing the GPU argument instead of fixing this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants