A nice job! I encountered a technical issue when I run this code:
cor = sn.co.modules_to_annotation_cor(adata_r, net, figsize=(12,6), cor_method="spearman")
It shows such an error:
Traceback (most recent call last):
File "C:\Users\PycharmProjects\pythonProject\main.py", line 127, in
cor = sn.co.modules_to_annotation_cor(adata_r, net, figsize=(12,6), cor_method="spearman")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\scanet\coexpression.py", line 197, in modules_to_annotation_cor
MEtrait = module_to_annotation_cor_r(finalexp, net, cor_method=cor_method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\robjects\functions.py", line 208, in call
return (super(SignatureTranslatedFunction, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\robjects\functions.py", line 131, in call
res = super(Function, self).call(*new_args, *new_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\rinterfacelib\conversion.py", line 45, in
cdata = function(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\rinterface.py", line 873, in call
raise embedded.RRuntimeError(_rinterface._geterrmessage())
rpy2.rinterface_lib.embedded.RRuntimeError: Error in module_trait_cor(exp = final_exp, MEs = net$MEs, cor_method = cor_method, :
unused arguments (cex.lab.x = 0.01, cex.lab.y = 0.01, cex.text = 0.01)
Could you provide some information about this error? Thank you!
Hi,
A nice job! I encountered a technical issue when I run this code: cor = sn.co.modules_to_annotation_cor(adata_r, net, figsize=(12,6), cor_method="spearman") It shows such an error: Traceback (most recent call last): File "C:\Users\PycharmProjects\pythonProject\main.py", line 127, in
cor = sn.co.modules_to_annotation_cor(adata_r, net, figsize=(12,6), cor_method="spearman")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\scanet\coexpression.py", line 197, in modules_to_annotation_cor
MEtrait = module_to_annotation_cor_r(finalexp, net, cor_method=cor_method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\robjects\functions.py", line 208, in call
return (super(SignatureTranslatedFunction, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\robjects\functions.py", line 131, in call
res = super(Function, self).call(*new_args, *new_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\rinterfacelib\conversion.py", line 45, in
cdata = function(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PycharmProjects\pythonProject\venv\Lib\site-packages\rpy2\rinterface.py", line 873, in call
raise embedded.RRuntimeError(_rinterface._geterrmessage())
rpy2.rinterface_lib.embedded.RRuntimeError: Error in module_trait_cor(exp = final_exp, MEs = net$MEs, cor_method = cor_method, :
unused arguments (cex.lab.x = 0.01, cex.lab.y = 0.01, cex.text = 0.01)
Could you provide some information about this error? Thank you!