CellScopes.jl icon indicating copy to clipboard operation
CellScopes.jl copied to clipboard

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

Open dchauss opened this issue 10 months ago • 1 comments

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 avatar Apr 03 '24 18:04 dchauss

"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")

HaojiaWu avatar Apr 09 '24 22:04 HaojiaWu