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

Error: elementwise comparison failed; while running LL_net.cell_type_specific_TF_RE_binding(GRNdir,adata_RNA,adata_ATAC,genome, celltype,outdir,method) #46

Open
karamveerverma37 opened this issue Aug 29, 2024 · 0 comments

Comments

@karamveerverma37
Copy link

Hi when I am running LingerGRN 1.92 I am getting error for "chr1_cell_population_TF_RE_binding.txt, no such file or directory". So as per earlier issues suggestions I am running LingerGRN 1.67 but gives the following error for cell type specific network construction. Please suggest how to solve any of this problem.

M100%|██████████| 23/23 [03:06<00:00, 8.14s/it]^[[A^M100%|██████████| 23/23 [03:06<00:00, 8.12s/it]
elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
Mean of empty slice.
invalid value encountered in divide
elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
Mean of empty slice.
^M 0%| | 0/23 [03:57<?, ?it/s]
Traceback (most recent call last):
File "/gpfs/Home/kmk7420/Multi_omics_GRN/LINGER/test.py", line 94, in
LL_net.cell_type_specific_TF_RE_binding(GRNdir,adata_RNA,adata_ATAC,genome,celltype,outdir,method)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/LingerGRN/LL_net.py", line 363, in cell_type_specific_TF_RE_binding
out=cell_type_specific_TF_RE_binding_chr(adata_RNA,adata_ATAC,GRNdir,chrN,genome,celltype,outdir,method)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/LingerGRN/LL_net.py", line 333, in cell_type_specific_TF_RE_binding_chr
S = np.log(RE_cluster+0.1) + np.log(mat+TFbinding+0.1) + np.log(TF_cluster+0.1)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/generic.py", line 2016, in array_ufunc
return arraylike.array_ufunc(self, ufunc, method, *inputs, **kwargs)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/arraylike.py", line 273, in array_ufunc
result = maybe_dispatch_ufunc_to_dunder_op(self, ufunc, method, *inputs, **kwargs)
File "pandas/_libs/ops_dispatch.pyx", line 113, in pandas._libs.ops_dispatch.maybe_dispatch_ufunc_to_dunder_op
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/ops/common.py", line 81, in new_method
return method(self, other)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/arraylike.py", line 190, in radd
return self._arith_method(other, roperator.radd)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/frame.py", line 7455, in _arith_method
self, other = ops.align_method_FRAME(self, other, axis, flex=True, level=None)
File "/gpfs/Home/kmk7420/.conda/envs/LINGER/lib/python3.10/site-packages/pandas/core/ops/init.py", line 294, in align_method_FRAME
raise ValueError(
ValueError: Unable to coerce to Series/DataFrame, dimension must be <= 2: (39428, 1, 1039)
srun: error: psh01com1hcom32: task 0: Exited with exit code 1

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

1 participant