HaojiaWu / CellScopes.jl

A Julia package for single cell and spatial data analysis
MIT License
26 stars 2 forks source link

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

Open dchauss opened 4 months ago

dchauss commented 4 months ago

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?

HaojiaWu commented 4 months ago

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