|
| 1 | + |
| 2 | +--- |
| 3 | +layout: default |
| 4 | +title: FAQ |
| 5 | +nav_order: 4 |
| 6 | +--- |
| 7 | + |
| 8 | +# FAQ |
| 9 | +- **Q:** What if I want to map only cell states, but not clones? |
| 10 | +- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, a way to achive that at the moment requirs a few modifications to the tutorial: |
| 11 | + |
| 12 | +1) Currently the format of `data` object is fixed, but you can assign a dummy label to `clone` column in `adata.obs` by assigning roughlhly 50% of the cells to clone '0' and the rest to 'diploid'. |
| 13 | + |
| 14 | +2) When you define the model, you need to set `map_enteties` to 'type' instead of 'both'. E.g.: |
| 15 | +```python |
| 16 | +model = GATLightningModule_sampler(data_param=data, weight_type=weight_type, map_enteties='type') |
| 17 | +``` |
| 18 | +3) Instead of running `get_results_calibrated()`, you can use `get_results_type(pred, data, node_encoder_rev, node_encoder_ct, activation='softmax')` to get the results for cell types only. |
| 19 | + |
| 20 | +- **Q:** What if I want to map only clones, but not cell types? |
| 21 | + |
| 22 | +- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, a way to achive that at the moment requirs a few modifications to the tutorial: |
| 23 | + |
| 24 | +1) Currently the format of `data` object is fixed, but you can assign a dummy label to 'cell_type' column in `adata_ref.obs` by assigning roughlhly 50% of the cells to dummy_cell_type1 and the rest to 'dummy_cell_type2' (or use any other names). |
| 25 | + |
| 26 | +2) When you define the model, you need to set `map_enteties` to 'clone' instead of 'both'. E.g.: |
| 27 | +```python |
| 28 | +model = GATLightningModule_sampler(data_param=data, weight_clone=weight_clone, map_enteties='clone') |
| 29 | +``` |
| 30 | +3) Instead of running `get_results_calibrated()`, you can use `get_results_clone(pred, data, node_encoder_rev, node_encoder_cl, activation='softmax')` to get the results for clones only. |
| 31 | + |
| 32 | +- **Q:** What if I want to map a different type of labels, e.g. cell types and cell cycle phases? |
| 33 | +- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, due to due to the fixed format of clonal labels, you might have to represent cell cycle phases as clones: e.g. "diploid","0","1", etc. |
| 34 | + |
| 35 | +- **Q:** What if I want to use more than 2 sets of labels? |
| 36 | +- **A:** Right now we do not support more than 2 sets of labels. However, if you feel confident in your programming skills, you can modify the code of model and the evaluation functions to support more than 2 sets of labels. |
| 37 | + |
| 38 | + |
0 commit comments