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

savings images from the julia command line? how to reload xenium CellScopes object? #8

Open
dchauss opened this issue Apr 3, 2024 · 1 comment

Comments

@dchauss
Copy link

dchauss commented Apr 3, 2024

Two questions:

  1. Is there anyway to save CellScopes figures from the julia command line as a pdf or svg for instance?
  2. How do I properly reload a CellScopes jld2 object?
@dchauss dchauss changed the title savings images from the julia command line? savings images from the julia command line? how to reload xenium CellScopes object? Apr 3, 2024
@HaojiaWu
Copy link
Owner

HaojiaWu commented Apr 9, 2024

"1. Is there anyway to save CellScopes figures from the julia command line as a pdf or svg for instance?"
yes, try this:

]add CairoMakie
import CairoMakie as MK
fig = cs.sp_dim_plot(test, "cluster"; 
    do_label = false, marker_size = 5, 
    width=2500, height=2000, do_legend=false
    )
MK.save("test.svg", fig)

"2. How do I properly reload a CellScopes jld2 object?"
you can load the jld2 file like this:

test=cs.load(filename="test.jld2")

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

2 participants