I get the following error while using peakachu adaptive.
I'm using the newest rpy2 version 3.3.6.
** Calculating peak significance with DESeq2...
Traceback (most recent call last):
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 599, in from_object
mv = memoryview(obj)
TypeError: memoryview: a bytes-like object is required, not 'list'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/miniconda3/bin/peakachu", line 161, in
sys.exit(main())
File "/home/user/miniconda3/bin/peakachu", line 140, in main
args.func(controller)
File "/home/user/miniconda3/bin/peakachu", line 150, in adaptive_approach
controller.adaptive_approach()
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/controller.py", line 160, in adaptive_approach
self._calc_sig_peaks_adaptive(adaptive, size_factors)
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/controller.py", line 246, in _calc_sig_peaks_adaptive
adaptive.run_deseq2_analysis(size_factors,
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/adaptive.py", line 283, in run_deseq2_analysis
result_df, self._size_factors = deseq2_runner.run_deseq2(
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/deseq2.py", line 24, in run_deseq2
"samples": robjects.StrVector(samples)})
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/robjects/vectors.py", line 385, in init
super().init(obj)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 512, in init
super().init(self.from_object(obj).sexp)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 603, in from_object
res = cls.from_iterable(obj)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterfacelib/conversion.py", line 44, in
cdata = function(*args, **kwargs)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 541, in from_iterable
populate_func(iterable, r_vector, set_elt, cast_value)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 463, in _populate_r_vector
set_elt(r_vector, i, cast_value(v))
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 666, in _as_charsxp_cdata
return conversion._str_to_charsxp(x)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py", line 139, in _str_to_charsxp
cchar = _str_to_cchar(val)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py", line 118, in _str_to_cchar
b = s.encode(encoding)
AttributeError: 'int' object has no attribute 'encode'
Hello,
I get the following error while using peakachu adaptive. I'm using the newest rpy2 version 3.3.6.
** Calculating peak significance with DESeq2... Traceback (most recent call last): File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 599, in from_object mv = memoryview(obj) TypeError: memoryview: a bytes-like object is required, not 'list'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/user/miniconda3/bin/peakachu", line 161, in
sys.exit(main())
File "/home/user/miniconda3/bin/peakachu", line 140, in main
args.func(controller)
File "/home/user/miniconda3/bin/peakachu", line 150, in adaptive_approach
controller.adaptive_approach()
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/controller.py", line 160, in adaptive_approach
self._calc_sig_peaks_adaptive(adaptive, size_factors)
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/controller.py", line 246, in _calc_sig_peaks_adaptive
adaptive.run_deseq2_analysis(size_factors,
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/adaptive.py", line 283, in run_deseq2_analysis
result_df, self._size_factors = deseq2_runner.run_deseq2(
File "/home/user/miniconda3/lib/python3.8/site-packages/peakachulib/deseq2.py", line 24, in run_deseq2
"samples": robjects.StrVector(samples)})
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/robjects/vectors.py", line 385, in init
super().init(obj)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 512, in init
super().init(self.from_object(obj).sexp)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 603, in from_object
res = cls.from_iterable(obj)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterfacelib/conversion.py", line 44, in
cdata = function(*args, **kwargs)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 541, in from_iterable
populate_func(iterable, r_vector, set_elt, cast_value)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 463, in _populate_r_vector
set_elt(r_vector, i, cast_value(v))
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/sexp.py", line 666, in _as_charsxp_cdata
return conversion._str_to_charsxp(x)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py", line 139, in _str_to_charsxp
cchar = _str_to_cchar(val)
File "/home/user/miniconda3/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py", line 118, in _str_to_cchar
b = s.encode(encoding)
AttributeError: 'int' object has no attribute 'encode'