Skip to content

Commit

Permalink
Fixing some problems in PCA and VAE sections
Browse files Browse the repository at this point in the history
  • Loading branch information
percolator committed Nov 21, 2024
1 parent e948d6b commit bf0c73d
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 29 deletions.
13 changes: 3 additions & 10 deletions dsbook/unsupervised/PCAofCarcinomas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Here we see a non-complet separation of the patients based on their two first eigengenes. This means that the patients gene expression differ and that diference is covered by the first two principal components.\n",
"Here we see a non-complete separation of the patients based on their two first sample-specific effects. This means that the patients gene expression differ and that diference is covered by the first two principal components.\n",
"\n",
"Lets explore which genes that are most reponsible for that difference. We can do so by investigating their Gene-specific vectors."
]
Expand Down Expand Up @@ -170,17 +170,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"KRT17 seems to be important for both Gene-specific vector 1 and 2. This is possible since [KRT17](https://www.proteinatlas.org/ENSG00000128422-KRT17/pathology) is a known cancer related gene. At this point of the analysis, it is not fully clear what the biological interpretation of PC2 is. From the eigen gene plot, it is however clear that PC1 seem to capture a large part of the difference beween the LUAD and LUSC samples.\n",
"KRT17 seems to be important for both Gene-specific vector 1 and 2. This is possible since [KRT17](https://www.proteinatlas.org/ENSG00000128422-KRT17/pathology) is a known cancer related gene. At this point of the analysis, it is not fully clear what the biological interpretation of PC2 is. From the sample specific effects plot, it is however clear that PC1 seem to capture a large part of the difference beween the LUAD and LUSC samples.\n",
"\n",
"Note that based on this analysis only can speculate about what makes up this difference. It could be differences in the cancer biology of the tumors, but it could also be batch effects from differences in sample treatments. "
"Note that based on this analysis only can speculate about what makes up this difference. The differences could stem from actual differences in the cancer biology of the tumors, but it could equally well be due to technical problems, such as batch effects stemming from differences in sample treatments. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
15 changes: 11 additions & 4 deletions dsbook/unsupervised/VAEofCarcinomas.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit bf0c73d

Please sign in to comment.