almaan / stereoscope

Spatial mapping of cell types by integration of transcriptomics data
MIT License
87 stars 26 forks source link

Recycling sc models #29

Open johnyaku opened 2 years ago

johnyaku commented 2 years ago

The --sc_model option hints that it might be possible to 'recycle' an sc model that has already been fitted in a previous run. Is this the case? If so, how? I've tried specifying an sc_model*.pt file with this option and no other --sc_* options, but stereoscope run complains about a missing --sc_cnt file. When I add in the sc count file etc, the model loads but then soon crashes because of a shape mismatch. Note that I didn't create the model, but I suspect that the input sc data was reshaped with --sc_upper_bound and maybe --gene_list too. Basically, I just want to apply the model -- I'm not interested in refining it with more epochs. I guess this may be difficult without knowing the full life history of the model? But what combination of options/files would I need in order to recycle one of my own models? Thanks!