Add a tool for ITHCNA
grst opened this issue · comments
Intratumoral heterogeneity scores based on CNAs and gene expressions
The calculations of intratumoral heterogeneity scores were inspired by a previous study and modified as follows35. First, to calculate ITHCNA, we used the relative expression value matrix generated by inferCNV and calculated the pairwise cell–cell distances using Pearson's correlation coefficients for each patient. ITHCNA was defined as interquartile range (IQR) of the distribution for all malignant cell pairs' Pearson's correlation coefficients. Similarly, we also used gene expression profiles of cancer cells of each patient to construct the distribution of the intratumoral distances. ITHGEX was assigned as the IQR of the distribution. Public single-cell lung cancer datasets GSE131907 and E-MTAB-6149 were used to calculate the ITHGEX scores of early-stage and advanced stage lung cancer.
@elisapanizzolo, would be great if you could add a PR with your implementation of ITHCNA to this library.
Here's an example of how a tool is implemented in infercnvpy:
infercnvpy/infercnvpy/tl/_infercnv.py
Lines 14 to 66 in cf40cb2
We can discuss details after the holidays.
Cheers,
Gregor
Never mind, I already implemented it here based on @elisapanizzolo's code.
Will eventually add it to this repo.