SofieVG / FlowSOM

Using self-organizing maps for visualization and interpretation of cytometry data
61 stars 26 forks source link

Add option to return just the weights from the`SOM` function #50

Closed alex-l-kong closed 1 year ago

alex-l-kong commented 2 years ago

Calling the SOM function will currently generate the weights of the SOM and internally run MapDataToCodes on the dataset. However, the user may not want to immediately run MapDataToCodes on the dataset. For example, to save memory, the user may decide to train the SOM on just a subset of the data, then use the weights to directly invoke MapDataToCodes on the entire dataset.

The SOM function should include a flag to allow the user to disable the call to MapDataToCodes and just save the SOM weights for applications such as this.