Closed CarlinLiao closed 10 months ago
Memory demands are so high because
As I understand it, this approach means that the distance calculation can't be done on the fly with something like a KDTree, as is done in SPT, because of that ranking mechanism. Maybe you have thoughts @jimmymathews?
Resolved by converting the square matrix distance calculation to KDTree.
This issue was masked by the HPC we usually run this on, but the memory demands of this package are very high. For example, for
lesion 0_1
in the Melanoma intralesional IL2 dataset, I get an errorat this line https://github.com/CarlinLiao/cg-gnn/blob/c46fbbce52a376a5597b32bd2410da30e68d35f4/cggnn/generate_graph_from_spt.py#L47-L48
On a weaker local machine, it also tends to crash during the first large SQL query to get all cells here too it seems. https://github.com/CarlinLiao/cg-gnn/blob/c46fbbce52a376a5597b32bd2410da30e68d35f4/cggnn/spt_to_df.py#L20-L41