Teichlab / cellhint

A tool for semi-automatic cell type harmonization and integration
MIT License
91 stars 11 forks source link

Analysis questions #1

Open Nusob888 opened 10 months ago

Nusob888 commented 10 months ago

Many thanks for this fantastic tool. My questions are not really an issue but more theoretical.

ChuanXu1 commented 10 months ago

@Nusob888

  1. Yes
  2. Thank you for this nice suggestion although currently it is not possible (at least not directly feasible) with CellHint. I will make such function late this month.
ChuanXu1 commented 9 months ago

@Nusob888, please try cellhint.selfmatch to harmonize different annotations for the same set of cells. This function has been added in version 1.0.0. One thing to note is that harmonization was initially designed to unify cell type annotations from different datasets, this self-match function is thus a modified version for dealing with cells from only a single dataset.

Nusob888 commented 9 months ago

Hi, I am going to try this function this week. Can I check a few things for the use_rep option?

Would you recommend:

Additionally:

Thanks again for all the input

ChuanXu1 commented 9 months ago

@Nusob888, use_rep is usually suggested rather than raw expression matrix, as the latter is time-consuming. A latent space on the whole dataset is preferred. For the choice of latent representation, it's flexible. Using PCA is correction-agnostic, but may be noisy in terms of batch effect (CellHint has an internal procedure to mitigate this but cannot exclude its influence). Pre-integrated embeddings such as scVI are also good alternatives, but note that the result will be tuned towards the structure defined by scVI.