Hi!
I have tried to run the peakachu score_genome function and my scripts were as follows:
_peakachu score_genome -r 5000 --balance -p /workdir/nf/inter_30.hic -O nf-peakachu-5kb-scores.bedpe -m /model/high-confidence.600million.5kb.w6.pkl_
However, I got the error probably associated with the dtype:
_```
_/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/sklearn/base.py:348: InconsistentVersionWarning: Trying to unpickle estimator DecisionTreeClassifier from version 1.1.2 when using version 1.3.1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
Traceback (most recent call last):
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/bin/peakachu", line 91, in
run()
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/bin/peakachu", line 87, in run
args.func(args)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/peakachu/score_genome.py", line 14, in main
model = joblib.load(args.model)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 658, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 577, in _unpickle
obj = unpickler.load()
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/pickle.py", line 1212, in load
dispatchkey[0]
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 402, in load_build
Unpickler.load_build(self)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/pickle.py", line 1705, in load_build
setstate(state)
File "sklearn/tree/_tree.pyx", line 728, in sklearn.tree._tree.Tree.setstate
File "sklearn/tree/_tree.pyx", line 1432, in sklearn.tree._tree._check_node_ndarray
ValueError: node array from the pickle has an incompatible dtype:
- expected: {'names': ['left_child', 'right_child', 'feature', 'threshold', 'impurity', 'n_node_samples', 'weighted_n_node_samples', 'missing_go_to_left'], 'formats': ['<i8', '<i8', '<i8', '<f8', '<f8', '<i8', '<f8', 'u1'], 'offsets': [0, 8, 16, 24, 32, 40, 48, 56], 'itemsize': 64}
- got : [('left_child', '<i8'), ('right_child', '<i8'), ('feature', '<i8'), ('threshold', '<f8'), ('impurity', '<f8'), ('n_node_samples', '<i8'), ('weighted_n_node_samples', '<f8')]_
It seems to be a incompatible dtype error and my .hic file was produced by juicer1.6, I didn't think this file had a confused format.
So how did this error happen? And What can I do to change its format to adapt the sofeware?
Thank you very much!
Hi!
I have tried to run the peakachu score_genome function and my scripts were as follows:
_peakachu score_genome -r 5000 --balance -p /workdir/nf/inter_30.hic -O nf-peakachu-5kb-scores.bedpe -m /model/high-confidence.600million.5kb.w6.pkl_However, I got the error probably associated with the dtype:
_```
_/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/sklearn/base.py:348: InconsistentVersionWarning: Trying to unpickle estimator DecisionTreeClassifier from version 1.1.2 when using version 1.3.1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
Traceback (most recent call last):
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/bin/peakachu", line 91, in
run()
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/bin/peakachu", line 87, in run
args.func(args)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/peakachu/score_genome.py", line 14, in main
model = joblib.load(args.model)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 658, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 577, in _unpickle
obj = unpickler.load()
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/pickle.py", line 1212, in load
dispatchkey[0]
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/site-packages/joblib/numpy_pickle.py", line 402, in load_build
Unpickler.load_build(self)
File "/share/home/lhl_zhulin/miniconda3/envs/juicer/lib/python3.8/pickle.py", line 1705, in load_build
setstate(state)
File "sklearn/tree/_tree.pyx", line 728, in sklearn.tree._tree.Tree.setstate
File "sklearn/tree/_tree.pyx", line 1432, in sklearn.tree._tree._check_node_ndarray
ValueError: node array from the pickle has an incompatible dtype: