minor typos
Browse files
demo/HF_TCM+P3GPT_sceening.ipynb
CHANGED
@@ -324,7 +324,7 @@
|
|
324 |
"id": "324be182-fd49-4b5f-bc65-7c59ff56e46b",
|
325 |
"metadata": {},
|
326 |
"source": [
|
327 |
-
"Next, let's count how many times each compound's targets pop up in the generated signatures. To see if the overlap between targets and important aging genes is significant, we'll apply Fisher's exact test. As the
|
328 |
]
|
329 |
},
|
330 |
{
|
@@ -532,7 +532,7 @@
|
|
532 |
"metadata": {},
|
533 |
"source": [
|
534 |
"A total of 14 compounds were detected as potential geroprotectors in 6+ tissues, while almost half of all detected ingredients affect agig only in one tissue.\n",
|
535 |
-
"Among them, 8 were targetting the aging signatures in 8/8 tissues
|
536 |
"\n",
|
537 |
"<center><img src=\"https://huggingface.co/datasets/f-galkin/batman2/resolve/main/demo/imgs/cpds_affecting_tissue_aging.svg\" width=\"600\" ></center>\n",
|
538 |
"\n",
|
@@ -585,10 +585,9 @@
|
|
585 |
"id": "d1969f91-d51b-4974-b1d6-fe9f834f7462",
|
586 |
"metadata": {},
|
587 |
"source": [
|
588 |
-
"For the sake of brevity, we have externalized the scripts used to parse
|
589 |
-
"And to save you some time parsing the files from BATMAN's [download page](http://bionet.ncpsb.org.cn/batman-tcm/#/download), we have uploaded the dataset to Hugging Face. Go to the [batman2](https://huggingface.co/datasets/f-galkin/batman2) repository to preview the data. \n",
|
590 |
"\n",
|
591 |
-
"Feel free reuse the
|
592 |
"```python\n",
|
593 |
"from datasets import load_dataset\n",
|
594 |
"batman_ingredients = load_dataset(\"f-galkin/batman2\", \"batman_ingredients\")\n",
|
@@ -643,7 +642,7 @@
|
|
643 |
"metadata": {},
|
644 |
"source": [
|
645 |
"Not a single TCM formula out of the 54,832 described in BATMAN2 has all the 14 potential geroprotectors we selected.\n",
|
646 |
-
"And
|
647 |
]
|
648 |
},
|
649 |
{
|
@@ -749,7 +748,7 @@
|
|
749 |
"source": [
|
750 |
"The formula we ended up with is quite complex and contains 75 herbal components, such as nutmeg, turmeric, scutellaria, citrus peels, patchouli and others.\n",
|
751 |
"\n",
|
752 |
-
"You can learn more about this composition on other [TCM
|
753 |
]
|
754 |
}
|
755 |
],
|
|
|
324 |
"id": "324be182-fd49-4b5f-bc65-7c59ff56e46b",
|
325 |
"metadata": {},
|
326 |
"source": [
|
327 |
+
"Next, let's count how many times each compound's targets pop up in the generated signatures. To see if the overlap between targets and important aging genes is significant, we'll apply Fisher's exact test. As the background set, we shall use the total number of genes used by P3GPT — 25,332. "
|
328 |
]
|
329 |
},
|
330 |
{
|
|
|
532 |
"metadata": {},
|
533 |
"source": [
|
534 |
"A total of 14 compounds were detected as potential geroprotectors in 6+ tissues, while almost half of all detected ingredients affect agig only in one tissue.\n",
|
535 |
+
"Among them, 8 were targetting the aging signatures in 8/8 tissues. \n",
|
536 |
"\n",
|
537 |
"<center><img src=\"https://huggingface.co/datasets/f-galkin/batman2/resolve/main/demo/imgs/cpds_affecting_tissue_aging.svg\" width=\"600\" ></center>\n",
|
538 |
"\n",
|
|
|
585 |
"id": "d1969f91-d51b-4974-b1d6-fe9f834f7462",
|
586 |
"metadata": {},
|
587 |
"source": [
|
588 |
+
"For the sake of brevity, we have externalized the scripts used to parse BATMAN files into linked lists of ingredients-herbs-formulas with the `formula_picker.py` mini module available at the [batman2](https://huggingface.co/datasets/f-galkin/batman2) dataset repository. \n",
|
|
|
589 |
"\n",
|
590 |
+
"Feel free reuse the scripts and files we prepared in your own TCM-related projects. If you don't need our `TCMDB` wrapper class, you can access BATMAN data tables directly by executing the following commands:\n",
|
591 |
"```python\n",
|
592 |
"from datasets import load_dataset\n",
|
593 |
"batman_ingredients = load_dataset(\"f-galkin/batman2\", \"batman_ingredients\")\n",
|
|
|
642 |
"metadata": {},
|
643 |
"source": [
|
644 |
"Not a single TCM formula out of the 54,832 described in BATMAN2 has all the 14 potential geroprotectors we selected.\n",
|
645 |
+
"And only 1 formula has 13/14 compounds — ZHANG ZHOU SHEN QU. Let's take a closer look at it."
|
646 |
]
|
647 |
},
|
648 |
{
|
|
|
748 |
"source": [
|
749 |
"The formula we ended up with is quite complex and contains 75 herbal components, such as nutmeg, turmeric, scutellaria, citrus peels, patchouli and others.\n",
|
750 |
"\n",
|
751 |
+
"You can learn more about this composition on other [TCM databases](https://bidd.group/TCMID/tcmf.php?formula=TCMFx6833). For now, that is where we shall conclude our search"
|
752 |
]
|
753 |
}
|
754 |
],
|