You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the scenicplus tutorial here using snakemake and had an error saying descriptor '__call__' for 'type' objects doesn't apply to a 'property' object in the step score_regions_to_single_gene. I followed the steps in the tutorial and I'm not sure what's the cause for this error.
Below is the full error message:
2024-12-01 22:17:16,541 R2G INFO Calculating region to gene importances, using GBM method
Running using 10 cores: 0%|▏ | 16/19156 [00:01<27:38, 11.54it/s]joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/externals/loky/process_executor.py", line 463, in _process_worker
r = call_item()
^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/externals/loky/process_executor.py", line 291, in __call__
return self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 589, in __call__
return [func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 589, in <listcomp>
return [func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/enhancer_to_gene.py", line 140, in _score_regions_to_single_gene
from arboreto import core as arboreto_core
File "/home/zli4/.local/lib/python3.11/site-packages/arboreto/core.py", line 12, in <module>
from dask.dataframe import from_delayed
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/__init__.py", line 100, in <module>
from dask.dataframe import backends, dispatch, rolling
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/backends.py", line 15, in <module>
from dask.dataframe.core import DataFrame, Index, Scalar, Series, _Frame
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/core.py", line 36, in <module>
from dask.dataframe import methods
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/methods.py", line 34, in <module>
from dask.dataframe.utils import is_dataframe_like, is_index_like, is_series_like
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/utils.py", line 20, in <module>
from dask.dataframe import ( # noqa: F401 register pandas extension types
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/_dtypes.py", line 9, in <module>
from dask.dataframe.extensions import make_array_nonempty, make_scalar
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/extensions.py", line 8, in <module>
from dask.dataframe.accessor import (
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 126, in <module>
class DatetimeAccessor(Accessor):
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 81, in __init_subclass__
_bind_property(cls, pd_cls, attr, min_version)
File "/home/zli4/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 35, in _bind_property
setattr(cls, attr, property(derived_from(pd_cls, version=min_version)(func)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/dask/utils.py", line 987, in wrapper
method.__doc__ = _derived_from(
^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/dask/utils.py", line 940, in _derived_from
method_args = get_named_args(method)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/dask/utils.py", line 701, in get_named_args
s = inspect.signature(func)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/inspect.py", line 3263, in signature
return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/inspect.py", line 3011, in from_callable
return _signature_from_callable(obj, sigcls=cls,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/inspect.py", line 2599, in _signature_from_callable
call = _descriptor_get(call, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/inspect.py", line 2432, in _descriptor_get
return get(descriptor, obj, type(obj))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/zli4/.conda/envs/scenicplus/bin/scenicplus", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/cli/scenicplus.py", line 1137, in main
args.func(args)
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/cli/scenicplus.py", line 330, in TF_to_gene
infer_region_to_gene(
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/cli/commands.py", line 739, in infer_region_to_gene
adj = calculate_regions_to_genes_relationships(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/enhancer_to_gene.py", line 261, in calculate_regions_to_genes_relationships
region_to_gene_importances = _score_regions_to_genes(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.conda/envs/scenicplus/lib/python3.11/site-packages/scenicplus/enhancer_to_gene.py", line 219, in _score_regions_to_genes
joblib.Parallel(
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 1952, in __call__
return output if self.return_generator else list(output)
^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 1595, in _get_outputs
yield from self._retrieve()
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 1699, in _retrieve
self._raise_error_fast()
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 1734, in _raise_error_fast
error_job.get_result(self.timeout)
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 736, in get_result
return self._return_or_raise()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zli4/.local/lib/python3.11/site-packages/joblib/parallel.py", line 754, in _return_or_raise
raise self._result
TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
Hi all,
I'm trying to run the scenicplus tutorial here using snakemake and had an error saying
descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
in the stepscore_regions_to_single_gene
. I followed the steps in the tutorial and I'm not sure what's the cause for this error.Below is the full error message:
My python version is 3.11.10, and
Below is package version:
The text was updated successfully, but these errors were encountered: