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 when runing extend_elastic_principal_graph #144

Open
HarrisHan2k opened this issue Dec 16, 2023 · 1 comment
Open

Error when runing extend_elastic_principal_graph #144

HarrisHan2k opened this issue Dec 16, 2023 · 1 comment

Comments

@HarrisHan2k
Copy link

Hi,

I encounter this issue when running the st.extend_elastic_principal_graph(adata,**ka2)

And the error was like this:
RRuntimeError Traceback (most recent call last)
/tmp/ipykernel_817251/378101491.py in
11 with TemporaryDirectory() as td:
12 st.set_workdir(adata,td)
---> 13 st.elastic_principal_graph(adata,**ka1)
14 st.extend_elastic_principal_graph(adata,**ka2)
15

/media/dell/Elements/soft/conda/miniconda3/envs/env_stream/lib/python3.7/site-packages/stream/core.py in elastic_principal_graph(adata, epg_n_nodes, incr_n_nodes, epg_lambda, epg_mu, epg_trimmingradius, epg_finalenergy, epg_alpha, epg_beta, epg_n_processes, use_vis, save_fig, fig_name, fig_path, fig_size, **kwargs)
2026 nReps=1,
2027 ProbPoint=1.0,
-> 2028 **kwargs)
2029 R('dev.off()')
2030

/media/dell/Elements/soft/conda/miniconda3/envs/env_stream/lib/python3.7/site-packages/rpy2/robjects/functions.py in call(self, *args, **kwargs)
176 v = kwargs.pop(k)
177 kwargs[r_k] = v
--> 178 return super(SignatureTranslatedFunction, self).call(*args, **kwargs)
179
180 pattern_link = re.compile(r'\link{(.+?)}')

/media/dell/Elements/soft/conda/miniconda3/envs/env_stream/lib/python3.7/site-packages/rpy2/robjects/functions.py in call(self, *args, **kwargs)
104 for k, v in kwargs.items():
105 new_kwargs[k] = conversion.py2ri(v)
--> 106 res = super(Function, self).call(*new_args, **new_kwargs)
107 res = conversion.ri2ro(res)
108 return res

RRuntimeError: Error: object ‘palette.colors’ is not exported by 'namespace:grDevices'

I suppose this is a rpy issue? And I checked I did have the R 3.6.3 installed in the conda environment.

Look forward to hearing from you!

Best,
Harris

@HarrisHan2k
Copy link
Author

HarrisHan2k commented Dec 17, 2023

Since grDevices is a base library, I suppose it is the R version I used? The stream is not compatible with R 3.6.3 where the build-in grDevices did not have the palette.colors function?

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