You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `MEMORY_SAVING_MODE` is true if you want to run OnClass on low RAM, and false otherwise. This value can be set easily in the `config <https://github.com/wangshenguiuc/OnClass/OnClass_Torch/config.py>`__ file.
44
44
45
-
Read the training data from the training file::
45
+
Read the training data from the training file as::
where `train_feature` is a sample-by-gene gene expression matrix, `train_label` is a label vector for each sample. The labels in `Y` should use the Cell Ontology Id (e.g., CL:1000398). The data (e.g., tabula muris raw gene expression matrix, the Cell Ontology obo file) can be downloaded from FigShare.(see dataset section in this tutorial).
53
+
where `train_feature` is a sample-by-gene gene expression matrix, `train_label` is a label vector for each sample. The labels in `train_label` in this example are Cell Ontology Ids (e.g., CL:1000398). It's important to add, that if the model is in memory saving mode, it will load `train_feature` as a sparse scipy matrix.
54
54
55
-
It's important to add, that if the model is in memory saving mode, it will load train_feature as a sparse scipy matrix.
56
-
57
-
Next, we embed the cell onotology::
55
+
Next, we embed the cell onotology as::
58
56
59
57
print ('embed cell types using the cell ontology...')
60
58
OnClass_train_obj.EmbedCellTypes(train_label)
61
59
62
-
Read the test data::
60
+
And read the test data as::
63
61
64
62
test_label = x.obs[test_label].tolist()
65
63
test_genes = np.array([x.upper() for x in x.var.index])
0 commit comments