Add files using upload-large-folder tool
Browse files- CIGS/0_data_process.ipynb +1113 -0
- CIGS/1.1_make_paired_data_HEK293T.ipynb +0 -0
- CIGS/1_make_paired_data_MDA-MB-231.ipynb +0 -0
- CIGS/1_make_paired_data_中药.ipynb +0 -0
- CIGS/CIGS_Gene_names.csv +3408 -0
- CIGS/CIGS_Smiles_list.csv +0 -0
- CIGS/Gene_names.ipynb +253 -0
- CIGS/SMILES_Encoder.ipynb +0 -0
- Get_Molecular_Embeddings.ipynb +1662 -0
- Image/SMILES_Encoder.ipynb +0 -0
- Image/SMILES_Encoder_image.ipynb +0 -0
- Image/image_all_unique_smiles.csv +0 -0
- Image/unique_smiles.txt +0 -0
- LINCS2020/gene_978_to965.ipynb +582 -0
- LINCS2020/geneinfo_processed.csv +0 -0
- LINCS2020/landmark_geneinfo.csv +979 -0
- LINCS2020/lincs978_to965.csv +966 -0
- LINCS2020/tahoe_gene_names.csv +0 -0
- MVC/CDRP-BBBC047-Bray/Step1_data_process.ipynb +0 -0
- MVC/CDRP-BBBC047-Bray/Step1_data_process_get_CP.ipynb +0 -0
- MVC/CDRP-BBBC047-Bray/Step2_align.ipynb +0 -0
- MVC/CDRP-BBBC047-Bray/Step3_aggreate_2modality.ipynb +476 -0
- MVC/CDRP-BBBC047-Bray/Step4_outlier_process.ipynb +462 -0
- MVC/CDRP-BBBC047-Bray/make_paired_data_47_36.ipynb +0 -0
- MVC/CDRPBIO-BBBC036-Bray/Step1_data_process.ipynb +0 -0
- MVC/CDRPBIO-BBBC036-Bray/Step1_data_process_get_CP.ipynb +0 -0
- MVC/CDRPBIO-BBBC036-Bray/Step2_align.ipynb +0 -0
- MVC/CDRPBIO-BBBC036-Bray/Step3_aggreate_2modality.ipynb +230 -0
- MVC/CDRPBIO-BBBC036-Bray/Step4_outlier_process.ipynb +491 -0
- MVC/MVC_BBBC036/Step1_data_process.ipynb +0 -0
- MVC/MVC_BBBC036/Step2_align.ipynb +0 -0
- MVC/MVC_BBBC036/Step3_aggreate_2modality copy.ipynb +786 -0
- MVC/MVC_BBBC036/Step3_aggreate_2modality.ipynb +1153 -0
- MVC/MVC_BBBC036/Step4_outlier_process.ipynb +491 -0
- MVC/MVC_BBBC047/Step1_data_process.ipynb +0 -0
- MVC/MVC_BBBC047/Step2_align copy.ipynb +0 -0
- MVC/MVC_BBBC047/Step2_align.ipynb +0 -0
- MVC/MVC_BBBC047/Step3_aggreate_2modality.ipynb +1155 -0
- MVC/MVC_BBBC047/Step4_outlier_process.ipynb +462 -0
- MVC/MVC_BBBC047/make_paired_data_47_36.ipynb +0 -0
- Molecular_representations/Get_embeddings/MolCLR/Get_emd.ipynb +291 -0
- Molecular_representations/Get_embeddings/Mole-BERT/Get_emd.ipynb +334 -0
- Molecular_representations/Get_embeddings/SMILES_Encoder.ipynb +1653 -0
- Tahoe-100M/Tahoe.ipynb +0 -0
- Tahoe-100M/lincs_in_scgpt_indices.csv +966 -0
- Tahoe-100M/smiles.ipynb +0 -0
- Tahoe-100M/unique_smiles.csv +0 -0
- Tahoe-100M/unique_smiles.txt +363 -0
- UniMol2_embedding.py +124 -0
- upload.py +21 -0
CIGS/0_data_process.ipynb
ADDED
|
@@ -0,0 +1,1113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "bead31c0",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 先去下载好数据: https://cigs.iomicscloud.com/"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": 2,
|
| 14 |
+
"id": "0db2da68",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [],
|
| 17 |
+
"source": [
|
| 18 |
+
"import pickle, h5py\n",
|
| 19 |
+
"import numpy as np\n",
|
| 20 |
+
"import pandas as pd"
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"cell_type": "markdown",
|
| 25 |
+
"id": "02cf9b84",
|
| 26 |
+
"metadata": {},
|
| 27 |
+
"source": [
|
| 28 |
+
"## 转成 parquet 格式更方便处理"
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"cell_type": "code",
|
| 33 |
+
"execution_count": null,
|
| 34 |
+
"id": "006f7147",
|
| 35 |
+
"metadata": {},
|
| 36 |
+
"outputs": [],
|
| 37 |
+
"source": [
|
| 38 |
+
"import pandas as pd\n",
|
| 39 |
+
"import os\n",
|
| 40 |
+
"import glob\n",
|
| 41 |
+
"\n",
|
| 42 |
+
"# 定义要处理的根目录\n",
|
| 43 |
+
"base_path = \"/data/boom/CIGS/\"\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"# 使用 glob 找到所有以 _Counts.xlsx 结尾的文件\n",
|
| 46 |
+
"count_files = glob.glob(os.path.join(base_path, \"*_Counts.xlsx\"))\n",
|
| 47 |
+
"\n",
|
| 48 |
+
"if not count_files:\n",
|
| 49 |
+
" print(f\"在路径 '{base_path}' 下没有找到任何以 '_Counts.xlsx' 结尾的文件。\")\n",
|
| 50 |
+
"else:\n",
|
| 51 |
+
" print(f\"找到 {len(count_files)} 个匹配的文件,开始批量处理...\")\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"# 循环处理每个文件\n",
|
| 54 |
+
"for count_path in count_files:\n",
|
| 55 |
+
" try:\n",
|
| 56 |
+
" print(f\"\\n--- 正在处理文件: {count_path} ---\")\n",
|
| 57 |
+
"\n",
|
| 58 |
+
" # 1. 处理 Counts 文件\n",
|
| 59 |
+
" counts = pd.read_excel(count_path, engine=\"openpyxl\", header=1)\n",
|
| 60 |
+
" # 清理空行/列\n",
|
| 61 |
+
" counts = counts.dropna(axis=1, how=\"all\").dropna(axis=0, how=\"all\")\n",
|
| 62 |
+
"\n",
|
| 63 |
+
" # 规范化首列\n",
|
| 64 |
+
" id_col = counts.columns[0]\n",
|
| 65 |
+
" if str(id_col).lower() != \"sample_unique_id\":\n",
|
| 66 |
+
" counts = counts.rename(columns={id_col: \"Sample_unique_id\"})\n",
|
| 67 |
+
" counts[\"Sample_unique_id\"] = counts[\"Sample_unique_id\"].astype(str)\n",
|
| 68 |
+
"\n",
|
| 69 |
+
" # 构建 Parquet 文件名\n",
|
| 70 |
+
" parquet_path = count_path.replace(\"_Counts.xlsx\", \"_Counts.parquet\")\n",
|
| 71 |
+
" counts.to_parquet(parquet_path, index=False)\n",
|
| 72 |
+
" print(f\"成功处理并保存 Counts 文件到: {parquet_path}\")\n",
|
| 73 |
+
"\n",
|
| 74 |
+
" # 2. 处理对应的 MetaData 文件\n",
|
| 75 |
+
" meta_path = count_path.replace(\"_Counts.xlsx\", \"_MetaData.xlsx\")\n",
|
| 76 |
+
" if os.path.exists(meta_path):\n",
|
| 77 |
+
" meta = pd.read_excel(meta_path, engine=\"openpyxl\", header=1)\n",
|
| 78 |
+
" meta = meta.dropna(axis=1, how=\"all\").dropna(axis=0, how=\"all\")\n",
|
| 79 |
+
"\n",
|
| 80 |
+
" parquet_meta_path = meta_path.replace(\"_MetaData.xlsx\", \"_MetaData.parquet\")\n",
|
| 81 |
+
" meta.to_parquet(parquet_meta_path, index=False)\n",
|
| 82 |
+
" print(f\"成功处理并保存 MetaData 文件到: {parquet_meta_path}\")\n",
|
| 83 |
+
" else:\n",
|
| 84 |
+
" print(f\"警告: 未找到对应的 MetaData 文件: {meta_path},跳过处理。\")\n",
|
| 85 |
+
"\n",
|
| 86 |
+
" except Exception as e:\n",
|
| 87 |
+
" print(f\"错误: 处理文件 '{count_path}' 时出错: {e}\")\n",
|
| 88 |
+
" print(\"跳过此文件,继续处理下一个。\")\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"print(\"\\n所有文件处理完毕。\")"
|
| 91 |
+
]
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"cell_type": "code",
|
| 95 |
+
"execution_count": 5,
|
| 96 |
+
"id": "2514cecc",
|
| 97 |
+
"metadata": {},
|
| 98 |
+
"outputs": [
|
| 99 |
+
{
|
| 100 |
+
"name": "stdout",
|
| 101 |
+
"output_type": "stream",
|
| 102 |
+
"text": [
|
| 103 |
+
"合并后的数据集形状: (13221, 7)\n"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"data": {
|
| 108 |
+
"text/html": [
|
| 109 |
+
"<div>\n",
|
| 110 |
+
"<style scoped>\n",
|
| 111 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
| 112 |
+
" vertical-align: middle;\n",
|
| 113 |
+
" }\n",
|
| 114 |
+
"\n",
|
| 115 |
+
" .dataframe tbody tr th {\n",
|
| 116 |
+
" vertical-align: top;\n",
|
| 117 |
+
" }\n",
|
| 118 |
+
"\n",
|
| 119 |
+
" .dataframe thead th {\n",
|
| 120 |
+
" text-align: right;\n",
|
| 121 |
+
" }\n",
|
| 122 |
+
"</style>\n",
|
| 123 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
| 124 |
+
" <thead>\n",
|
| 125 |
+
" <tr style=\"text-align: right;\">\n",
|
| 126 |
+
" <th></th>\n",
|
| 127 |
+
" <th>Compound name</th>\n",
|
| 128 |
+
" <th>Catalog Number</th>\n",
|
| 129 |
+
" <th>CAS Number</th>\n",
|
| 130 |
+
" <th>MOA</th>\n",
|
| 131 |
+
" <th>Clinical Information</th>\n",
|
| 132 |
+
" <th>Approved Type</th>\n",
|
| 133 |
+
" <th>Catalog Number.1</th>\n",
|
| 134 |
+
" </tr>\n",
|
| 135 |
+
" </thead>\n",
|
| 136 |
+
" <tbody>\n",
|
| 137 |
+
" <tr>\n",
|
| 138 |
+
" <th>0</th>\n",
|
| 139 |
+
" <td>Pirozadil</td>\n",
|
| 140 |
+
" <td>HY_100144</td>\n",
|
| 141 |
+
" <td>54110-25-7</td>\n",
|
| 142 |
+
" <td>Others</td>\n",
|
| 143 |
+
" <td>No Development Reported</td>\n",
|
| 144 |
+
" <td>NaN</td>\n",
|
| 145 |
+
" <td>NaN</td>\n",
|
| 146 |
+
" </tr>\n",
|
| 147 |
+
" <tr>\n",
|
| 148 |
+
" <th>1</th>\n",
|
| 149 |
+
" <td>NKL 22</td>\n",
|
| 150 |
+
" <td>HY_100384</td>\n",
|
| 151 |
+
" <td>537034-15-4</td>\n",
|
| 152 |
+
" <td>HDAC</td>\n",
|
| 153 |
+
" <td>No Development Reported</td>\n",
|
| 154 |
+
" <td>NaN</td>\n",
|
| 155 |
+
" <td>NaN</td>\n",
|
| 156 |
+
" </tr>\n",
|
| 157 |
+
" <tr>\n",
|
| 158 |
+
" <th>2</th>\n",
|
| 159 |
+
" <td>Toll-like receptor modulator</td>\n",
|
| 160 |
+
" <td>HY_10018</td>\n",
|
| 161 |
+
" <td>926927-42-6</td>\n",
|
| 162 |
+
" <td>Toll-like Receptor (TLR)</td>\n",
|
| 163 |
+
" <td>No Development Reported</td>\n",
|
| 164 |
+
" <td>NaN</td>\n",
|
| 165 |
+
" <td>NaN</td>\n",
|
| 166 |
+
" </tr>\n",
|
| 167 |
+
" <tr>\n",
|
| 168 |
+
" <th>3</th>\n",
|
| 169 |
+
" <td>Lu AF21934</td>\n",
|
| 170 |
+
" <td>HY_100366</td>\n",
|
| 171 |
+
" <td>1445605-23-1</td>\n",
|
| 172 |
+
" <td>mGluR</td>\n",
|
| 173 |
+
" <td>No Development Reported</td>\n",
|
| 174 |
+
" <td>NaN</td>\n",
|
| 175 |
+
" <td>NaN</td>\n",
|
| 176 |
+
" </tr>\n",
|
| 177 |
+
" <tr>\n",
|
| 178 |
+
" <th>4</th>\n",
|
| 179 |
+
" <td>Vonoprazan</td>\n",
|
| 180 |
+
" <td>HY_100007</td>\n",
|
| 181 |
+
" <td>881681-00-1</td>\n",
|
| 182 |
+
" <td>Proton Pump</td>\n",
|
| 183 |
+
" <td>Launched</td>\n",
|
| 184 |
+
" <td>FDA; Other Countries</td>\n",
|
| 185 |
+
" <td>NaN</td>\n",
|
| 186 |
+
" </tr>\n",
|
| 187 |
+
" <tr>\n",
|
| 188 |
+
" <th>...</th>\n",
|
| 189 |
+
" <td>...</td>\n",
|
| 190 |
+
" <td>...</td>\n",
|
| 191 |
+
" <td>...</td>\n",
|
| 192 |
+
" <td>...</td>\n",
|
| 193 |
+
" <td>...</td>\n",
|
| 194 |
+
" <td>...</td>\n",
|
| 195 |
+
" <td>...</td>\n",
|
| 196 |
+
" </tr>\n",
|
| 197 |
+
" <tr>\n",
|
| 198 |
+
" <th>13216</th>\n",
|
| 199 |
+
" <td>Methoxyeugeno l\\n4-O-rhamnosyl(\\n1→2)glucoside</td>\n",
|
| 200 |
+
" <td>Cpd1991</td>\n",
|
| 201 |
+
" <td>NaN</td>\n",
|
| 202 |
+
" <td>NaN</td>\n",
|
| 203 |
+
" <td>NaN</td>\n",
|
| 204 |
+
" <td>NaN</td>\n",
|
| 205 |
+
" <td>903519-86-8</td>\n",
|
| 206 |
+
" </tr>\n",
|
| 207 |
+
" <tr>\n",
|
| 208 |
+
" <th>13217</th>\n",
|
| 209 |
+
" <td>(2S)-1-O-β-D-\\nglucopyranosyl-\\n2-O-acetyl-3-O...</td>\n",
|
| 210 |
+
" <td>Cpd1992</td>\n",
|
| 211 |
+
" <td>NaN</td>\n",
|
| 212 |
+
" <td>NaN</td>\n",
|
| 213 |
+
" <td>NaN</td>\n",
|
| 214 |
+
" <td>NaN</td>\n",
|
| 215 |
+
" <td>NaN</td>\n",
|
| 216 |
+
" </tr>\n",
|
| 217 |
+
" <tr>\n",
|
| 218 |
+
" <th>13218</th>\n",
|
| 219 |
+
" <td>Manninotriose</td>\n",
|
| 220 |
+
" <td>Cpd1998</td>\n",
|
| 221 |
+
" <td>NaN</td>\n",
|
| 222 |
+
" <td>NaN</td>\n",
|
| 223 |
+
" <td>NaN</td>\n",
|
| 224 |
+
" <td>NaN</td>\n",
|
| 225 |
+
" <td>13382-86-0</td>\n",
|
| 226 |
+
" </tr>\n",
|
| 227 |
+
" <tr>\n",
|
| 228 |
+
" <th>13219</th>\n",
|
| 229 |
+
" <td>1-Methylhydant\\noin</td>\n",
|
| 230 |
+
" <td>Cpd1999</td>\n",
|
| 231 |
+
" <td>NaN</td>\n",
|
| 232 |
+
" <td>NaN</td>\n",
|
| 233 |
+
" <td>NaN</td>\n",
|
| 234 |
+
" <td>NaN</td>\n",
|
| 235 |
+
" <td>616-04-6</td>\n",
|
| 236 |
+
" </tr>\n",
|
| 237 |
+
" <tr>\n",
|
| 238 |
+
" <th>13220</th>\n",
|
| 239 |
+
" <td>Agrimol B</td>\n",
|
| 240 |
+
" <td>Cpd2000</td>\n",
|
| 241 |
+
" <td>NaN</td>\n",
|
| 242 |
+
" <td>NaN</td>\n",
|
| 243 |
+
" <td>NaN</td>\n",
|
| 244 |
+
" <td>NaN</td>\n",
|
| 245 |
+
" <td>55576-66-4</td>\n",
|
| 246 |
+
" </tr>\n",
|
| 247 |
+
" </tbody>\n",
|
| 248 |
+
"</table>\n",
|
| 249 |
+
"<p>13221 rows × 7 columns</p>\n",
|
| 250 |
+
"</div>"
|
| 251 |
+
],
|
| 252 |
+
"text/plain": [
|
| 253 |
+
" Compound name Catalog Number \\\n",
|
| 254 |
+
"0 Pirozadil HY_100144 \n",
|
| 255 |
+
"1 NKL 22 HY_100384 \n",
|
| 256 |
+
"2 Toll-like receptor modulator HY_10018 \n",
|
| 257 |
+
"3 Lu AF21934 HY_100366 \n",
|
| 258 |
+
"4 Vonoprazan HY_100007 \n",
|
| 259 |
+
"... ... ... \n",
|
| 260 |
+
"13216 Methoxyeugeno l\\n4-O-rhamnosyl(\\n1→2)glucoside Cpd1991 \n",
|
| 261 |
+
"13217 (2S)-1-O-β-D-\\nglucopyranosyl-\\n2-O-acetyl-3-O... Cpd1992 \n",
|
| 262 |
+
"13218 Manninotriose Cpd1998 \n",
|
| 263 |
+
"13219 1-Methylhydant\\noin Cpd1999 \n",
|
| 264 |
+
"13220 Agrimol B Cpd2000 \n",
|
| 265 |
+
"\n",
|
| 266 |
+
" CAS Number MOA Clinical Information \\\n",
|
| 267 |
+
"0 54110-25-7 Others No Development Reported \n",
|
| 268 |
+
"1 537034-15-4 HDAC No Development Reported \n",
|
| 269 |
+
"2 926927-42-6 Toll-like Receptor (TLR) No Development Reported \n",
|
| 270 |
+
"3 1445605-23-1 mGluR No Development Reported \n",
|
| 271 |
+
"4 881681-00-1 Proton Pump Launched \n",
|
| 272 |
+
"... ... ... ... \n",
|
| 273 |
+
"13216 NaN NaN NaN \n",
|
| 274 |
+
"13217 NaN NaN NaN \n",
|
| 275 |
+
"13218 NaN NaN NaN \n",
|
| 276 |
+
"13219 NaN NaN NaN \n",
|
| 277 |
+
"13220 NaN NaN NaN \n",
|
| 278 |
+
"\n",
|
| 279 |
+
" Approved Type Catalog Number.1 \n",
|
| 280 |
+
"0 NaN NaN \n",
|
| 281 |
+
"1 NaN NaN \n",
|
| 282 |
+
"2 NaN NaN \n",
|
| 283 |
+
"3 NaN NaN \n",
|
| 284 |
+
"4 FDA; Other Countries NaN \n",
|
| 285 |
+
"... ... ... \n",
|
| 286 |
+
"13216 NaN 903519-86-8 \n",
|
| 287 |
+
"13217 NaN NaN \n",
|
| 288 |
+
"13218 NaN 13382-86-0 \n",
|
| 289 |
+
"13219 NaN 616-04-6 \n",
|
| 290 |
+
"13220 NaN 55576-66-4 \n",
|
| 291 |
+
"\n",
|
| 292 |
+
"[13221 rows x 7 columns]"
|
| 293 |
+
]
|
| 294 |
+
},
|
| 295 |
+
"execution_count": 5,
|
| 296 |
+
"metadata": {},
|
| 297 |
+
"output_type": "execute_result"
|
| 298 |
+
}
|
| 299 |
+
],
|
| 300 |
+
"source": [
|
| 301 |
+
"import pandas as pd\n",
|
| 302 |
+
"\n",
|
| 303 |
+
"cas_csv = \"/data/boom/CIGS/Drug_infoM.xlsx\"\n",
|
| 304 |
+
"\n",
|
| 305 |
+
"# 读取两个sheet,假设第二个sheet名为\"Supplementary Table 4\"\n",
|
| 306 |
+
"sheet1 = pd.read_excel(cas_csv, sheet_name=\"Supplementary Table 3\", header=1)\n",
|
| 307 |
+
"sheet2 = pd.read_excel(cas_csv, sheet_name=\"Supplementary Table 4\", header=1) # 替换为实际的第二个sheet名\n",
|
| 308 |
+
"\n",
|
| 309 |
+
"# 合并两个DataFrame\n",
|
| 310 |
+
"merged_df = pd.concat([sheet1, sheet2], ignore_index=True)\n",
|
| 311 |
+
"\n",
|
| 312 |
+
"# 查看合并结果\n",
|
| 313 |
+
"print(\"合并后的数据集形状:\", merged_df.shape)\n",
|
| 314 |
+
"merged_df"
|
| 315 |
+
]
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"cell_type": "code",
|
| 319 |
+
"execution_count": 6,
|
| 320 |
+
"id": "05c9cbb1",
|
| 321 |
+
"metadata": {},
|
| 322 |
+
"outputs": [
|
| 323 |
+
{
|
| 324 |
+
"name": "stdout",
|
| 325 |
+
"output_type": "stream",
|
| 326 |
+
"text": [
|
| 327 |
+
"合并后的数据集形状: (13221, 7)\n",
|
| 328 |
+
"转换完成,已保存为 merged_with_smiles.csv\n"
|
| 329 |
+
]
|
| 330 |
+
}
|
| 331 |
+
],
|
| 332 |
+
"source": [
|
| 333 |
+
"import requests\n",
|
| 334 |
+
"import pandas as pd\n",
|
| 335 |
+
"import time\n",
|
| 336 |
+
"\n",
|
| 337 |
+
"def cas_to_smiles_single(cas, sleep_time=0.2):\n",
|
| 338 |
+
" \"\"\"\n",
|
| 339 |
+
" 输入: 单个CAS号\n",
|
| 340 |
+
" 输出: (cid, smiles)\n",
|
| 341 |
+
" \"\"\"\n",
|
| 342 |
+
" try:\n",
|
| 343 |
+
" # 通过 PubChem 查询 CID\n",
|
| 344 |
+
" url_cid = f\"https://pubchem.ncbi.nlm.nih.gov/rest/pug/substance/name/{cas}/cids/TXT\"\n",
|
| 345 |
+
" r_cid = requests.get(url_cid)\n",
|
| 346 |
+
" if r_cid.status_code != 200 or not r_cid.text.strip():\n",
|
| 347 |
+
" return None, None\n",
|
| 348 |
+
" cid = r_cid.text.strip().split(\"\\n\")[0]\n",
|
| 349 |
+
"\n",
|
| 350 |
+
" # 通过 CID 获取 canonical SMILES\n",
|
| 351 |
+
" url_smiles = f\"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/{cid}/property/CanonicalSMILES/TXT\"\n",
|
| 352 |
+
" r_smiles = requests.get(url_smiles)\n",
|
| 353 |
+
" if r_smiles.status_code != 200 or not r_smiles.text.strip():\n",
|
| 354 |
+
" return cid, None\n",
|
| 355 |
+
" smiles = r_smiles.text.strip()\n",
|
| 356 |
+
"\n",
|
| 357 |
+
" time.sleep(sleep_time) # 防止被限流\n",
|
| 358 |
+
" return cid, smiles\n",
|
| 359 |
+
" except:\n",
|
| 360 |
+
" return None, None\n",
|
| 361 |
+
"\n",
|
| 362 |
+
"\n",
|
| 363 |
+
"# ================= 主程序 =================\n",
|
| 364 |
+
"if __name__ == \"__main__\":\n",
|
| 365 |
+
" cas_csv = \"/data/boom/CIGS/Drug_infoM.xlsx\"\n",
|
| 366 |
+
"\n",
|
| 367 |
+
" # 读取两个sheet\n",
|
| 368 |
+
" sheet1 = pd.read_excel(cas_csv, sheet_name=\"Supplementary Table 3\", header=1)\n",
|
| 369 |
+
" sheet2 = pd.read_excel(cas_csv, sheet_name=\"Supplementary Table 4\", header=1)\n",
|
| 370 |
+
"\n",
|
| 371 |
+
" # 合并\n",
|
| 372 |
+
" merged_df = pd.concat([sheet1, sheet2], ignore_index=True)\n",
|
| 373 |
+
" print(\"合并后的数据集形状:\", merged_df.shape)\n",
|
| 374 |
+
"\n",
|
| 375 |
+
" # 遍历 CAS 列,生成新列\n",
|
| 376 |
+
" smiles_list, cid_list = [], []\n",
|
| 377 |
+
" for cas in merged_df[\"CAS Number\"]:\n",
|
| 378 |
+
" cid, smiles = cas_to_smiles_single(str(cas))\n",
|
| 379 |
+
" cid_list.append(cid)\n",
|
| 380 |
+
" smiles_list.append(smiles)\n",
|
| 381 |
+
"\n",
|
| 382 |
+
" merged_df[\"PubChem_CID\"] = cid_list\n",
|
| 383 |
+
" merged_df[\"SMILES\"] = smiles_list\n",
|
| 384 |
+
"\n",
|
| 385 |
+
" # 保存结果\n",
|
| 386 |
+
" merged_df.to_csv(\"merged_with_smiles.csv\", index=False)\n",
|
| 387 |
+
" print(\"转换完成,已保存为 merged_with_smiles.csv\")"
|
| 388 |
+
]
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"cell_type": "code",
|
| 392 |
+
"execution_count": 10,
|
| 393 |
+
"id": "032a4d8c",
|
| 394 |
+
"metadata": {},
|
| 395 |
+
"outputs": [
|
| 396 |
+
{
|
| 397 |
+
"data": {
|
| 398 |
+
"text/plain": [
|
| 399 |
+
"(11122, 10725)"
|
| 400 |
+
]
|
| 401 |
+
},
|
| 402 |
+
"execution_count": 10,
|
| 403 |
+
"metadata": {},
|
| 404 |
+
"output_type": "execute_result"
|
| 405 |
+
}
|
| 406 |
+
],
|
| 407 |
+
"source": [
|
| 408 |
+
"len(merged_df[\"CAS Number\"].unique()), len(merged_df['SMILES'].unique())"
|
| 409 |
+
]
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"cell_type": "code",
|
| 413 |
+
"execution_count": 12,
|
| 414 |
+
"id": "5e891d70",
|
| 415 |
+
"metadata": {},
|
| 416 |
+
"outputs": [
|
| 417 |
+
{
|
| 418 |
+
"data": {
|
| 419 |
+
"text/plain": [
|
| 420 |
+
"(True, 2)"
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"execution_count": 12,
|
| 424 |
+
"metadata": {},
|
| 425 |
+
"output_type": "execute_result"
|
| 426 |
+
}
|
| 427 |
+
],
|
| 428 |
+
"source": [
|
| 429 |
+
"merged_df['SMILES'].isna().any(), merged_df['SMILES'].isna().sum()"
|
| 430 |
+
]
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"cell_type": "code",
|
| 434 |
+
"execution_count": 14,
|
| 435 |
+
"id": "522c3c6b",
|
| 436 |
+
"metadata": {},
|
| 437 |
+
"outputs": [
|
| 438 |
+
{
|
| 439 |
+
"data": {
|
| 440 |
+
"text/html": [
|
| 441 |
+
"<div>\n",
|
| 442 |
+
"<style scoped>\n",
|
| 443 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
| 444 |
+
" vertical-align: middle;\n",
|
| 445 |
+
" }\n",
|
| 446 |
+
"\n",
|
| 447 |
+
" .dataframe tbody tr th {\n",
|
| 448 |
+
" vertical-align: top;\n",
|
| 449 |
+
" }\n",
|
| 450 |
+
"\n",
|
| 451 |
+
" .dataframe thead th {\n",
|
| 452 |
+
" text-align: right;\n",
|
| 453 |
+
" }\n",
|
| 454 |
+
"</style>\n",
|
| 455 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
| 456 |
+
" <thead>\n",
|
| 457 |
+
" <tr style=\"text-align: right;\">\n",
|
| 458 |
+
" <th></th>\n",
|
| 459 |
+
" <th>Compound name</th>\n",
|
| 460 |
+
" <th>Catalog Number</th>\n",
|
| 461 |
+
" <th>CAS Number</th>\n",
|
| 462 |
+
" <th>MOA</th>\n",
|
| 463 |
+
" <th>Clinical Information</th>\n",
|
| 464 |
+
" <th>Approved Type</th>\n",
|
| 465 |
+
" <th>Catalog Number.1</th>\n",
|
| 466 |
+
" <th>PubChem_CID</th>\n",
|
| 467 |
+
" <th>SMILES</th>\n",
|
| 468 |
+
" </tr>\n",
|
| 469 |
+
" </thead>\n",
|
| 470 |
+
" <tbody>\n",
|
| 471 |
+
" <tr>\n",
|
| 472 |
+
" <th>5991</th>\n",
|
| 473 |
+
" <td>Atuveciclib S-Enantiomer</td>\n",
|
| 474 |
+
" <td>HY_12871C</td>\n",
|
| 475 |
+
" <td>250279-81-1</td>\n",
|
| 476 |
+
" <td>CDK</td>\n",
|
| 477 |
+
" <td>No Development Reported</td>\n",
|
| 478 |
+
" <td>NaN</td>\n",
|
| 479 |
+
" <td>NaN</td>\n",
|
| 480 |
+
" <td>None</td>\n",
|
| 481 |
+
" <td>None</td>\n",
|
| 482 |
+
" </tr>\n",
|
| 483 |
+
" <tr>\n",
|
| 484 |
+
" <th>10734</th>\n",
|
| 485 |
+
" <td>FITC-Dextran (MW 10000)</td>\n",
|
| 486 |
+
" <td>HY_128868</td>\n",
|
| 487 |
+
" <td>60842-46-8</td>\n",
|
| 488 |
+
" <td>Others</td>\n",
|
| 489 |
+
" <td>No Development Reported</td>\n",
|
| 490 |
+
" <td>NaN</td>\n",
|
| 491 |
+
" <td>NaN</td>\n",
|
| 492 |
+
" <td>None</td>\n",
|
| 493 |
+
" <td>None</td>\n",
|
| 494 |
+
" </tr>\n",
|
| 495 |
+
" </tbody>\n",
|
| 496 |
+
"</table>\n",
|
| 497 |
+
"</div>"
|
| 498 |
+
],
|
| 499 |
+
"text/plain": [
|
| 500 |
+
" Compound name Catalog Number CAS Number MOA \\\n",
|
| 501 |
+
"5991 Atuveciclib S-Enantiomer HY_12871C 250279-81-1 CDK \n",
|
| 502 |
+
"10734 FITC-Dextran (MW 10000) HY_128868 60842-46-8 Others \n",
|
| 503 |
+
"\n",
|
| 504 |
+
" Clinical Information Approved Type Catalog Number.1 PubChem_CID \\\n",
|
| 505 |
+
"5991 No Development Reported NaN NaN None \n",
|
| 506 |
+
"10734 No Development Reported NaN NaN None \n",
|
| 507 |
+
"\n",
|
| 508 |
+
" SMILES \n",
|
| 509 |
+
"5991 None \n",
|
| 510 |
+
"10734 None "
|
| 511 |
+
]
|
| 512 |
+
},
|
| 513 |
+
"execution_count": 14,
|
| 514 |
+
"metadata": {},
|
| 515 |
+
"output_type": "execute_result"
|
| 516 |
+
}
|
| 517 |
+
],
|
| 518 |
+
"source": [
|
| 519 |
+
"nan_rows = merged_df[merged_df['SMILES'].isna()]\n",
|
| 520 |
+
"nan_rows"
|
| 521 |
+
]
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"cell_type": "markdown",
|
| 525 |
+
"id": "4380d330",
|
| 526 |
+
"metadata": {},
|
| 527 |
+
"source": [
|
| 528 |
+
"# 通过手动搜索来补全"
|
| 529 |
+
]
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"cell_type": "code",
|
| 533 |
+
"execution_count": 16,
|
| 534 |
+
"id": "977eb4bb",
|
| 535 |
+
"metadata": {},
|
| 536 |
+
"outputs": [
|
| 537 |
+
{
|
| 538 |
+
"name": "stdout",
|
| 539 |
+
"output_type": "stream",
|
| 540 |
+
"text": [
|
| 541 |
+
"Int64Index([5991], dtype='int64')\n",
|
| 542 |
+
"Int64Index([10734], dtype='int64')\n"
|
| 543 |
+
]
|
| 544 |
+
}
|
| 545 |
+
],
|
| 546 |
+
"source": [
|
| 547 |
+
"# 250279-81-1\t: N=[S@@](CC1=CC(NC2=NC(C3=CC=C(F)C=C3OC)=NC=N2)=CC=C1)(C)=O\n",
|
| 548 |
+
"# 60842-46-8: O=C1C2=CC=CC=C2C(=O)C1C3=CC=C(N=C=S)C=C3O 只能把“FITC 核心 + 连接臂”这部分拆开表示\n",
|
| 549 |
+
"\n",
|
| 550 |
+
"# 先确认行号\n",
|
| 551 |
+
"print(merged_df.loc[merged_df['CAS Number'] == '250279-81-1'].index) # 假设返回 5991\n",
|
| 552 |
+
"print(merged_df.loc[merged_df['CAS Number'] == '60842-46-8'].index) # 假设返回 10734\n",
|
| 553 |
+
"\n",
|
| 554 |
+
"# 一次性写进去\n",
|
| 555 |
+
"merged_df.loc[5991, 'SMILES'] = 'N=[S@@](CC1=CC(NC2=NC(C3=CC=C(F)C=C3OC)=NC=N2)=CC=C1)(C)=O'\n",
|
| 556 |
+
"merged_df.loc[10734, 'SMILES'] = 'O=C1C2=CC=CC=C2C(=O)C1C3=CC=C(N=C=S)C=C3O' # FITC 骨架"
|
| 557 |
+
]
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"cell_type": "code",
|
| 561 |
+
"execution_count": 17,
|
| 562 |
+
"id": "e3bffa9d",
|
| 563 |
+
"metadata": {},
|
| 564 |
+
"outputs": [
|
| 565 |
+
{
|
| 566 |
+
"data": {
|
| 567 |
+
"text/plain": [
|
| 568 |
+
"(False, 0)"
|
| 569 |
+
]
|
| 570 |
+
},
|
| 571 |
+
"execution_count": 17,
|
| 572 |
+
"metadata": {},
|
| 573 |
+
"output_type": "execute_result"
|
| 574 |
+
}
|
| 575 |
+
],
|
| 576 |
+
"source": [
|
| 577 |
+
"merged_df['SMILES'].isna().any(), merged_df['SMILES'].isna().sum()"
|
| 578 |
+
]
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"cell_type": "code",
|
| 582 |
+
"execution_count": 18,
|
| 583 |
+
"id": "d9f6a788",
|
| 584 |
+
"metadata": {},
|
| 585 |
+
"outputs": [],
|
| 586 |
+
"source": [
|
| 587 |
+
"merged_df.to_csv(\"CIGS_with_smiles.csv\", index=False)"
|
| 588 |
+
]
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"cell_type": "code",
|
| 592 |
+
"execution_count": 19,
|
| 593 |
+
"id": "014e0723",
|
| 594 |
+
"metadata": {},
|
| 595 |
+
"outputs": [],
|
| 596 |
+
"source": [
|
| 597 |
+
"merged_df['SMILES'].to_csv('CIGS_smiles_list.csv', index=False, header=True)"
|
| 598 |
+
]
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"cell_type": "markdown",
|
| 602 |
+
"id": "bcbfa041",
|
| 603 |
+
"metadata": {},
|
| 604 |
+
"source": [
|
| 605 |
+
"# 检查这些SMILES是否是规范化的\n",
|
| 606 |
+
"\n",
|
| 607 |
+
"## 上面的才是规范化的,用这个,下面这个如果原 SMILES 本身错/含非法字符,MolFromSmiles 直接返回 None,会丢行"
|
| 608 |
+
]
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"cell_type": "code",
|
| 612 |
+
"execution_count": 20,
|
| 613 |
+
"id": "70cc22cb",
|
| 614 |
+
"metadata": {},
|
| 615 |
+
"outputs": [
|
| 616 |
+
{
|
| 617 |
+
"name": "stdout",
|
| 618 |
+
"output_type": "stream",
|
| 619 |
+
"text": [
|
| 620 |
+
"规范化后的 SMILES 数组:\n",
|
| 621 |
+
"13221 13221\n"
|
| 622 |
+
]
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"name": "stderr",
|
| 626 |
+
"output_type": "stream",
|
| 627 |
+
"text": [
|
| 628 |
+
"[12:50:19] WARNING: not removing hydrogen atom without neighbors\n",
|
| 629 |
+
"[12:50:19] WARNING: not removing hydrogen atom without neighbors\n",
|
| 630 |
+
"[12:50:19] WARNING: not removing hydrogen atom without neighbors\n"
|
| 631 |
+
]
|
| 632 |
+
}
|
| 633 |
+
],
|
| 634 |
+
"source": [
|
| 635 |
+
"# import numpy as np\n",
|
| 636 |
+
"# from rdkit import Chem\n",
|
| 637 |
+
"\n",
|
| 638 |
+
"# # 假设你的 results_CP['smiles'] 数组如你所示\n",
|
| 639 |
+
"# smiles_array = np.array(merged_df['SMILES'])\n",
|
| 640 |
+
"\n",
|
| 641 |
+
"# # 存储规范化后的 SMILES\n",
|
| 642 |
+
"# canonical_smiles_list = []\n",
|
| 643 |
+
"\n",
|
| 644 |
+
"# # 遍历数组中的每一个 SMILES\n",
|
| 645 |
+
"# for byte_smiles in smiles_array:\n",
|
| 646 |
+
"# # Chem.MolFromSmiles() 会处理非规范的 SMILES,并返回一个分子对象\n",
|
| 647 |
+
"# mol = Chem.MolFromSmiles(byte_smiles)\n",
|
| 648 |
+
"\n",
|
| 649 |
+
"# # 3. 如果解析成功,生成规范 SMILES\n",
|
| 650 |
+
"# if mol is not None:\n",
|
| 651 |
+
"# # Chem.MolToSmiles() 默认生成规范 SMILES\n",
|
| 652 |
+
"# canonical_smiles = Chem.MolToSmiles(mol)\n",
|
| 653 |
+
"# canonical_smiles_list.append(canonical_smiles)\n",
|
| 654 |
+
"# else:\n",
|
| 655 |
+
"# # 如果 SMILES 无效,可以添加 None 或原始字符串\n",
|
| 656 |
+
"# print(f\"警告: 无法解析 SMILES: {byte_smiles}\")\n",
|
| 657 |
+
"# canonical_smiles_list.append(None) # 或者 smiles_str\n",
|
| 658 |
+
"\n",
|
| 659 |
+
"# # 将列表转换回 NumPy 数组\n",
|
| 660 |
+
"# # dtype='O' 可以存储不同长度的字符串\n",
|
| 661 |
+
"# canonical_smiles_array = np.array(canonical_smiles_list, dtype='O')\n",
|
| 662 |
+
"\n",
|
| 663 |
+
"# print(\"规范化后的 SMILES 数组:\")\n",
|
| 664 |
+
"# print(len(smiles_array), len(canonical_smiles_array))"
|
| 665 |
+
]
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"cell_type": "code",
|
| 669 |
+
"execution_count": null,
|
| 670 |
+
"id": "7014f8af",
|
| 671 |
+
"metadata": {},
|
| 672 |
+
"outputs": [],
|
| 673 |
+
"source": []
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"cell_type": "markdown",
|
| 677 |
+
"id": "ea42c2fb",
|
| 678 |
+
"metadata": {},
|
| 679 |
+
"source": [
|
| 680 |
+
"# 中药没有给CAS,所以漏了SMIELS,先用名字生成CAS,然后再生成SMIELS"
|
| 681 |
+
]
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"cell_type": "code",
|
| 685 |
+
"execution_count": 29,
|
| 686 |
+
"id": "dacc1145",
|
| 687 |
+
"metadata": {},
|
| 688 |
+
"outputs": [
|
| 689 |
+
{
|
| 690 |
+
"data": {
|
| 691 |
+
"text/html": [
|
| 692 |
+
"<div>\n",
|
| 693 |
+
"<style scoped>\n",
|
| 694 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
| 695 |
+
" vertical-align: middle;\n",
|
| 696 |
+
" }\n",
|
| 697 |
+
"\n",
|
| 698 |
+
" .dataframe tbody tr th {\n",
|
| 699 |
+
" vertical-align: top;\n",
|
| 700 |
+
" }\n",
|
| 701 |
+
"\n",
|
| 702 |
+
" .dataframe thead th {\n",
|
| 703 |
+
" text-align: right;\n",
|
| 704 |
+
" }\n",
|
| 705 |
+
"</style>\n",
|
| 706 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
| 707 |
+
" <thead>\n",
|
| 708 |
+
" <tr style=\"text-align: right;\">\n",
|
| 709 |
+
" <th></th>\n",
|
| 710 |
+
" <th>Compound name</th>\n",
|
| 711 |
+
" <th>Catalog Number</th>\n",
|
| 712 |
+
" <th>CAS Number</th>\n",
|
| 713 |
+
" <th>MOA</th>\n",
|
| 714 |
+
" <th>Clinical Information</th>\n",
|
| 715 |
+
" <th>Approved Type</th>\n",
|
| 716 |
+
" <th>Catalog Number.1</th>\n",
|
| 717 |
+
" <th>PubChem_CID</th>\n",
|
| 718 |
+
" <th>SMILES</th>\n",
|
| 719 |
+
" </tr>\n",
|
| 720 |
+
" </thead>\n",
|
| 721 |
+
" <tbody>\n",
|
| 722 |
+
" <tr>\n",
|
| 723 |
+
" <th>11356</th>\n",
|
| 724 |
+
" <td>Acteoside</td>\n",
|
| 725 |
+
" <td>Cpd0001</td>\n",
|
| 726 |
+
" <td>NaN</td>\n",
|
| 727 |
+
" <td>NaN</td>\n",
|
| 728 |
+
" <td>NaN</td>\n",
|
| 729 |
+
" <td>NaN</td>\n",
|
| 730 |
+
" <td>61276-17-3</td>\n",
|
| 731 |
+
" <td>445063</td>\n",
|
| 732 |
+
" <td>CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O</td>\n",
|
| 733 |
+
" </tr>\n",
|
| 734 |
+
" <tr>\n",
|
| 735 |
+
" <th>11357</th>\n",
|
| 736 |
+
" <td>Asiaticoside B</td>\n",
|
| 737 |
+
" <td>Cpd0002</td>\n",
|
| 738 |
+
" <td>NaN</td>\n",
|
| 739 |
+
" <td>NaN</td>\n",
|
| 740 |
+
" <td>NaN</td>\n",
|
| 741 |
+
" <td>NaN</td>\n",
|
| 742 |
+
" <td>125265-68-1</td>\n",
|
| 743 |
+
" <td>445063</td>\n",
|
| 744 |
+
" <td>CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O</td>\n",
|
| 745 |
+
" </tr>\n",
|
| 746 |
+
" <tr>\n",
|
| 747 |
+
" <th>11358</th>\n",
|
| 748 |
+
" <td>Brandioside</td>\n",
|
| 749 |
+
" <td>Cpd0003</td>\n",
|
| 750 |
+
" <td>NaN</td>\n",
|
| 751 |
+
" <td>NaN</td>\n",
|
| 752 |
+
" <td>NaN</td>\n",
|
| 753 |
+
" <td>NaN</td>\n",
|
| 754 |
+
" <td>133393-81-4</td>\n",
|
| 755 |
+
" <td>445063</td>\n",
|
| 756 |
+
" <td>CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O</td>\n",
|
| 757 |
+
" </tr>\n",
|
| 758 |
+
" <tr>\n",
|
| 759 |
+
" <th>11359</th>\n",
|
| 760 |
+
" <td>Clematichinenos\\nide AR</td>\n",
|
| 761 |
+
" <td>Cpd0004</td>\n",
|
| 762 |
+
" <td>NaN</td>\n",
|
| 763 |
+
" <td>NaN</td>\n",
|
| 764 |
+
" <td>NaN</td>\n",
|
| 765 |
+
" <td>NaN</td>\n",
|
| 766 |
+
" <td>761425-93-8</td>\n",
|
| 767 |
+
" <td>445063</td>\n",
|
| 768 |
+
" <td>CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O</td>\n",
|
| 769 |
+
" </tr>\n",
|
| 770 |
+
" <tr>\n",
|
| 771 |
+
" <th>11360</th>\n",
|
| 772 |
+
" <td>Saikosaponin\\nB1</td>\n",
|
| 773 |
+
" <td>Cpd0005</td>\n",
|
| 774 |
+
" <td>NaN</td>\n",
|
| 775 |
+
" <td>NaN</td>\n",
|
| 776 |
+
" <td>NaN</td>\n",
|
| 777 |
+
" <td>NaN</td>\n",
|
| 778 |
+
" <td>58558-08-0</td>\n",
|
| 779 |
+
" <td>445063</td>\n",
|
| 780 |
+
" <td>CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O</td>\n",
|
| 781 |
+
" </tr>\n",
|
| 782 |
+
" </tbody>\n",
|
| 783 |
+
"</table>\n",
|
| 784 |
+
"</div>"
|
| 785 |
+
],
|
| 786 |
+
"text/plain": [
|
| 787 |
+
" Compound name Catalog Number CAS Number MOA \\\n",
|
| 788 |
+
"11356 Acteoside Cpd0001 NaN NaN \n",
|
| 789 |
+
"11357 Asiaticoside B Cpd0002 NaN NaN \n",
|
| 790 |
+
"11358 Brandioside Cpd0003 NaN NaN \n",
|
| 791 |
+
"11359 Clematichinenos\\nide AR Cpd0004 NaN NaN \n",
|
| 792 |
+
"11360 Saikosaponin\\nB1 Cpd0005 NaN NaN \n",
|
| 793 |
+
"\n",
|
| 794 |
+
" Clinical Information Approved Type Catalog Number.1 PubChem_CID \\\n",
|
| 795 |
+
"11356 NaN NaN 61276-17-3 445063 \n",
|
| 796 |
+
"11357 NaN NaN 125265-68-1 445063 \n",
|
| 797 |
+
"11358 NaN NaN 133393-81-4 445063 \n",
|
| 798 |
+
"11359 NaN NaN 761425-93-8 445063 \n",
|
| 799 |
+
"11360 NaN NaN 58558-08-0 445063 \n",
|
| 800 |
+
"\n",
|
| 801 |
+
" SMILES \n",
|
| 802 |
+
"11356 CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O \n",
|
| 803 |
+
"11357 CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O \n",
|
| 804 |
+
"11358 CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O \n",
|
| 805 |
+
"11359 CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O \n",
|
| 806 |
+
"11360 CC(=O)NC1C(CC(OC1C(C(CO)O)O)(C(=O)O)O)O "
|
| 807 |
+
]
|
| 808 |
+
},
|
| 809 |
+
"execution_count": 29,
|
| 810 |
+
"metadata": {},
|
| 811 |
+
"output_type": "execute_result"
|
| 812 |
+
}
|
| 813 |
+
],
|
| 814 |
+
"source": [
|
| 815 |
+
"# merged_df.head()\n",
|
| 816 |
+
"\n",
|
| 817 |
+
"# 把merged_df中的Catalog Number列中以“Cpd”开头的行提取出来\n",
|
| 818 |
+
"merged_df_cpd = merged_df[merged_df['Catalog Number'].str.startswith('Cpd')]\n",
|
| 819 |
+
"merged_df_cpd.head()"
|
| 820 |
+
]
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"cell_type": "markdown",
|
| 824 |
+
"id": "485f1864",
|
| 825 |
+
"metadata": {},
|
| 826 |
+
"source": [
|
| 827 |
+
"## name to SMILES"
|
| 828 |
+
]
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"cell_type": "code",
|
| 832 |
+
"execution_count": null,
|
| 833 |
+
"id": "26725140",
|
| 834 |
+
"metadata": {},
|
| 835 |
+
"outputs": [],
|
| 836 |
+
"source": [
|
| 837 |
+
"import re, requests, pandas as pd, time\n",
|
| 838 |
+
"\n",
|
| 839 |
+
"# 去掉换行、多余空格、括号备注\n",
|
| 840 |
+
"def clean_name(n):\n",
|
| 841 |
+
" return re.sub(r'\\s+', ' ', n.split('(')[0]).strip()\n",
|
| 842 |
+
"\n",
|
| 843 |
+
"name_list = [clean_name(n) for n in merged_df_cpd['Compound name'].tolist()]\n",
|
| 844 |
+
"name_list = [n for n in name_list if 2 <= len(n) <= 200] # 去掉极端长/短\n",
|
| 845 |
+
"\n",
|
| 846 |
+
"BATCH = 50\n",
|
| 847 |
+
"URL = \"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/property/CanonicalSMILES/TXT\"\n",
|
| 848 |
+
"\n",
|
| 849 |
+
"def names2smiles_post(names):\n",
|
| 850 |
+
" smi_map = {}\n",
|
| 851 |
+
" for i in range(0, len(names), BATCH):\n",
|
| 852 |
+
" chunk = names[i:i+BATCH]\n",
|
| 853 |
+
" payload = '\\n'.join(chunk) # POST 正文\n",
|
| 854 |
+
" r = requests.post(URL, data=payload, headers={'Content-Type': 'text/plain'}, timeout=60)\n",
|
| 855 |
+
" if r.status_code == 200:\n",
|
| 856 |
+
" for line in r.text.strip().split('\\n'):\n",
|
| 857 |
+
" if '\\t' in line:\n",
|
| 858 |
+
" n_query, smi = line.split('\\t')\n",
|
| 859 |
+
" if smi != 'N/A':\n",
|
| 860 |
+
" smi_map[n_query] = smi\n",
|
| 861 |
+
" else:\n",
|
| 862 |
+
" print(f\"批次 {i//BATCH + 1} 失败:{r.status_code}\")\n",
|
| 863 |
+
" time.sleep(0.5)\n",
|
| 864 |
+
" return smi_map\n",
|
| 865 |
+
"\n",
|
| 866 |
+
"smiles_dict = names2smiles_post(name_list)\n",
|
| 867 |
+
"print('命中率:', len(smiles_dict)/len(name_list))"
|
| 868 |
+
]
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"cell_type": "markdown",
|
| 872 |
+
"id": "43405512",
|
| 873 |
+
"metadata": {},
|
| 874 |
+
"source": [
|
| 875 |
+
"# 失败,放弃中药"
|
| 876 |
+
]
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"cell_type": "code",
|
| 880 |
+
"execution_count": null,
|
| 881 |
+
"id": "e1dcdb41",
|
| 882 |
+
"metadata": {},
|
| 883 |
+
"outputs": [],
|
| 884 |
+
"source": []
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"cell_type": "code",
|
| 888 |
+
"execution_count": 1,
|
| 889 |
+
"id": "c3bf93e0",
|
| 890 |
+
"metadata": {},
|
| 891 |
+
"outputs": [],
|
| 892 |
+
"source": [
|
| 893 |
+
"import pandas as pd\n",
|
| 894 |
+
"import os\n",
|
| 895 |
+
"import numpy as np\n",
|
| 896 |
+
"import pyarrow as pa\n",
|
| 897 |
+
"import pyarrow.parquet as pq\n",
|
| 898 |
+
"\n",
|
| 899 |
+
"file_path = \"/data/boom/CIGS/MDA-MB-231-JQ1-RNA-seq-RawCounts.xlsx\"\n",
|
| 900 |
+
"\n",
|
| 901 |
+
"meta = pd.read_excel(file_path, sheet_name=0, engine='openpyxl',\n",
|
| 902 |
+
" header=1)"
|
| 903 |
+
]
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"cell_type": "code",
|
| 907 |
+
"execution_count": 2,
|
| 908 |
+
"id": "7e226bfa",
|
| 909 |
+
"metadata": {},
|
| 910 |
+
"outputs": [
|
| 911 |
+
{
|
| 912 |
+
"data": {
|
| 913 |
+
"text/html": [
|
| 914 |
+
"<div>\n",
|
| 915 |
+
"<style scoped>\n",
|
| 916 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
| 917 |
+
" vertical-align: middle;\n",
|
| 918 |
+
" }\n",
|
| 919 |
+
"\n",
|
| 920 |
+
" .dataframe tbody tr th {\n",
|
| 921 |
+
" vertical-align: top;\n",
|
| 922 |
+
" }\n",
|
| 923 |
+
"\n",
|
| 924 |
+
" .dataframe thead th {\n",
|
| 925 |
+
" text-align: right;\n",
|
| 926 |
+
" }\n",
|
| 927 |
+
"</style>\n",
|
| 928 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
| 929 |
+
" <thead>\n",
|
| 930 |
+
" <tr style=\"text-align: right;\">\n",
|
| 931 |
+
" <th></th>\n",
|
| 932 |
+
" <th>Ensembl</th>\n",
|
| 933 |
+
" <th>DMSO_1</th>\n",
|
| 934 |
+
" <th>DMSO_2</th>\n",
|
| 935 |
+
" <th>DMSO_3</th>\n",
|
| 936 |
+
" <th>JQ1_1</th>\n",
|
| 937 |
+
" <th>JQ1_2</th>\n",
|
| 938 |
+
" <th>JQ1_3</th>\n",
|
| 939 |
+
" </tr>\n",
|
| 940 |
+
" </thead>\n",
|
| 941 |
+
" <tbody>\n",
|
| 942 |
+
" <tr>\n",
|
| 943 |
+
" <th>0</th>\n",
|
| 944 |
+
" <td>ENSG00000000003.15</td>\n",
|
| 945 |
+
" <td>335</td>\n",
|
| 946 |
+
" <td>334</td>\n",
|
| 947 |
+
" <td>428</td>\n",
|
| 948 |
+
" <td>285</td>\n",
|
| 949 |
+
" <td>261</td>\n",
|
| 950 |
+
" <td>330</td>\n",
|
| 951 |
+
" </tr>\n",
|
| 952 |
+
" <tr>\n",
|
| 953 |
+
" <th>1</th>\n",
|
| 954 |
+
" <td>ENSG00000000005.6</td>\n",
|
| 955 |
+
" <td>0</td>\n",
|
| 956 |
+
" <td>0</td>\n",
|
| 957 |
+
" <td>0</td>\n",
|
| 958 |
+
" <td>0</td>\n",
|
| 959 |
+
" <td>0</td>\n",
|
| 960 |
+
" <td>0</td>\n",
|
| 961 |
+
" </tr>\n",
|
| 962 |
+
" <tr>\n",
|
| 963 |
+
" <th>2</th>\n",
|
| 964 |
+
" <td>ENSG00000000419.13</td>\n",
|
| 965 |
+
" <td>1624</td>\n",
|
| 966 |
+
" <td>1615</td>\n",
|
| 967 |
+
" <td>1781</td>\n",
|
| 968 |
+
" <td>1512</td>\n",
|
| 969 |
+
" <td>1471</td>\n",
|
| 970 |
+
" <td>1763</td>\n",
|
| 971 |
+
" </tr>\n",
|
| 972 |
+
" <tr>\n",
|
| 973 |
+
" <th>3</th>\n",
|
| 974 |
+
" <td>ENSG00000000457.14</td>\n",
|
| 975 |
+
" <td>69</td>\n",
|
| 976 |
+
" <td>100</td>\n",
|
| 977 |
+
" <td>126</td>\n",
|
| 978 |
+
" <td>90</td>\n",
|
| 979 |
+
" <td>107</td>\n",
|
| 980 |
+
" <td>152</td>\n",
|
| 981 |
+
" </tr>\n",
|
| 982 |
+
" <tr>\n",
|
| 983 |
+
" <th>4</th>\n",
|
| 984 |
+
" <td>ENSG00000000460.17</td>\n",
|
| 985 |
+
" <td>314</td>\n",
|
| 986 |
+
" <td>301</td>\n",
|
| 987 |
+
" <td>338</td>\n",
|
| 988 |
+
" <td>74</td>\n",
|
| 989 |
+
" <td>63</td>\n",
|
| 990 |
+
" <td>89</td>\n",
|
| 991 |
+
" </tr>\n",
|
| 992 |
+
" <tr>\n",
|
| 993 |
+
" <th>...</th>\n",
|
| 994 |
+
" <td>...</td>\n",
|
| 995 |
+
" <td>...</td>\n",
|
| 996 |
+
" <td>...</td>\n",
|
| 997 |
+
" <td>...</td>\n",
|
| 998 |
+
" <td>...</td>\n",
|
| 999 |
+
" <td>...</td>\n",
|
| 1000 |
+
" <td>...</td>\n",
|
| 1001 |
+
" </tr>\n",
|
| 1002 |
+
" <tr>\n",
|
| 1003 |
+
" <th>60646</th>\n",
|
| 1004 |
+
" <td>ENSG00000288695.1</td>\n",
|
| 1005 |
+
" <td>0</td>\n",
|
| 1006 |
+
" <td>0</td>\n",
|
| 1007 |
+
" <td>0</td>\n",
|
| 1008 |
+
" <td>0</td>\n",
|
| 1009 |
+
" <td>0</td>\n",
|
| 1010 |
+
" <td>0</td>\n",
|
| 1011 |
+
" </tr>\n",
|
| 1012 |
+
" <tr>\n",
|
| 1013 |
+
" <th>60647</th>\n",
|
| 1014 |
+
" <td>ENSG00000288696.1</td>\n",
|
| 1015 |
+
" <td>0</td>\n",
|
| 1016 |
+
" <td>0</td>\n",
|
| 1017 |
+
" <td>0</td>\n",
|
| 1018 |
+
" <td>0</td>\n",
|
| 1019 |
+
" <td>0</td>\n",
|
| 1020 |
+
" <td>0</td>\n",
|
| 1021 |
+
" </tr>\n",
|
| 1022 |
+
" <tr>\n",
|
| 1023 |
+
" <th>60648</th>\n",
|
| 1024 |
+
" <td>ENSG00000288697.1</td>\n",
|
| 1025 |
+
" <td>0</td>\n",
|
| 1026 |
+
" <td>0</td>\n",
|
| 1027 |
+
" <td>0</td>\n",
|
| 1028 |
+
" <td>0</td>\n",
|
| 1029 |
+
" <td>0</td>\n",
|
| 1030 |
+
" <td>0</td>\n",
|
| 1031 |
+
" </tr>\n",
|
| 1032 |
+
" <tr>\n",
|
| 1033 |
+
" <th>60649</th>\n",
|
| 1034 |
+
" <td>ENSG00000288698.1</td>\n",
|
| 1035 |
+
" <td>0</td>\n",
|
| 1036 |
+
" <td>1</td>\n",
|
| 1037 |
+
" <td>1</td>\n",
|
| 1038 |
+
" <td>0</td>\n",
|
| 1039 |
+
" <td>0</td>\n",
|
| 1040 |
+
" <td>0</td>\n",
|
| 1041 |
+
" </tr>\n",
|
| 1042 |
+
" <tr>\n",
|
| 1043 |
+
" <th>60650</th>\n",
|
| 1044 |
+
" <td>ENSG00000288699.1</td>\n",
|
| 1045 |
+
" <td>0</td>\n",
|
| 1046 |
+
" <td>0</td>\n",
|
| 1047 |
+
" <td>0</td>\n",
|
| 1048 |
+
" <td>0</td>\n",
|
| 1049 |
+
" <td>0</td>\n",
|
| 1050 |
+
" <td>0</td>\n",
|
| 1051 |
+
" </tr>\n",
|
| 1052 |
+
" </tbody>\n",
|
| 1053 |
+
"</table>\n",
|
| 1054 |
+
"<p>60651 rows × 7 columns</p>\n",
|
| 1055 |
+
"</div>"
|
| 1056 |
+
],
|
| 1057 |
+
"text/plain": [
|
| 1058 |
+
" Ensembl DMSO_1 DMSO_2 DMSO_3 JQ1_1 JQ1_2 JQ1_3\n",
|
| 1059 |
+
"0 ENSG00000000003.15 335 334 428 285 261 330\n",
|
| 1060 |
+
"1 ENSG00000000005.6 0 0 0 0 0 0\n",
|
| 1061 |
+
"2 ENSG00000000419.13 1624 1615 1781 1512 1471 1763\n",
|
| 1062 |
+
"3 ENSG00000000457.14 69 100 126 90 107 152\n",
|
| 1063 |
+
"4 ENSG00000000460.17 314 301 338 74 63 89\n",
|
| 1064 |
+
"... ... ... ... ... ... ... ...\n",
|
| 1065 |
+
"60646 ENSG00000288695.1 0 0 0 0 0 0\n",
|
| 1066 |
+
"60647 ENSG00000288696.1 0 0 0 0 0 0\n",
|
| 1067 |
+
"60648 ENSG00000288697.1 0 0 0 0 0 0\n",
|
| 1068 |
+
"60649 ENSG00000288698.1 0 1 1 0 0 0\n",
|
| 1069 |
+
"60650 ENSG00000288699.1 0 0 0 0 0 0\n",
|
| 1070 |
+
"\n",
|
| 1071 |
+
"[60651 rows x 7 columns]"
|
| 1072 |
+
]
|
| 1073 |
+
},
|
| 1074 |
+
"execution_count": 2,
|
| 1075 |
+
"metadata": {},
|
| 1076 |
+
"output_type": "execute_result"
|
| 1077 |
+
}
|
| 1078 |
+
],
|
| 1079 |
+
"source": [
|
| 1080 |
+
"meta"
|
| 1081 |
+
]
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"cell_type": "code",
|
| 1085 |
+
"execution_count": null,
|
| 1086 |
+
"id": "2b4d7a01",
|
| 1087 |
+
"metadata": {},
|
| 1088 |
+
"outputs": [],
|
| 1089 |
+
"source": []
|
| 1090 |
+
}
|
| 1091 |
+
],
|
| 1092 |
+
"metadata": {
|
| 1093 |
+
"kernelspec": {
|
| 1094 |
+
"display_name": "boom",
|
| 1095 |
+
"language": "python",
|
| 1096 |
+
"name": "python3"
|
| 1097 |
+
},
|
| 1098 |
+
"language_info": {
|
| 1099 |
+
"codemirror_mode": {
|
| 1100 |
+
"name": "ipython",
|
| 1101 |
+
"version": 3
|
| 1102 |
+
},
|
| 1103 |
+
"file_extension": ".py",
|
| 1104 |
+
"mimetype": "text/x-python",
|
| 1105 |
+
"name": "python",
|
| 1106 |
+
"nbconvert_exporter": "python",
|
| 1107 |
+
"pygments_lexer": "ipython3",
|
| 1108 |
+
"version": "3.11.10"
|
| 1109 |
+
}
|
| 1110 |
+
},
|
| 1111 |
+
"nbformat": 4,
|
| 1112 |
+
"nbformat_minor": 5
|
| 1113 |
+
}
|
CIGS/1.1_make_paired_data_HEK293T.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CIGS/1_make_paired_data_MDA-MB-231.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CIGS/1_make_paired_data_中药.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CIGS/CIGS_Gene_names.csv
ADDED
|
@@ -0,0 +1,3408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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RP
|
| 113 |
+
AGT
|
| 114 |
+
AGTR1
|
| 115 |
+
AGTR2
|
| 116 |
+
AGTRAP
|
| 117 |
+
AHNAK
|
| 118 |
+
AHR
|
| 119 |
+
AHSG
|
| 120 |
+
AICDA
|
| 121 |
+
AIFM1
|
| 122 |
+
AIM2
|
| 123 |
+
AIMP1
|
| 124 |
+
AIMP2
|
| 125 |
+
AIPL1
|
| 126 |
+
AJAP1
|
| 127 |
+
AJUBA
|
| 128 |
+
AK2
|
| 129 |
+
AK4
|
| 130 |
+
AKAP8
|
| 131 |
+
AKAP8L
|
| 132 |
+
AKR1B1
|
| 133 |
+
AKR1C2
|
| 134 |
+
AKR1D1
|
| 135 |
+
AKR7A2
|
| 136 |
+
AKT1
|
| 137 |
+
AKT1S1
|
| 138 |
+
AKT2
|
| 139 |
+
AKT3
|
| 140 |
+
ALAS1
|
| 141 |
+
ALDH2
|
| 142 |
+
ALDH3A2
|
| 143 |
+
ALDH7A1
|
| 144 |
+
ALDH8A1
|
| 145 |
+
ALDOA
|
| 146 |
+
ALDOB
|
| 147 |
+
ALDOC
|
| 148 |
+
ALG13
|
| 149 |
+
ALK
|
| 150 |
+
ALOX5
|
| 151 |
+
AMBRA1
|
| 152 |
+
AMDHD2
|
| 153 |
+
AMH
|
| 154 |
+
AMHR2
|
| 155 |
+
AMOT
|
| 156 |
+
AMOTL1
|
| 157 |
+
AMOTL2
|
| 158 |
+
AMPD3
|
| 159 |
+
ANAPC1
|
| 160 |
+
ANAPC2
|
| 161 |
+
ANG
|
| 162 |
+
ANGPT1
|
| 163 |
+
ANGPT2
|
| 164 |
+
ANGPTL1
|
| 165 |
+
ANGPTL3
|
| 166 |
+
ANGPTL4
|
| 167 |
+
ANKRA2
|
| 168 |
+
ANKRD10
|
| 169 |
+
ANO10
|
| 170 |
+
ANPEP
|
| 171 |
+
ANTXR1
|
| 172 |
+
ANXA1
|
| 173 |
+
ANXA4
|
| 174 |
+
ANXA5
|
| 175 |
+
ANXA7
|
| 176 |
+
AP1B1
|
| 177 |
+
APAF1
|
| 178 |
+
APBA1
|
| 179 |
+
APBB2
|
| 180 |
+
APC
|
| 181 |
+
APCS
|
| 182 |
+
APEX1
|
| 183 |
+
APEX2
|
| 184 |
+
APOA1
|
| 185 |
+
APOA2
|
| 186 |
+
APOA4
|
| 187 |
+
APOA5
|
| 188 |
+
APOB
|
| 189 |
+
APOC3
|
| 190 |
+
APOD
|
| 191 |
+
APOE
|
| 192 |
+
APOF
|
| 193 |
+
APOL1
|
| 194 |
+
APOL2
|
| 195 |
+
APOL3
|
| 196 |
+
APOL4
|
| 197 |
+
APOL5
|
| 198 |
+
APP
|
| 199 |
+
APPBP2
|
| 200 |
+
AQP1
|
| 201 |
+
AQP2
|
| 202 |
+
AQP4
|
| 203 |
+
AR
|
| 204 |
+
ARAF
|
| 205 |
+
AREG
|
| 206 |
+
ARF6
|
| 207 |
+
ARFIP2
|
| 208 |
+
ARG1
|
| 209 |
+
ARHGAP1
|
| 210 |
+
ARHGAP5
|
| 211 |
+
ARHGDIA
|
| 212 |
+
ARHGDIB
|
| 213 |
+
ARHGEF12
|
| 214 |
+
ARHGEF2
|
| 215 |
+
ARHGEF7
|
| 216 |
+
ARID4B
|
| 217 |
+
ARID5B
|
| 218 |
+
ARL4C
|
| 219 |
+
ARNT
|
| 220 |
+
ARNT2
|
| 221 |
+
ARNTL
|
| 222 |
+
ARPP19
|
| 223 |
+
ARRB1
|
| 224 |
+
ARRB2
|
| 225 |
+
ARRDC3
|
| 226 |
+
ARVCF
|
| 227 |
+
ASAH1
|
| 228 |
+
ASAP1
|
| 229 |
+
ASB13
|
| 230 |
+
ASB2
|
| 231 |
+
ASCC3
|
| 232 |
+
ASH1L
|
| 233 |
+
ASPH
|
| 234 |
+
ATF1
|
| 235 |
+
ATF2
|
| 236 |
+
ATF3
|
| 237 |
+
ATF4
|
| 238 |
+
ATF5
|
| 239 |
+
ATF6
|
| 240 |
+
ATF6B
|
| 241 |
+
ATG10
|
| 242 |
+
ATG12
|
| 243 |
+
ATG16L1
|
| 244 |
+
ATG16L2
|
| 245 |
+
ATG3
|
| 246 |
+
ATG4A
|
| 247 |
+
ATG4B
|
| 248 |
+
ATG4C
|
| 249 |
+
ATG4D
|
| 250 |
+
ATG5
|
| 251 |
+
ATG7
|
| 252 |
+
ATG9A
|
| 253 |
+
ATG9B
|
| 254 |
+
ATM
|
| 255 |
+
ATMIN
|
| 256 |
+
ATP11B
|
| 257 |
+
ATP1B1
|
| 258 |
+
ATP2B1
|
| 259 |
+
ATP2C1
|
| 260 |
+
ATP5A1
|
| 261 |
+
ATP5C1
|
| 262 |
+
ATP5G2
|
| 263 |
+
ATP5S
|
| 264 |
+
ATP6V0B
|
| 265 |
+
ATP6V1A
|
| 266 |
+
ATP6V1D
|
| 267 |
+
ATP6V1F
|
| 268 |
+
ATP6V1G2
|
| 269 |
+
ATR
|
| 270 |
+
ATRIP
|
| 271 |
+
ATRN
|
| 272 |
+
ATRX
|
| 273 |
+
ATXN3
|
| 274 |
+
AURKA
|
| 275 |
+
AURKB
|
| 276 |
+
AXIN1
|
| 277 |
+
AXIN2
|
| 278 |
+
AXL
|
| 279 |
+
B3GALTL
|
| 280 |
+
B3GNT1
|
| 281 |
+
B3GNT2
|
| 282 |
+
B3GNT3
|
| 283 |
+
B3GNT4
|
| 284 |
+
B3GNT8
|
| 285 |
+
B4GALT1
|
| 286 |
+
B4GALT2
|
| 287 |
+
B4GALT3
|
| 288 |
+
B4GALT5
|
| 289 |
+
BAALC
|
| 290 |
+
BACE2
|
| 291 |
+
BACH1
|
| 292 |
+
BAD
|
| 293 |
+
BAG1
|
| 294 |
+
BAG3
|
| 295 |
+
BAG4
|
| 296 |
+
BAI1
|
| 297 |
+
BAIAP2
|
| 298 |
+
BAK1
|
| 299 |
+
BAMBI
|
| 300 |
+
BARD1
|
| 301 |
+
BAX
|
| 302 |
+
BBC3
|
| 303 |
+
BCAR1
|
| 304 |
+
BCAT1
|
| 305 |
+
BCCIP
|
| 306 |
+
BCL10
|
| 307 |
+
BCL2
|
| 308 |
+
BCL2A1
|
| 309 |
+
BCL2L1
|
| 310 |
+
BCL2L10
|
| 311 |
+
BCL2L11
|
| 312 |
+
BCL2L2
|
| 313 |
+
BCL3
|
| 314 |
+
BCL6
|
| 315 |
+
BCL7B
|
| 316 |
+
BCL9
|
| 317 |
+
BCR
|
| 318 |
+
BDH1
|
| 319 |
+
BDH2
|
| 320 |
+
BDNF
|
| 321 |
+
BECN1
|
| 322 |
+
BFAR
|
| 323 |
+
BGLAP
|
| 324 |
+
BHLHE40
|
| 325 |
+
BID
|
| 326 |
+
BIK
|
| 327 |
+
BIRC2
|
| 328 |
+
BIRC3
|
| 329 |
+
BIRC5
|
| 330 |
+
BIRC6
|
| 331 |
+
BLCAP
|
| 332 |
+
BLK
|
| 333 |
+
BLM
|
| 334 |
+
BLMH
|
| 335 |
+
BLNK
|
| 336 |
+
BLVRA
|
| 337 |
+
BMF
|
| 338 |
+
BMI1
|
| 339 |
+
BMP1
|
| 340 |
+
BMP2
|
| 341 |
+
BMP3
|
| 342 |
+
BMP4
|
| 343 |
+
BMP5
|
| 344 |
+
BMP6
|
| 345 |
+
BMP7
|
| 346 |
+
BMPER
|
| 347 |
+
BMPR1A
|
| 348 |
+
BMPR1B
|
| 349 |
+
BMPR2
|
| 350 |
+
BNIP2
|
| 351 |
+
BNIP3
|
| 352 |
+
BNIP3L
|
| 353 |
+
BOD1
|
| 354 |
+
BPGM
|
| 355 |
+
BPHL
|
| 356 |
+
BRAF
|
| 357 |
+
BRCA1
|
| 358 |
+
BRCA2
|
| 359 |
+
BRD2
|
| 360 |
+
BRE
|
| 361 |
+
BRIP1
|
| 362 |
+
BRMS1
|
| 363 |
+
BRP44
|
| 364 |
+
BRS3
|
| 365 |
+
BSG
|
| 366 |
+
BTG1
|
| 367 |
+
BTG2
|
| 368 |
+
BTG3
|
| 369 |
+
BTK
|
| 370 |
+
BTLA
|
| 371 |
+
BTNL10
|
| 372 |
+
BTRC
|
| 373 |
+
BUB1B
|
| 374 |
+
BZRAP1
|
| 375 |
+
BZW2
|
| 376 |
+
C17ORF85
|
| 377 |
+
C19ORF24
|
| 378 |
+
C1D
|
| 379 |
+
C1GALT1
|
| 380 |
+
C1GALT1C1
|
| 381 |
+
C1ORF159
|
| 382 |
+
C1QA
|
| 383 |
+
C2CD2
|
| 384 |
+
C2CD2L
|
| 385 |
+
C3
|
| 386 |
+
C3AR1
|
| 387 |
+
C5
|
| 388 |
+
C5AR1
|
| 389 |
+
C7ORF50
|
| 390 |
+
C9
|
| 391 |
+
CA4
|
| 392 |
+
CA9
|
| 393 |
+
CAB39
|
| 394 |
+
CAB39L
|
| 395 |
+
CACNA1F
|
| 396 |
+
CACNA2D3
|
| 397 |
+
CAD
|
| 398 |
+
CADM1
|
| 399 |
+
CALCA
|
| 400 |
+
CALCR
|
| 401 |
+
CALCRL
|
| 402 |
+
CALD1
|
| 403 |
+
CALM1
|
| 404 |
+
CALM3
|
| 405 |
+
CALR
|
| 406 |
+
CALU
|
| 407 |
+
CAMK2N1
|
| 408 |
+
CAMKK1
|
| 409 |
+
CAMSAP1
|
| 410 |
+
CAMSAP2
|
| 411 |
+
CANT1
|
| 412 |
+
CAP1
|
| 413 |
+
CAPN1
|
| 414 |
+
CAPN2
|
| 415 |
+
CARD11
|
| 416 |
+
CARD18
|
| 417 |
+
CARD6
|
| 418 |
+
CARTPT
|
| 419 |
+
CASC3
|
| 420 |
+
CASK
|
| 421 |
+
CASP1
|
| 422 |
+
CASP10
|
| 423 |
+
CASP14
|
| 424 |
+
CASP2
|
| 425 |
+
CASP3
|
| 426 |
+
CASP4
|
| 427 |
+
CASP5
|
| 428 |
+
CASP6
|
| 429 |
+
CASP7
|
| 430 |
+
CASP8
|
| 431 |
+
CASP9
|
| 432 |
+
CASR
|
| 433 |
+
CAST
|
| 434 |
+
CAT
|
| 435 |
+
CAV1
|
| 436 |
+
CAV2
|
| 437 |
+
CAV3
|
| 438 |
+
CBL
|
| 439 |
+
CBLB
|
| 440 |
+
CBLL1
|
| 441 |
+
CBR1
|
| 442 |
+
CBR3
|
| 443 |
+
CBX3
|
| 444 |
+
CCDC103
|
| 445 |
+
CCDC85B
|
| 446 |
+
CCDC86
|
| 447 |
+
CCDC90A
|
| 448 |
+
CCDC92
|
| 449 |
+
CCK
|
| 450 |
+
CCKAR
|
| 451 |
+
CCL1
|
| 452 |
+
CCL11
|
| 453 |
+
CCL13
|
| 454 |
+
CCL14
|
| 455 |
+
CCL15
|
| 456 |
+
CCL16
|
| 457 |
+
CCL18
|
| 458 |
+
CCL19
|
| 459 |
+
CCL2
|
| 460 |
+
CCL20
|
| 461 |
+
CCL21
|
| 462 |
+
CCL22
|
| 463 |
+
CCL23
|
| 464 |
+
CCL24
|
| 465 |
+
CCL25
|
| 466 |
+
CCL26
|
| 467 |
+
CCL27
|
| 468 |
+
CCL28
|
| 469 |
+
CCL3
|
| 470 |
+
CCL3L1
|
| 471 |
+
CCL4
|
| 472 |
+
CCL5
|
| 473 |
+
CCL7
|
| 474 |
+
CCL8
|
| 475 |
+
CCNA1
|
| 476 |
+
CCNA2
|
| 477 |
+
CCNB1
|
| 478 |
+
CCNB2
|
| 479 |
+
CCNC
|
| 480 |
+
CCND1
|
| 481 |
+
CCND2
|
| 482 |
+
CCND3
|
| 483 |
+
CCNE1
|
| 484 |
+
CCNE2
|
| 485 |
+
CCNF
|
| 486 |
+
CCNG1
|
| 487 |
+
CCNG2
|
| 488 |
+
CCNH
|
| 489 |
+
CCNO
|
| 490 |
+
CCNT1
|
| 491 |
+
CCP110
|
| 492 |
+
CCR1
|
| 493 |
+
CCR10
|
| 494 |
+
CCR2
|
| 495 |
+
CCR3
|
| 496 |
+
CCR4
|
| 497 |
+
CCR5
|
| 498 |
+
CCR6
|
| 499 |
+
CCR7
|
| 500 |
+
CCR8
|
| 501 |
+
CCR9
|
| 502 |
+
CCRL2
|
| 503 |
+
CCT4
|
| 504 |
+
CCT5
|
| 505 |
+
CD14
|
| 506 |
+
CD180
|
| 507 |
+
CD1A
|
| 508 |
+
CD1B
|
| 509 |
+
CD1C
|
| 510 |
+
CD1D
|
| 511 |
+
CD2
|
| 512 |
+
CD209
|
| 513 |
+
CD22
|
| 514 |
+
CD27
|
| 515 |
+
CD274
|
| 516 |
+
CD276
|
| 517 |
+
CD28
|
| 518 |
+
CD320
|
| 519 |
+
CD34
|
| 520 |
+
CD36
|
| 521 |
+
CD3D
|
| 522 |
+
CD3E
|
| 523 |
+
CD3G
|
| 524 |
+
CD4
|
| 525 |
+
CD40
|
| 526 |
+
CD40LG
|
| 527 |
+
CD44
|
| 528 |
+
CD47
|
| 529 |
+
CD5
|
| 530 |
+
CD55
|
| 531 |
+
CD58
|
| 532 |
+
CD59
|
| 533 |
+
CD69
|
| 534 |
+
CD7
|
| 535 |
+
CD70
|
| 536 |
+
CD74
|
| 537 |
+
CD79A
|
| 538 |
+
CD80
|
| 539 |
+
CD81
|
| 540 |
+
CD82
|
| 541 |
+
CD83
|
| 542 |
+
CD86
|
| 543 |
+
CD8A
|
| 544 |
+
CD8B
|
| 545 |
+
CD97
|
| 546 |
+
CD99
|
| 547 |
+
CDC123
|
| 548 |
+
CDC16
|
| 549 |
+
CDC20
|
| 550 |
+
CDC25A
|
| 551 |
+
CDC25B
|
| 552 |
+
CDC25C
|
| 553 |
+
CDC27
|
| 554 |
+
CDC34
|
| 555 |
+
CDC42
|
| 556 |
+
CDC42EP3
|
| 557 |
+
CDC45
|
| 558 |
+
CDC6
|
| 559 |
+
CDCA4
|
| 560 |
+
CDH1
|
| 561 |
+
CDH11
|
| 562 |
+
CDH13
|
| 563 |
+
CDH2
|
| 564 |
+
CDH3
|
| 565 |
+
CDH4
|
| 566 |
+
CDH5
|
| 567 |
+
CDH6
|
| 568 |
+
CDK1
|
| 569 |
+
CDK19
|
| 570 |
+
CDK2
|
| 571 |
+
CDK4
|
| 572 |
+
CDK5R1
|
| 573 |
+
CDK5RAP1
|
| 574 |
+
CDK6
|
| 575 |
+
CDK7
|
| 576 |
+
CDK8
|
| 577 |
+
CDKN1A
|
| 578 |
+
CDKN1B
|
| 579 |
+
CDKN1C
|
| 580 |
+
CDKN2A
|
| 581 |
+
CDKN2B
|
| 582 |
+
CDKN2C
|
| 583 |
+
CDKN2D
|
| 584 |
+
CDKN3
|
| 585 |
+
CDON
|
| 586 |
+
CDR2
|
| 587 |
+
CDSN
|
| 588 |
+
CEACAM1
|
| 589 |
+
CEACAM3
|
| 590 |
+
CEACAM5
|
| 591 |
+
CEACAM6
|
| 592 |
+
CEBPA
|
| 593 |
+
CEBPB
|
| 594 |
+
CEBPD
|
| 595 |
+
CEBPZ
|
| 596 |
+
CEL
|
| 597 |
+
CELA3A
|
| 598 |
+
CELA3B
|
| 599 |
+
CENPE
|
| 600 |
+
CEP57
|
| 601 |
+
CERK
|
| 602 |
+
CES1
|
| 603 |
+
CETN3
|
| 604 |
+
CETP
|
| 605 |
+
CFB
|
| 606 |
+
CFD
|
| 607 |
+
CFL1
|
| 608 |
+
CFLAR
|
| 609 |
+
CFTR
|
| 610 |
+
CGN
|
| 611 |
+
CGRRF1
|
| 612 |
+
CHAC1
|
| 613 |
+
CHD4
|
| 614 |
+
CHD7
|
| 615 |
+
CHD9
|
| 616 |
+
CHEK1
|
| 617 |
+
CHEK2
|
| 618 |
+
CHERP
|
| 619 |
+
CHGA
|
| 620 |
+
CHI3L1
|
| 621 |
+
CHIA
|
| 622 |
+
CHIC2
|
| 623 |
+
CHMP2A
|
| 624 |
+
CHMP4A
|
| 625 |
+
CHMP6
|
| 626 |
+
CHN1
|
| 627 |
+
CHP
|
| 628 |
+
CHRD
|
| 629 |
+
CHSY1
|
| 630 |
+
CHUK
|
| 631 |
+
CIAPIN1
|
| 632 |
+
CIB1
|
| 633 |
+
CIDEA
|
| 634 |
+
CIDEB
|
| 635 |
+
CIITA
|
| 636 |
+
CIRBP
|
| 637 |
+
CISD1
|
| 638 |
+
CKLF
|
| 639 |
+
CKS1B
|
| 640 |
+
CKS2
|
| 641 |
+
CLC
|
| 642 |
+
CLCA1
|
| 643 |
+
CLCA2
|
| 644 |
+
CLDN1
|
| 645 |
+
CLDN10
|
| 646 |
+
CLDN11
|
| 647 |
+
CLDN12
|
| 648 |
+
CLDN14
|
| 649 |
+
CLDN15
|
| 650 |
+
CLDN16
|
| 651 |
+
CLDN17
|
| 652 |
+
CLDN18
|
| 653 |
+
CLDN19
|
| 654 |
+
CLDN2
|
| 655 |
+
CLDN3
|
| 656 |
+
CLDN4
|
| 657 |
+
CLDN5
|
| 658 |
+
CLDN6
|
| 659 |
+
CLDN7
|
| 660 |
+
CLDN8
|
| 661 |
+
CLDN9
|
| 662 |
+
CLEC3B
|
| 663 |
+
CLEC4C
|
| 664 |
+
CLEC4E
|
| 665 |
+
CLEC7A
|
| 666 |
+
CLIC4
|
| 667 |
+
CLIC5
|
| 668 |
+
CLK1
|
| 669 |
+
CLN3
|
| 670 |
+
CLPS
|
| 671 |
+
CLPX
|
| 672 |
+
CLSTN1
|
| 673 |
+
CLTB
|
| 674 |
+
CLTC
|
| 675 |
+
CLU
|
| 676 |
+
CMA1
|
| 677 |
+
CMKLR1
|
| 678 |
+
CMTM1
|
| 679 |
+
CMTM2
|
| 680 |
+
CMTM3
|
| 681 |
+
CMTM4
|
| 682 |
+
CNBP
|
| 683 |
+
CNDP2
|
| 684 |
+
CNN2
|
| 685 |
+
CNOT2
|
| 686 |
+
CNOT4
|
| 687 |
+
CNPY3
|
| 688 |
+
CNR1
|
| 689 |
+
CNTF
|
| 690 |
+
CNTFR
|
| 691 |
+
CNTN1
|
| 692 |
+
COASY
|
| 693 |
+
COG2
|
| 694 |
+
COG4
|
| 695 |
+
COG7
|
| 696 |
+
COL11A1
|
| 697 |
+
COL12A1
|
| 698 |
+
COL14A1
|
| 699 |
+
COL15A1
|
| 700 |
+
COL16A1
|
| 701 |
+
COL18A1
|
| 702 |
+
COL1A1
|
| 703 |
+
COL1A2
|
| 704 |
+
COL3A1
|
| 705 |
+
COL4A1
|
| 706 |
+
COL4A2
|
| 707 |
+
COL4A3
|
| 708 |
+
COL5A1
|
| 709 |
+
COL5A2
|
| 710 |
+
COL6A1
|
| 711 |
+
COL6A2
|
| 712 |
+
COL7A1
|
| 713 |
+
COL8A1
|
| 714 |
+
COLEC12
|
| 715 |
+
COMMD4
|
| 716 |
+
COPB2
|
| 717 |
+
COPS7A
|
| 718 |
+
CORO1A
|
| 719 |
+
COX5A
|
| 720 |
+
COX6C
|
| 721 |
+
CP
|
| 722 |
+
CPA3
|
| 723 |
+
CPD
|
| 724 |
+
CPE
|
| 725 |
+
CPNE3
|
| 726 |
+
CPSF4
|
| 727 |
+
CPT1A
|
| 728 |
+
CPT1B
|
| 729 |
+
CPT1C
|
| 730 |
+
CPT2
|
| 731 |
+
CR1
|
| 732 |
+
CRADD
|
| 733 |
+
CRAT
|
| 734 |
+
CRB1
|
| 735 |
+
CRB2
|
| 736 |
+
CRB3
|
| 737 |
+
CREB1
|
| 738 |
+
CREB3
|
| 739 |
+
CREB3L4
|
| 740 |
+
CREBBP
|
| 741 |
+
CREG1
|
| 742 |
+
CRELD2
|
| 743 |
+
CRHR1
|
| 744 |
+
CRHR2
|
| 745 |
+
CRIM1
|
| 746 |
+
CRK
|
| 747 |
+
CRKL
|
| 748 |
+
CRLF2
|
| 749 |
+
CROT
|
| 750 |
+
CRP
|
| 751 |
+
CRTAP
|
| 752 |
+
CRY1
|
| 753 |
+
CRYAB
|
| 754 |
+
CRYZ
|
| 755 |
+
CS
|
| 756 |
+
CSDE1
|
| 757 |
+
CSF1
|
| 758 |
+
CSF1R
|
| 759 |
+
CSF2
|
| 760 |
+
CSF2RB
|
| 761 |
+
CSF3
|
| 762 |
+
CSF3R
|
| 763 |
+
CSK
|
| 764 |
+
CSNK1A1
|
| 765 |
+
CSNK1D
|
| 766 |
+
CSNK1E
|
| 767 |
+
CSNK2A1
|
| 768 |
+
CSNK2A2
|
| 769 |
+
CSNK2B
|
| 770 |
+
CSRP1
|
| 771 |
+
CST6
|
| 772 |
+
CST7
|
| 773 |
+
CSTB
|
| 774 |
+
CTBP1
|
| 775 |
+
CTGF
|
| 776 |
+
CTLA4
|
| 777 |
+
CTNNA1
|
| 778 |
+
CTNNA2
|
| 779 |
+
CTNNA3
|
| 780 |
+
CTNNAL1
|
| 781 |
+
CTNNB1
|
| 782 |
+
CTNNBIP1
|
| 783 |
+
CTNNBL1
|
| 784 |
+
CTNND1
|
| 785 |
+
CTNND2
|
| 786 |
+
CTSB
|
| 787 |
+
CTSC
|
| 788 |
+
CTSD
|
| 789 |
+
CTSE
|
| 790 |
+
CTSK
|
| 791 |
+
CTSL1
|
| 792 |
+
CTSS
|
| 793 |
+
CTTN
|
| 794 |
+
CUBN
|
| 795 |
+
CUEDC2
|
| 796 |
+
CUL1
|
| 797 |
+
CUL2
|
| 798 |
+
CUL3
|
| 799 |
+
CX3CL1
|
| 800 |
+
CX3CR1
|
| 801 |
+
CXADR
|
| 802 |
+
CXCL1
|
| 803 |
+
CXCL11
|
| 804 |
+
CXCL12
|
| 805 |
+
CXCL13
|
| 806 |
+
CXCL14
|
| 807 |
+
CXCL16
|
| 808 |
+
CXCL2
|
| 809 |
+
CXCL3
|
| 810 |
+
CXCL5
|
| 811 |
+
CXCL6
|
| 812 |
+
CXCL9
|
| 813 |
+
CXCR1
|
| 814 |
+
CXCR2
|
| 815 |
+
CXCR3
|
| 816 |
+
CXCR4
|
| 817 |
+
CXCR5
|
| 818 |
+
CXCR6
|
| 819 |
+
CXXC4
|
| 820 |
+
CYB561
|
| 821 |
+
CYB5R3
|
| 822 |
+
CYCS
|
| 823 |
+
CYLD
|
| 824 |
+
CYP11A1
|
| 825 |
+
CYP19A1
|
| 826 |
+
CYP1B1
|
| 827 |
+
CYP27A1
|
| 828 |
+
CYP2E1
|
| 829 |
+
CYP2S1
|
| 830 |
+
CYP39A1
|
| 831 |
+
CYP3A5
|
| 832 |
+
CYP46A1
|
| 833 |
+
CYP4A11
|
| 834 |
+
CYP4V2
|
| 835 |
+
CYP51A1
|
| 836 |
+
CYP7A1
|
| 837 |
+
CYP7B1
|
| 838 |
+
CYSLTR1
|
| 839 |
+
CYTH1
|
| 840 |
+
DAAM1
|
| 841 |
+
DAB2
|
| 842 |
+
DAB2IP
|
| 843 |
+
DAD1
|
| 844 |
+
DAG1
|
| 845 |
+
DAPK1
|
| 846 |
+
DARC
|
| 847 |
+
DAXX
|
| 848 |
+
DBN1
|
| 849 |
+
DCHS1
|
| 850 |
+
DCHS2
|
| 851 |
+
DCK
|
| 852 |
+
DCN
|
| 853 |
+
DCTD
|
| 854 |
+
DCUN1D4
|
| 855 |
+
DDB1
|
| 856 |
+
DDB2
|
| 857 |
+
DDIT3
|
| 858 |
+
DDIT4
|
| 859 |
+
DDIT4L
|
| 860 |
+
DDR1
|
| 861 |
+
DDR2
|
| 862 |
+
DDX10
|
| 863 |
+
DDX11
|
| 864 |
+
DDX39B
|
| 865 |
+
DDX42
|
| 866 |
+
DDX58
|
| 867 |
+
DECR1
|
| 868 |
+
DECR2
|
| 869 |
+
DEFB1
|
| 870 |
+
DEGS1
|
| 871 |
+
DENND2D
|
| 872 |
+
DENND4A
|
| 873 |
+
DENR
|
| 874 |
+
DEPTOR
|
| 875 |
+
DERA
|
| 876 |
+
DESI1
|
| 877 |
+
DFFA
|
| 878 |
+
DFFB
|
| 879 |
+
DGAT1
|
| 880 |
+
DGAT2
|
| 881 |
+
DGKA
|
| 882 |
+
DGKZ
|
| 883 |
+
DHCR24
|
| 884 |
+
DHCR7
|
| 885 |
+
DHDDS
|
| 886 |
+
DHRS7
|
| 887 |
+
DHX29
|
| 888 |
+
DIABLO
|
| 889 |
+
DIAPH1
|
| 890 |
+
DIAPH2
|
| 891 |
+
DIO2
|
| 892 |
+
DIRAS2
|
| 893 |
+
DIXDC1
|
| 894 |
+
DKC1
|
| 895 |
+
DKK1
|
| 896 |
+
DKK3
|
| 897 |
+
DLAT
|
| 898 |
+
DLC1
|
| 899 |
+
DLD
|
| 900 |
+
DLG1
|
| 901 |
+
DLG5
|
| 902 |
+
DLK1
|
| 903 |
+
DLL1
|
| 904 |
+
DLST
|
| 905 |
+
DLX2
|
| 906 |
+
DMC1
|
| 907 |
+
DMTF1
|
| 908 |
+
DNAJA1
|
| 909 |
+
DNAJA3
|
| 910 |
+
DNAJB1
|
| 911 |
+
DNAJB2
|
| 912 |
+
DNAJB6
|
| 913 |
+
DNAJC15
|
| 914 |
+
DNAJC3
|
| 915 |
+
DNM1
|
| 916 |
+
DNM1L
|
| 917 |
+
DNM2
|
| 918 |
+
DNMT1
|
| 919 |
+
DNMT3A
|
| 920 |
+
DNTT
|
| 921 |
+
DNTTIP2
|
| 922 |
+
DOCK1
|
| 923 |
+
DOCK2
|
| 924 |
+
DOCK4
|
| 925 |
+
DOK1
|
| 926 |
+
DOK2
|
| 927 |
+
DOK3
|
| 928 |
+
DOLK
|
| 929 |
+
DPH2
|
| 930 |
+
DPP10
|
| 931 |
+
DPP4
|
| 932 |
+
DPYSL4
|
| 933 |
+
DRAM1
|
| 934 |
+
DRAM2
|
| 935 |
+
DRAP1
|
| 936 |
+
DRD1
|
| 937 |
+
DRD2
|
| 938 |
+
DSC1
|
| 939 |
+
DSC2
|
| 940 |
+
DSC3
|
| 941 |
+
DSG1
|
| 942 |
+
DSG2
|
| 943 |
+
DSG3
|
| 944 |
+
DSG4
|
| 945 |
+
DSP
|
| 946 |
+
DST
|
| 947 |
+
DUSP1
|
| 948 |
+
DUSP11
|
| 949 |
+
DUSP14
|
| 950 |
+
DUSP22
|
| 951 |
+
DUSP3
|
| 952 |
+
DUSP4
|
| 953 |
+
DUSP6
|
| 954 |
+
DVL1
|
| 955 |
+
DVL2
|
| 956 |
+
DYNLT3
|
| 957 |
+
DYRK3
|
| 958 |
+
E2F1
|
| 959 |
+
E2F2
|
| 960 |
+
E2F3
|
| 961 |
+
E2F4
|
| 962 |
+
EAPP
|
| 963 |
+
EBI3
|
| 964 |
+
EBNA1BP2
|
| 965 |
+
EBP
|
| 966 |
+
ECD
|
| 967 |
+
ECH1
|
| 968 |
+
ECHS1
|
| 969 |
+
ECI2
|
| 970 |
+
ECM1
|
| 971 |
+
ECSIT
|
| 972 |
+
ECT2
|
| 973 |
+
EDA2R
|
| 974 |
+
EDEM1
|
| 975 |
+
EDEM2
|
| 976 |
+
EDEM3
|
| 977 |
+
EDIL3
|
| 978 |
+
EDN1
|
| 979 |
+
EDNRB
|
| 980 |
+
EED
|
| 981 |
+
EFNA1
|
| 982 |
+
EFNB1
|
| 983 |
+
EFNB2
|
| 984 |
+
EGF
|
| 985 |
+
EGFR
|
| 986 |
+
EGR1
|
| 987 |
+
EGR2
|
| 988 |
+
EGR3
|
| 989 |
+
EHD3
|
| 990 |
+
EHHADH
|
| 991 |
+
EI24
|
| 992 |
+
EIF2AK2
|
| 993 |
+
EIF2AK3
|
| 994 |
+
EIF2B1
|
| 995 |
+
EIF3M
|
| 996 |
+
EIF4A1
|
| 997 |
+
EIF4B
|
| 998 |
+
EIF4E
|
| 999 |
+
EIF4EBP1
|
| 1000 |
+
EIF4EBP2
|
| 1001 |
+
EIF4G1
|
| 1002 |
+
EIF4G2
|
| 1003 |
+
EIF5
|
| 1004 |
+
EIF5B
|
| 1005 |
+
ELAC2
|
| 1006 |
+
ELAVL1
|
| 1007 |
+
ELK1
|
| 1008 |
+
ELK4
|
| 1009 |
+
ELMO1
|
| 1010 |
+
ELN
|
| 1011 |
+
ELOVL6
|
| 1012 |
+
EML3
|
| 1013 |
+
EMP1
|
| 1014 |
+
EMR1
|
| 1015 |
+
ENAH
|
| 1016 |
+
ENG
|
| 1017 |
+
ENO1
|
| 1018 |
+
ENO2
|
| 1019 |
+
ENO3
|
| 1020 |
+
ENOPH1
|
| 1021 |
+
ENOSF1
|
| 1022 |
+
ENPP1
|
| 1023 |
+
EOMES
|
| 1024 |
+
EP300
|
| 1025 |
+
EPB41
|
| 1026 |
+
EPB41L2
|
| 1027 |
+
EPHA1
|
| 1028 |
+
EPHA2
|
| 1029 |
+
EPHA3
|
| 1030 |
+
EPHA4
|
| 1031 |
+
EPHA5
|
| 1032 |
+
EPHA7
|
| 1033 |
+
EPHA8
|
| 1034 |
+
EPHB1
|
| 1035 |
+
EPHB2
|
| 1036 |
+
EPHB3
|
| 1037 |
+
EPHB4
|
| 1038 |
+
EPHB6
|
| 1039 |
+
EPN2
|
| 1040 |
+
EPO
|
| 1041 |
+
EPOR
|
| 1042 |
+
EPRS
|
| 1043 |
+
EPX
|
| 1044 |
+
ERBB2
|
| 1045 |
+
ERBB3
|
| 1046 |
+
ERBB4
|
| 1047 |
+
ERCC1
|
| 1048 |
+
ERCC2
|
| 1049 |
+
ERCC3
|
| 1050 |
+
ERCC4
|
| 1051 |
+
ERCC5
|
| 1052 |
+
ERCC6
|
| 1053 |
+
ERCC8
|
| 1054 |
+
EREG
|
| 1055 |
+
ERG
|
| 1056 |
+
ERO1L
|
| 1057 |
+
ERRFI1
|
| 1058 |
+
ESAM
|
| 1059 |
+
ESR1
|
| 1060 |
+
ESR2
|
| 1061 |
+
ETFB
|
| 1062 |
+
ETFDH
|
| 1063 |
+
ETS1
|
| 1064 |
+
ETS2
|
| 1065 |
+
ETV1
|
| 1066 |
+
ETV4
|
| 1067 |
+
EVL
|
| 1068 |
+
EWSR1
|
| 1069 |
+
EXO1
|
| 1070 |
+
EXOC2
|
| 1071 |
+
EXOSC4
|
| 1072 |
+
EXOSC8
|
| 1073 |
+
EXT1
|
| 1074 |
+
EZH2
|
| 1075 |
+
EZR
|
| 1076 |
+
F11R
|
| 1077 |
+
F2
|
| 1078 |
+
F2R
|
| 1079 |
+
F3
|
| 1080 |
+
F8
|
| 1081 |
+
FABP1
|
| 1082 |
+
FABP2
|
| 1083 |
+
FABP3
|
| 1084 |
+
FABP4
|
| 1085 |
+
FABP5
|
| 1086 |
+
FABP6
|
| 1087 |
+
FABP7
|
| 1088 |
+
FADD
|
| 1089 |
+
FADS2
|
| 1090 |
+
FAH
|
| 1091 |
+
FAIM
|
| 1092 |
+
FAM20B
|
| 1093 |
+
FAM32A
|
| 1094 |
+
FAM57A
|
| 1095 |
+
FAM63A
|
| 1096 |
+
FAM69A
|
| 1097 |
+
FANCA
|
| 1098 |
+
FANCD2
|
| 1099 |
+
FANCG
|
| 1100 |
+
FAP
|
| 1101 |
+
FARP2
|
| 1102 |
+
FAS
|
| 1103 |
+
FASLG
|
| 1104 |
+
FASN
|
| 1105 |
+
FASTKD5
|
| 1106 |
+
FAT1
|
| 1107 |
+
FAT2
|
| 1108 |
+
FAT3
|
| 1109 |
+
FAT4
|
| 1110 |
+
FBP1
|
| 1111 |
+
FBP2
|
| 1112 |
+
FBXL12
|
| 1113 |
+
FBXO11
|
| 1114 |
+
FBXO21
|
| 1115 |
+
FBXO32
|
| 1116 |
+
FBXO38
|
| 1117 |
+
FBXO7
|
| 1118 |
+
FBXO9
|
| 1119 |
+
FBXW11
|
| 1120 |
+
FBXW4
|
| 1121 |
+
FCER1A
|
| 1122 |
+
FCER1G
|
| 1123 |
+
FCER2
|
| 1124 |
+
FCGR1A
|
| 1125 |
+
FCGR2A
|
| 1126 |
+
FCGR2B
|
| 1127 |
+
FCHO1
|
| 1128 |
+
FDFT1
|
| 1129 |
+
FDPS
|
| 1130 |
+
FEN1
|
| 1131 |
+
FER
|
| 1132 |
+
FES
|
| 1133 |
+
FEZ1
|
| 1134 |
+
FEZ2
|
| 1135 |
+
FGF1
|
| 1136 |
+
FGF10
|
| 1137 |
+
FGF13
|
| 1138 |
+
FGF2
|
| 1139 |
+
FGF20
|
| 1140 |
+
FGF4
|
| 1141 |
+
FGF7
|
| 1142 |
+
FGF9
|
| 1143 |
+
FGFBP1
|
| 1144 |
+
FGFR1
|
| 1145 |
+
FGFR2
|
| 1146 |
+
FGFR3
|
| 1147 |
+
FGFR4
|
| 1148 |
+
FGR
|
| 1149 |
+
FH
|
| 1150 |
+
FHIT
|
| 1151 |
+
FHL2
|
| 1152 |
+
FIGF
|
| 1153 |
+
FIS1
|
| 1154 |
+
FJX1
|
| 1155 |
+
FKBP14
|
| 1156 |
+
FKBP1A
|
| 1157 |
+
FKBP4
|
| 1158 |
+
FKBP5
|
| 1159 |
+
FKBP8
|
| 1160 |
+
FLNA
|
| 1161 |
+
FLNB
|
| 1162 |
+
FLT1
|
| 1163 |
+
FLT3
|
| 1164 |
+
FLT3LG
|
| 1165 |
+
FLT4
|
| 1166 |
+
FN1
|
| 1167 |
+
FOS
|
| 1168 |
+
FOSL1
|
| 1169 |
+
FOSL2
|
| 1170 |
+
FOXA1
|
| 1171 |
+
FOXA2
|
| 1172 |
+
FOXC2
|
| 1173 |
+
FOXD3
|
| 1174 |
+
FOXG1
|
| 1175 |
+
FOXI1
|
| 1176 |
+
FOXJ3
|
| 1177 |
+
FOXN1
|
| 1178 |
+
FOXO1
|
| 1179 |
+
FOXO3
|
| 1180 |
+
FOXO4
|
| 1181 |
+
FOXP1
|
| 1182 |
+
FOXP2
|
| 1183 |
+
FOXP3
|
| 1184 |
+
FPGS
|
| 1185 |
+
FPR1
|
| 1186 |
+
FRAT1
|
| 1187 |
+
FRK
|
| 1188 |
+
FRS2
|
| 1189 |
+
FRS3
|
| 1190 |
+
FRZB
|
| 1191 |
+
FSD1
|
| 1192 |
+
FST
|
| 1193 |
+
FSTL3
|
| 1194 |
+
FTH1
|
| 1195 |
+
FTSJ1
|
| 1196 |
+
FUCA1
|
| 1197 |
+
FUCA2
|
| 1198 |
+
FURIN
|
| 1199 |
+
FUT1
|
| 1200 |
+
FUT11
|
| 1201 |
+
FUT8
|
| 1202 |
+
FXC1
|
| 1203 |
+
FXYD5
|
| 1204 |
+
FYN
|
| 1205 |
+
FZD1
|
| 1206 |
+
FZD2
|
| 1207 |
+
FZD3
|
| 1208 |
+
FZD4
|
| 1209 |
+
FZD5
|
| 1210 |
+
FZD6
|
| 1211 |
+
FZD7
|
| 1212 |
+
FZD8
|
| 1213 |
+
FZD9
|
| 1214 |
+
G3BP1
|
| 1215 |
+
G6PC
|
| 1216 |
+
G6PC3
|
| 1217 |
+
G6PD
|
| 1218 |
+
GAA
|
| 1219 |
+
GAB1
|
| 1220 |
+
GABARAP
|
| 1221 |
+
GABARAPL1
|
| 1222 |
+
GABARAPL2
|
| 1223 |
+
GABPB1
|
| 1224 |
+
GADD45A
|
| 1225 |
+
GADD45B
|
| 1226 |
+
GADD45G
|
| 1227 |
+
GAL
|
| 1228 |
+
GALE
|
| 1229 |
+
GALM
|
| 1230 |
+
GALNT1
|
| 1231 |
+
GALNT10
|
| 1232 |
+
GALNT11
|
| 1233 |
+
GALNT12
|
| 1234 |
+
GALNT13
|
| 1235 |
+
GALNT14
|
| 1236 |
+
GALNT16
|
| 1237 |
+
GALNT2
|
| 1238 |
+
GALNT3
|
| 1239 |
+
GALNT5
|
| 1240 |
+
GALNT6
|
| 1241 |
+
GALNT7
|
| 1242 |
+
GALNT8
|
| 1243 |
+
GALNT9
|
| 1244 |
+
GALNTL5
|
| 1245 |
+
GALNTL6
|
| 1246 |
+
GALR1
|
| 1247 |
+
GALR2
|
| 1248 |
+
GANAB
|
| 1249 |
+
GAPDH
|
| 1250 |
+
GAS2L3
|
| 1251 |
+
GATA1
|
| 1252 |
+
GATA2
|
| 1253 |
+
GATA3
|
| 1254 |
+
GATA4
|
| 1255 |
+
GBE1
|
| 1256 |
+
GBP1
|
| 1257 |
+
GCA
|
| 1258 |
+
GCDH
|
| 1259 |
+
GCG
|
| 1260 |
+
GCGR
|
| 1261 |
+
GCK
|
| 1262 |
+
GCLC
|
| 1263 |
+
GCLM
|
| 1264 |
+
GCNT1
|
| 1265 |
+
GCNT3
|
| 1266 |
+
GCNT4
|
| 1267 |
+
GDF2
|
| 1268 |
+
GDF3
|
| 1269 |
+
GDF5
|
| 1270 |
+
GDF6
|
| 1271 |
+
GDF7
|
| 1272 |
+
GDNF
|
| 1273 |
+
GDPD1
|
| 1274 |
+
GDPD5
|
| 1275 |
+
GEMIN2
|
| 1276 |
+
GEMIN5
|
| 1277 |
+
GFI1
|
| 1278 |
+
GFOD1
|
| 1279 |
+
GFPT1
|
| 1280 |
+
GH1
|
| 1281 |
+
GH2
|
| 1282 |
+
GHR
|
| 1283 |
+
GHRHR
|
| 1284 |
+
GHRL
|
| 1285 |
+
GHSR
|
| 1286 |
+
GJA1
|
| 1287 |
+
GJA3
|
| 1288 |
+
GJA4
|
| 1289 |
+
GJA5
|
| 1290 |
+
GJA8
|
| 1291 |
+
GJA9
|
| 1292 |
+
GJB1
|
| 1293 |
+
GJB2
|
| 1294 |
+
GJB3
|
| 1295 |
+
GJB4
|
| 1296 |
+
GJB5
|
| 1297 |
+
GJB6
|
| 1298 |
+
GJB7
|
| 1299 |
+
GJC2
|
| 1300 |
+
GJC3
|
| 1301 |
+
GJD2
|
| 1302 |
+
GK
|
| 1303 |
+
GK2
|
| 1304 |
+
GLB1
|
| 1305 |
+
GLI1
|
| 1306 |
+
GLI2
|
| 1307 |
+
GLOD4
|
| 1308 |
+
GLP1R
|
| 1309 |
+
GLRX
|
| 1310 |
+
GLT8D1
|
| 1311 |
+
GLUL
|
| 1312 |
+
GML
|
| 1313 |
+
GMNN
|
| 1314 |
+
GNA11
|
| 1315 |
+
GNA15
|
| 1316 |
+
GNAI1
|
| 1317 |
+
GNAI2
|
| 1318 |
+
GNAQ
|
| 1319 |
+
GNAS
|
| 1320 |
+
GNB5
|
| 1321 |
+
GNG11
|
| 1322 |
+
GNL3
|
| 1323 |
+
GNPDA1
|
| 1324 |
+
GNPTAB
|
| 1325 |
+
GNPTG
|
| 1326 |
+
GNRH1
|
| 1327 |
+
GOLGB1
|
| 1328 |
+
GOLT1B
|
| 1329 |
+
GOT1
|
| 1330 |
+
GPATCH1
|
| 1331 |
+
GPATCH8
|
| 1332 |
+
GPC1
|
| 1333 |
+
GPC5
|
| 1334 |
+
GPD1
|
| 1335 |
+
GPD2
|
| 1336 |
+
GPER
|
| 1337 |
+
GPI
|
| 1338 |
+
GPM6A
|
| 1339 |
+
GPNMB
|
| 1340 |
+
GPR17
|
| 1341 |
+
GPR18
|
| 1342 |
+
GPR56
|
| 1343 |
+
GPS1
|
| 1344 |
+
GPX3
|
| 1345 |
+
GRB10
|
| 1346 |
+
GRB2
|
| 1347 |
+
GRB7
|
| 1348 |
+
GREM1
|
| 1349 |
+
GRM1
|
| 1350 |
+
GRM2
|
| 1351 |
+
GRM4
|
| 1352 |
+
GRM5
|
| 1353 |
+
GRM7
|
| 1354 |
+
GRN
|
| 1355 |
+
GRP
|
| 1356 |
+
GRPR
|
| 1357 |
+
GRWD1
|
| 1358 |
+
GSC
|
| 1359 |
+
GSK3A
|
| 1360 |
+
GSK3B
|
| 1361 |
+
GSR
|
| 1362 |
+
GSTA2
|
| 1363 |
+
GSTA3
|
| 1364 |
+
GSTM2
|
| 1365 |
+
GSTP1
|
| 1366 |
+
GSTZ1
|
| 1367 |
+
GTF2A2
|
| 1368 |
+
GTF2E2
|
| 1369 |
+
GTF2I
|
| 1370 |
+
GTPBP8
|
| 1371 |
+
GTSE1
|
| 1372 |
+
GUCY1A2
|
| 1373 |
+
GUCY1A3
|
| 1374 |
+
GUCY1B3
|
| 1375 |
+
GULP1
|
| 1376 |
+
GYPA
|
| 1377 |
+
GYS1
|
| 1378 |
+
GYS2
|
| 1379 |
+
GZMA
|
| 1380 |
+
GZMB
|
| 1381 |
+
H2AFV
|
| 1382 |
+
H2AFX
|
| 1383 |
+
H6PD
|
| 1384 |
+
HADH
|
| 1385 |
+
HADHA
|
| 1386 |
+
HAL
|
| 1387 |
+
HAS1
|
| 1388 |
+
HAS2
|
| 1389 |
+
HAT1
|
| 1390 |
+
HAVCR2
|
| 1391 |
+
HCK
|
| 1392 |
+
HCLS1
|
| 1393 |
+
HCRT
|
| 1394 |
+
HCRTR1
|
| 1395 |
+
HDAC1
|
| 1396 |
+
HDAC2
|
| 1397 |
+
HDAC6
|
| 1398 |
+
HDAC9
|
| 1399 |
+
HDGFRP3
|
| 1400 |
+
HDLBP
|
| 1401 |
+
HEATR1
|
| 1402 |
+
HEBP1
|
| 1403 |
+
HELZ2
|
| 1404 |
+
HERC6
|
| 1405 |
+
HERPUD1
|
| 1406 |
+
HES1
|
| 1407 |
+
HEXA
|
| 1408 |
+
HEXB
|
| 1409 |
+
HEY1
|
| 1410 |
+
HGF
|
| 1411 |
+
HGS
|
| 1412 |
+
HHIP
|
| 1413 |
+
HIC1
|
| 1414 |
+
HIF1A
|
| 1415 |
+
HIPK2
|
| 1416 |
+
HIST1H2BK
|
| 1417 |
+
HIST2H2BE
|
| 1418 |
+
HK1
|
| 1419 |
+
HK2
|
| 1420 |
+
HK3
|
| 1421 |
+
HLA-A
|
| 1422 |
+
HLA-B
|
| 1423 |
+
HLA-C
|
| 1424 |
+
HLA-DMA
|
| 1425 |
+
HLA-DPA1
|
| 1426 |
+
HLA-DRA
|
| 1427 |
+
HLA-E
|
| 1428 |
+
HMCN1
|
| 1429 |
+
HMG20B
|
| 1430 |
+
HMGA2
|
| 1431 |
+
HMGB1
|
| 1432 |
+
HMGCL
|
| 1433 |
+
HMGCR
|
| 1434 |
+
HMGCS1
|
| 1435 |
+
HMGCS2
|
| 1436 |
+
HMMR
|
| 1437 |
+
HMOX1
|
| 1438 |
+
HN1L
|
| 1439 |
+
HNF1B
|
| 1440 |
+
HNF4A
|
| 1441 |
+
HNRNPA0
|
| 1442 |
+
HNRNPA1
|
| 1443 |
+
HNRNPA2B1
|
| 1444 |
+
HNRNPUL1
|
| 1445 |
+
HOMER2
|
| 1446 |
+
HOOK2
|
| 1447 |
+
HOPX
|
| 1448 |
+
HOXA10
|
| 1449 |
+
HOXA3
|
| 1450 |
+
HOXA5
|
| 1451 |
+
HP1BP3
|
| 1452 |
+
HPRT1
|
| 1453 |
+
HPSE
|
| 1454 |
+
HPX
|
| 1455 |
+
HRAS
|
| 1456 |
+
HRG
|
| 1457 |
+
HRH1
|
| 1458 |
+
HRK
|
| 1459 |
+
HS2ST1
|
| 1460 |
+
HSD17B10
|
| 1461 |
+
HSD17B11
|
| 1462 |
+
HSP90AA1
|
| 1463 |
+
HSP90AB1
|
| 1464 |
+
HSP90B1
|
| 1465 |
+
HSPA12A
|
| 1466 |
+
HSPA1A
|
| 1467 |
+
HSPA1B
|
| 1468 |
+
HSPA4
|
| 1469 |
+
HSPA4L
|
| 1470 |
+
HSPA5
|
| 1471 |
+
HSPA8
|
| 1472 |
+
HSPB1
|
| 1473 |
+
HSPBAP1
|
| 1474 |
+
HSPD1
|
| 1475 |
+
HTATIP2
|
| 1476 |
+
HTATSF1
|
| 1477 |
+
HTR2A
|
| 1478 |
+
HTR2C
|
| 1479 |
+
HTRA1
|
| 1480 |
+
HTT
|
| 1481 |
+
HUS1
|
| 1482 |
+
HYOU1
|
| 1483 |
+
IAPP
|
| 1484 |
+
IARS2
|
| 1485 |
+
ICAM1
|
| 1486 |
+
ICAM2
|
| 1487 |
+
ICAM3
|
| 1488 |
+
ICMT
|
| 1489 |
+
ICOS
|
| 1490 |
+
ICOSLG
|
| 1491 |
+
ID1
|
| 1492 |
+
ID2
|
| 1493 |
+
ID3
|
| 1494 |
+
ID4
|
| 1495 |
+
IDE
|
| 1496 |
+
IDH1
|
| 1497 |
+
IDH2
|
| 1498 |
+
IDH3A
|
| 1499 |
+
IDH3B
|
| 1500 |
+
IDH3G
|
| 1501 |
+
IDI1
|
| 1502 |
+
IDI2
|
| 1503 |
+
IDO1
|
| 1504 |
+
IER3
|
| 1505 |
+
IFI6
|
| 1506 |
+
IFITM2
|
| 1507 |
+
IFNA1
|
| 1508 |
+
IFNA2
|
| 1509 |
+
IFNAR1
|
| 1510 |
+
IFNB1
|
| 1511 |
+
IFNG
|
| 1512 |
+
IFNGR1
|
| 1513 |
+
IFNGR2
|
| 1514 |
+
IFRD1
|
| 1515 |
+
IFRD2
|
| 1516 |
+
IGF1
|
| 1517 |
+
IGF1R
|
| 1518 |
+
IGF2
|
| 1519 |
+
IGF2BP2
|
| 1520 |
+
IGF2R
|
| 1521 |
+
IGFBP1
|
| 1522 |
+
IGFBP3
|
| 1523 |
+
IGFBP4
|
| 1524 |
+
IGFBP5
|
| 1525 |
+
IGFBP7
|
| 1526 |
+
IGHMBP2
|
| 1527 |
+
IGJ
|
| 1528 |
+
IGSF5
|
| 1529 |
+
IGSF6
|
| 1530 |
+
IKBKAP
|
| 1531 |
+
IKBKB
|
| 1532 |
+
IKBKE
|
| 1533 |
+
IKBKG
|
| 1534 |
+
IKZF1
|
| 1535 |
+
IKZF2
|
| 1536 |
+
IKZF3
|
| 1537 |
+
IL10
|
| 1538 |
+
IL10RA
|
| 1539 |
+
IL10RB
|
| 1540 |
+
IL11
|
| 1541 |
+
IL12A
|
| 1542 |
+
IL12B
|
| 1543 |
+
IL12RB1
|
| 1544 |
+
IL12RB2
|
| 1545 |
+
IL13
|
| 1546 |
+
IL13RA1
|
| 1547 |
+
IL13RA2
|
| 1548 |
+
IL15
|
| 1549 |
+
IL16
|
| 1550 |
+
IL17A
|
| 1551 |
+
IL17C
|
| 1552 |
+
IL17D
|
| 1553 |
+
IL17F
|
| 1554 |
+
IL17RA
|
| 1555 |
+
IL17RB
|
| 1556 |
+
IL17RC
|
| 1557 |
+
IL17RE
|
| 1558 |
+
IL18
|
| 1559 |
+
IL18R1
|
| 1560 |
+
IL18RAP
|
| 1561 |
+
IL1A
|
| 1562 |
+
IL1B
|
| 1563 |
+
IL1R1
|
| 1564 |
+
IL1R2
|
| 1565 |
+
IL1RAP
|
| 1566 |
+
IL1RL1
|
| 1567 |
+
IL1RN
|
| 1568 |
+
IL2
|
| 1569 |
+
IL20
|
| 1570 |
+
IL21
|
| 1571 |
+
IL22
|
| 1572 |
+
IL23A
|
| 1573 |
+
IL23R
|
| 1574 |
+
IL24
|
| 1575 |
+
IL25
|
| 1576 |
+
IL27
|
| 1577 |
+
IL27RA
|
| 1578 |
+
IL2RA
|
| 1579 |
+
IL2RB
|
| 1580 |
+
IL2RG
|
| 1581 |
+
IL3
|
| 1582 |
+
IL31
|
| 1583 |
+
IL32
|
| 1584 |
+
IL33
|
| 1585 |
+
IL3RA
|
| 1586 |
+
IL4
|
| 1587 |
+
IL4R
|
| 1588 |
+
IL5
|
| 1589 |
+
IL5RA
|
| 1590 |
+
IL6
|
| 1591 |
+
IL6R
|
| 1592 |
+
IL6ST
|
| 1593 |
+
IL7
|
| 1594 |
+
IL7R
|
| 1595 |
+
IL8
|
| 1596 |
+
IL9
|
| 1597 |
+
IL9R
|
| 1598 |
+
ILF2
|
| 1599 |
+
ILK
|
| 1600 |
+
INADL
|
| 1601 |
+
ING4
|
| 1602 |
+
INHA
|
| 1603 |
+
INHBA
|
| 1604 |
+
INHBB
|
| 1605 |
+
INPP1
|
| 1606 |
+
INPP4B
|
| 1607 |
+
INPPL1
|
| 1608 |
+
INS
|
| 1609 |
+
INSIG1
|
| 1610 |
+
INSIG2
|
| 1611 |
+
INSL3
|
| 1612 |
+
INSR
|
| 1613 |
+
INSRR
|
| 1614 |
+
INTS3
|
| 1615 |
+
IP6K2
|
| 1616 |
+
IPO13
|
| 1617 |
+
IQGAP1
|
| 1618 |
+
IRAK1
|
| 1619 |
+
IRAK2
|
| 1620 |
+
IRAK4
|
| 1621 |
+
IRF1
|
| 1622 |
+
IRF2
|
| 1623 |
+
IRF3
|
| 1624 |
+
IRF4
|
| 1625 |
+
IRF7
|
| 1626 |
+
IRF8
|
| 1627 |
+
IRF9
|
| 1628 |
+
IRGM
|
| 1629 |
+
IRS1
|
| 1630 |
+
IRS2
|
| 1631 |
+
IRS4
|
| 1632 |
+
ISG15
|
| 1633 |
+
ISG20
|
| 1634 |
+
ISOC1
|
| 1635 |
+
ITCH
|
| 1636 |
+
ITFG1
|
| 1637 |
+
ITGA1
|
| 1638 |
+
ITGA11
|
| 1639 |
+
ITGA2
|
| 1640 |
+
ITGA2B
|
| 1641 |
+
ITGA3
|
| 1642 |
+
ITGA4
|
| 1643 |
+
ITGA5
|
| 1644 |
+
ITGA6
|
| 1645 |
+
ITGA7
|
| 1646 |
+
ITGA8
|
| 1647 |
+
ITGA9
|
| 1648 |
+
ITGAE
|
| 1649 |
+
ITGAL
|
| 1650 |
+
ITGAM
|
| 1651 |
+
ITGAV
|
| 1652 |
+
ITGAX
|
| 1653 |
+
ITGB1
|
| 1654 |
+
ITGB1BP1
|
| 1655 |
+
ITGB2
|
| 1656 |
+
ITGB3
|
| 1657 |
+
ITGB4
|
| 1658 |
+
ITGB5
|
| 1659 |
+
ITGB6
|
| 1660 |
+
ITK
|
| 1661 |
+
ITPKB
|
| 1662 |
+
ITPR1
|
| 1663 |
+
ITPR2
|
| 1664 |
+
JAG1
|
| 1665 |
+
JAK1
|
| 1666 |
+
JAK2
|
| 1667 |
+
JAK3
|
| 1668 |
+
JAM2
|
| 1669 |
+
JAM3
|
| 1670 |
+
JMJD6
|
| 1671 |
+
JPH3
|
| 1672 |
+
JUN
|
| 1673 |
+
JUNB
|
| 1674 |
+
JUND
|
| 1675 |
+
JUP
|
| 1676 |
+
KAL1
|
| 1677 |
+
KANK4
|
| 1678 |
+
KAT2B
|
| 1679 |
+
KAT6A
|
| 1680 |
+
KAT6B
|
| 1681 |
+
KCNIP1
|
| 1682 |
+
KCNK1
|
| 1683 |
+
KCNQ1
|
| 1684 |
+
KCTD5
|
| 1685 |
+
KDELR2
|
| 1686 |
+
KDM3A
|
| 1687 |
+
KDM5A
|
| 1688 |
+
KDM5B
|
| 1689 |
+
KDR
|
| 1690 |
+
KEAP1
|
| 1691 |
+
KIAA0100
|
| 1692 |
+
KIAA0196
|
| 1693 |
+
KIAA0355
|
| 1694 |
+
KIAA0494
|
| 1695 |
+
KIAA0528
|
| 1696 |
+
KIAA0753
|
| 1697 |
+
KIAA0907
|
| 1698 |
+
KIAA0947
|
| 1699 |
+
KIAA1033
|
| 1700 |
+
KIAA1279
|
| 1701 |
+
KIF14
|
| 1702 |
+
KIF20A
|
| 1703 |
+
KIF2C
|
| 1704 |
+
KIF5B
|
| 1705 |
+
KIF5C
|
| 1706 |
+
KISS1
|
| 1707 |
+
KISS1R
|
| 1708 |
+
KIT
|
| 1709 |
+
KITLG
|
| 1710 |
+
KLF1
|
| 1711 |
+
KLF10
|
| 1712 |
+
KLF13
|
| 1713 |
+
KLF15
|
| 1714 |
+
KLF2
|
| 1715 |
+
KLF3
|
| 1716 |
+
KLF4
|
| 1717 |
+
KLF5
|
| 1718 |
+
KLF9
|
| 1719 |
+
KLHDC2
|
| 1720 |
+
KLHL13
|
| 1721 |
+
KLHL21
|
| 1722 |
+
KLHL24
|
| 1723 |
+
KLHL9
|
| 1724 |
+
KLK3
|
| 1725 |
+
KNG1
|
| 1726 |
+
KNTC1
|
| 1727 |
+
KPNA2
|
| 1728 |
+
KRAS
|
| 1729 |
+
KREMEN1
|
| 1730 |
+
KRT14
|
| 1731 |
+
KRT18
|
| 1732 |
+
KRT19
|
| 1733 |
+
KRT5
|
| 1734 |
+
KRT7
|
| 1735 |
+
KRT8
|
| 1736 |
+
KSR1
|
| 1737 |
+
KTN1
|
| 1738 |
+
LAG3
|
| 1739 |
+
LAGE3
|
| 1740 |
+
LAMA1
|
| 1741 |
+
LAMA2
|
| 1742 |
+
LAMA3
|
| 1743 |
+
LAMB1
|
| 1744 |
+
LAMB3
|
| 1745 |
+
LAMC1
|
| 1746 |
+
LAMP1
|
| 1747 |
+
LAMP2
|
| 1748 |
+
LAMTOR3
|
| 1749 |
+
LAP3
|
| 1750 |
+
LAT
|
| 1751 |
+
LAT2
|
| 1752 |
+
LATS1
|
| 1753 |
+
LATS2
|
| 1754 |
+
LBR
|
| 1755 |
+
LCAT
|
| 1756 |
+
LCK
|
| 1757 |
+
LDHA
|
| 1758 |
+
LDLR
|
| 1759 |
+
LDLRAP1
|
| 1760 |
+
LECT1
|
| 1761 |
+
LEF1
|
| 1762 |
+
LEFTY1
|
| 1763 |
+
LEP
|
| 1764 |
+
LEPR
|
| 1765 |
+
LGALS3
|
| 1766 |
+
LGALS4
|
| 1767 |
+
LGALS8
|
| 1768 |
+
LGMN
|
| 1769 |
+
LGSN
|
| 1770 |
+
LHCGR
|
| 1771 |
+
LIF
|
| 1772 |
+
LIFR
|
| 1773 |
+
LIG1
|
| 1774 |
+
LIG3
|
| 1775 |
+
LIG4
|
| 1776 |
+
LIMD1
|
| 1777 |
+
LIMK1
|
| 1778 |
+
LIPA
|
| 1779 |
+
LIPE
|
| 1780 |
+
LIX1L
|
| 1781 |
+
LLGL1
|
| 1782 |
+
LLGL2
|
| 1783 |
+
LMNA
|
| 1784 |
+
LMNB1
|
| 1785 |
+
LMNB2
|
| 1786 |
+
LMO1
|
| 1787 |
+
LMO2
|
| 1788 |
+
LMO7
|
| 1789 |
+
LOX
|
| 1790 |
+
LOXL1
|
| 1791 |
+
LPAR1
|
| 1792 |
+
LPAR2
|
| 1793 |
+
LPGAT1
|
| 1794 |
+
LPIN1
|
| 1795 |
+
LPL
|
| 1796 |
+
LPP
|
| 1797 |
+
LRG1
|
| 1798 |
+
LRMP
|
| 1799 |
+
LRP1
|
| 1800 |
+
LRP10
|
| 1801 |
+
LRP12
|
| 1802 |
+
LRP1B
|
| 1803 |
+
LRP5
|
| 1804 |
+
LRP6
|
| 1805 |
+
LRPAP1
|
| 1806 |
+
LRRC16A
|
| 1807 |
+
LRRC32
|
| 1808 |
+
LRRC41
|
| 1809 |
+
LSM5
|
| 1810 |
+
LSM6
|
| 1811 |
+
LSR
|
| 1812 |
+
LTA
|
| 1813 |
+
LTA4H
|
| 1814 |
+
LTB
|
| 1815 |
+
LTB4R
|
| 1816 |
+
LTBP1
|
| 1817 |
+
LTBP2
|
| 1818 |
+
LTBR
|
| 1819 |
+
LTK
|
| 1820 |
+
LY86
|
| 1821 |
+
LY96
|
| 1822 |
+
LYL1
|
| 1823 |
+
LYN
|
| 1824 |
+
LYPLA1
|
| 1825 |
+
LYRM1
|
| 1826 |
+
LYZ
|
| 1827 |
+
LZTR1
|
| 1828 |
+
MACF1
|
| 1829 |
+
MAD2L1
|
| 1830 |
+
MAD2L2
|
| 1831 |
+
MADD
|
| 1832 |
+
MAG
|
| 1833 |
+
MAGI1
|
| 1834 |
+
MAGI2
|
| 1835 |
+
MALT1
|
| 1836 |
+
MAMLD1
|
| 1837 |
+
MAN1A1
|
| 1838 |
+
MAN1A2
|
| 1839 |
+
MAN1B1
|
| 1840 |
+
MAN1C1
|
| 1841 |
+
MAN2A1
|
| 1842 |
+
MAN2A2
|
| 1843 |
+
MAN2B1
|
| 1844 |
+
MANBA
|
| 1845 |
+
MAP1B
|
| 1846 |
+
MAP1LC3A
|
| 1847 |
+
MAP1LC3B
|
| 1848 |
+
MAP2K1
|
| 1849 |
+
MAP2K2
|
| 1850 |
+
MAP2K3
|
| 1851 |
+
MAP2K4
|
| 1852 |
+
MAP2K5
|
| 1853 |
+
MAP2K6
|
| 1854 |
+
MAP2K7
|
| 1855 |
+
MAP3K1
|
| 1856 |
+
MAP3K2
|
| 1857 |
+
MAP3K3
|
| 1858 |
+
MAP3K4
|
| 1859 |
+
MAP3K7
|
| 1860 |
+
MAP4K1
|
| 1861 |
+
MAP4K4
|
| 1862 |
+
MAP7
|
| 1863 |
+
MAPK1
|
| 1864 |
+
MAPK10
|
| 1865 |
+
MAPK11
|
| 1866 |
+
MAPK12
|
| 1867 |
+
MAPK13
|
| 1868 |
+
MAPK14
|
| 1869 |
+
MAPK1IP1L
|
| 1870 |
+
MAPK3
|
| 1871 |
+
MAPK6
|
| 1872 |
+
MAPK7
|
| 1873 |
+
MAPK8
|
| 1874 |
+
MAPK8IP2
|
| 1875 |
+
MAPK8IP3
|
| 1876 |
+
MAPK9
|
| 1877 |
+
MAPKAP1
|
| 1878 |
+
MAPKAPK2
|
| 1879 |
+
MAPKAPK3
|
| 1880 |
+
MAPKAPK5
|
| 1881 |
+
MAPRE1
|
| 1882 |
+
MAPRE2
|
| 1883 |
+
MARCO
|
| 1884 |
+
MARK2
|
| 1885 |
+
MAST2
|
| 1886 |
+
MAT2A
|
| 1887 |
+
MATK
|
| 1888 |
+
MAX
|
| 1889 |
+
MAZ
|
| 1890 |
+
MBD1
|
| 1891 |
+
MBD4
|
| 1892 |
+
MBL2
|
| 1893 |
+
MBNL1
|
| 1894 |
+
MBNL2
|
| 1895 |
+
MBOAT7
|
| 1896 |
+
MBTPS1
|
| 1897 |
+
MC3R
|
| 1898 |
+
MCAM
|
| 1899 |
+
MCEE
|
| 1900 |
+
MCHR1
|
| 1901 |
+
MCL1
|
| 1902 |
+
MCM2
|
| 1903 |
+
MCM3
|
| 1904 |
+
MCM4
|
| 1905 |
+
MCM5
|
| 1906 |
+
MCOLN1
|
| 1907 |
+
MCOLN3
|
| 1908 |
+
MCPH1
|
| 1909 |
+
MDC1
|
| 1910 |
+
MDH1
|
| 1911 |
+
MDH1B
|
| 1912 |
+
MDH2
|
| 1913 |
+
MDK
|
| 1914 |
+
MDM2
|
| 1915 |
+
MDM4
|
| 1916 |
+
ME1
|
| 1917 |
+
ME2
|
| 1918 |
+
MECOM
|
| 1919 |
+
MED1
|
| 1920 |
+
MEF2A
|
| 1921 |
+
MEF2C
|
| 1922 |
+
MEFV
|
| 1923 |
+
MEIS1
|
| 1924 |
+
MELK
|
| 1925 |
+
MEN1
|
| 1926 |
+
MERTK
|
| 1927 |
+
MEST
|
| 1928 |
+
MET
|
| 1929 |
+
METAP2
|
| 1930 |
+
METRN
|
| 1931 |
+
MFGE8
|
| 1932 |
+
MFSD10
|
| 1933 |
+
MFSD11
|
| 1934 |
+
MGAT1
|
| 1935 |
+
MGAT2
|
| 1936 |
+
MGAT3
|
| 1937 |
+
MGAT4A
|
| 1938 |
+
MGAT4B
|
| 1939 |
+
MGAT4C
|
| 1940 |
+
MGAT5
|
| 1941 |
+
MGAT5B
|
| 1942 |
+
MGMT
|
| 1943 |
+
MGST1
|
| 1944 |
+
MICA
|
| 1945 |
+
MICALL1
|
| 1946 |
+
MICB
|
| 1947 |
+
MIF
|
| 1948 |
+
MIS12
|
| 1949 |
+
MKI67
|
| 1950 |
+
MKNK1
|
| 1951 |
+
MLEC
|
| 1952 |
+
MLH1
|
| 1953 |
+
MLH3
|
| 1954 |
+
MLLT11
|
| 1955 |
+
MLLT4
|
| 1956 |
+
MLST8
|
| 1957 |
+
MLXIPL
|
| 1958 |
+
MLYCD
|
| 1959 |
+
MMD
|
| 1960 |
+
MME
|
| 1961 |
+
MMP1
|
| 1962 |
+
MMP10
|
| 1963 |
+
MMP11
|
| 1964 |
+
MMP12
|
| 1965 |
+
MMP13
|
| 1966 |
+
MMP14
|
| 1967 |
+
MMP15
|
| 1968 |
+
MMP16
|
| 1969 |
+
MMP2
|
| 1970 |
+
MMP3
|
| 1971 |
+
MMP7
|
| 1972 |
+
MMP8
|
| 1973 |
+
MMP9
|
| 1974 |
+
MMS19
|
| 1975 |
+
MN1
|
| 1976 |
+
MNAT1
|
| 1977 |
+
MOB1A
|
| 1978 |
+
MOB1B
|
| 1979 |
+
MOGS
|
| 1980 |
+
MOK
|
| 1981 |
+
MOS
|
| 1982 |
+
MPDZ
|
| 1983 |
+
MPG
|
| 1984 |
+
MPL
|
| 1985 |
+
MPO
|
| 1986 |
+
MPP5
|
| 1987 |
+
MPP6
|
| 1988 |
+
MPZL1
|
| 1989 |
+
MRC1
|
| 1990 |
+
MRCL3
|
| 1991 |
+
MRE11A
|
| 1992 |
+
MRPL12
|
| 1993 |
+
MRPL19
|
| 1994 |
+
MRPL57
|
| 1995 |
+
MRPS16
|
| 1996 |
+
MRPS2
|
| 1997 |
+
MS4A1
|
| 1998 |
+
MS4A2
|
| 1999 |
+
MSH2
|
| 2000 |
+
MSH3
|
| 2001 |
+
MSH4
|
| 2002 |
+
MSH5
|
| 2003 |
+
MSH6
|
| 2004 |
+
MSN
|
| 2005 |
+
MSRA
|
| 2006 |
+
MST1
|
| 2007 |
+
MST1R
|
| 2008 |
+
MSTN
|
| 2009 |
+
MSX1
|
| 2010 |
+
MSX2
|
| 2011 |
+
MT1A
|
| 2012 |
+
MT1E
|
| 2013 |
+
MT2A
|
| 2014 |
+
MTA1
|
| 2015 |
+
MTCP1
|
| 2016 |
+
MTDH
|
| 2017 |
+
MTERFD1
|
| 2018 |
+
MTF2
|
| 2019 |
+
MTFP1
|
| 2020 |
+
MTFR1
|
| 2021 |
+
MTHFD1
|
| 2022 |
+
MTHFD2
|
| 2023 |
+
MTHFR
|
| 2024 |
+
MTO1
|
| 2025 |
+
MTOR
|
| 2026 |
+
MTSS1
|
| 2027 |
+
MUC1
|
| 2028 |
+
MUSK
|
| 2029 |
+
MUT
|
| 2030 |
+
MUTYH
|
| 2031 |
+
MVD
|
| 2032 |
+
MVK
|
| 2033 |
+
MVP
|
| 2034 |
+
MX1
|
| 2035 |
+
MYB
|
| 2036 |
+
MYBL1
|
| 2037 |
+
MYBL2
|
| 2038 |
+
MYC
|
| 2039 |
+
MYCBP
|
| 2040 |
+
MYCBP2
|
| 2041 |
+
MYCL
|
| 2042 |
+
MYCN
|
| 2043 |
+
MYD88
|
| 2044 |
+
MYH10
|
| 2045 |
+
MYH3
|
| 2046 |
+
MYH9
|
| 2047 |
+
MYL9
|
| 2048 |
+
MYLK
|
| 2049 |
+
MYO10
|
| 2050 |
+
MYO1C
|
| 2051 |
+
MYOD1
|
| 2052 |
+
NAGPA
|
| 2053 |
+
NAIP
|
| 2054 |
+
NAMPT
|
| 2055 |
+
NANOG
|
| 2056 |
+
NAP1L1
|
| 2057 |
+
NARFL
|
| 2058 |
+
NAV2
|
| 2059 |
+
NBN
|
| 2060 |
+
NCAM1
|
| 2061 |
+
NCAPD2
|
| 2062 |
+
NCK1
|
| 2063 |
+
NCK2
|
| 2064 |
+
NCL
|
| 2065 |
+
NCOA2
|
| 2066 |
+
NCOA3
|
| 2067 |
+
NCOA6
|
| 2068 |
+
NCOR2
|
| 2069 |
+
NDRG3
|
| 2070 |
+
NDUFB6
|
| 2071 |
+
NEIL1
|
| 2072 |
+
NEIL2
|
| 2073 |
+
NEIL3
|
| 2074 |
+
NENF
|
| 2075 |
+
NET1
|
| 2076 |
+
NEU1
|
| 2077 |
+
NEU2
|
| 2078 |
+
NEU3
|
| 2079 |
+
NEU4
|
| 2080 |
+
NEUROD1
|
| 2081 |
+
NF1
|
| 2082 |
+
NF2
|
| 2083 |
+
NFAT5
|
| 2084 |
+
NFATC1
|
| 2085 |
+
NFATC2
|
| 2086 |
+
NFATC3
|
| 2087 |
+
NFATC4
|
| 2088 |
+
NFE2L2
|
| 2089 |
+
NFIB
|
| 2090 |
+
NFIL3
|
| 2091 |
+
NFKB1
|
| 2092 |
+
NFKB2
|
| 2093 |
+
NFKBIA
|
| 2094 |
+
NFKBIB
|
| 2095 |
+
NFKBIE
|
| 2096 |
+
NFKBIL1
|
| 2097 |
+
NFRKB
|
| 2098 |
+
NGFR
|
| 2099 |
+
NGRN
|
| 2100 |
+
NHLH2
|
| 2101 |
+
NIPSNAP1
|
| 2102 |
+
NISCH
|
| 2103 |
+
NIT1
|
| 2104 |
+
NKD1
|
| 2105 |
+
NKX2-1
|
| 2106 |
+
NKX3-1
|
| 2107 |
+
NLK
|
| 2108 |
+
NLRC4
|
| 2109 |
+
NLRC5
|
| 2110 |
+
NLRP1
|
| 2111 |
+
NLRP12
|
| 2112 |
+
NLRP3
|
| 2113 |
+
NLRP4
|
| 2114 |
+
NLRP5
|
| 2115 |
+
NLRP6
|
| 2116 |
+
NLRP9
|
| 2117 |
+
NLRX1
|
| 2118 |
+
NMB
|
| 2119 |
+
NMBR
|
| 2120 |
+
NME1
|
| 2121 |
+
NME4
|
| 2122 |
+
NMT1
|
| 2123 |
+
NMU
|
| 2124 |
+
NMUR1
|
| 2125 |
+
NNT
|
| 2126 |
+
NOD1
|
| 2127 |
+
NOD2
|
| 2128 |
+
NODAL
|
| 2129 |
+
NOG
|
| 2130 |
+
NOL3
|
| 2131 |
+
NOLC1
|
| 2132 |
+
NOS2
|
| 2133 |
+
NOS3
|
| 2134 |
+
NOSIP
|
| 2135 |
+
NOTCH1
|
| 2136 |
+
NOTCH2
|
| 2137 |
+
NOTCH3
|
| 2138 |
+
NOTCH4
|
| 2139 |
+
NOV
|
| 2140 |
+
NPC1
|
| 2141 |
+
NPC1L1
|
| 2142 |
+
NPDC1
|
| 2143 |
+
NPEPL1
|
| 2144 |
+
NPHP4
|
| 2145 |
+
NPM1
|
| 2146 |
+
NPPB
|
| 2147 |
+
NPR1
|
| 2148 |
+
NPRL2
|
| 2149 |
+
NPY
|
| 2150 |
+
NPY1R
|
| 2151 |
+
NQO1
|
| 2152 |
+
NR0B2
|
| 2153 |
+
NR1H2
|
| 2154 |
+
NR1H3
|
| 2155 |
+
NR1H4
|
| 2156 |
+
NR2C2
|
| 2157 |
+
NR2F6
|
| 2158 |
+
NR3C1
|
| 2159 |
+
NR4A1
|
| 2160 |
+
NR4A2
|
| 2161 |
+
NR4A3
|
| 2162 |
+
NR5A2
|
| 2163 |
+
NRAS
|
| 2164 |
+
NRCAM
|
| 2165 |
+
NRF1
|
| 2166 |
+
NRIP1
|
| 2167 |
+
NRP1
|
| 2168 |
+
NRP2
|
| 2169 |
+
NSDHL
|
| 2170 |
+
NSF
|
| 2171 |
+
NT5DC2
|
| 2172 |
+
NTHL1
|
| 2173 |
+
NTRK1
|
| 2174 |
+
NTRK2
|
| 2175 |
+
NTRK3
|
| 2176 |
+
NTS
|
| 2177 |
+
NTSR1
|
| 2178 |
+
NUCB2
|
| 2179 |
+
NUDCD3
|
| 2180 |
+
NUDT13
|
| 2181 |
+
NUDT9
|
| 2182 |
+
NUP133
|
| 2183 |
+
NUP62
|
| 2184 |
+
NUP85
|
| 2185 |
+
NUP88
|
| 2186 |
+
NUP93
|
| 2187 |
+
NUSAP1
|
| 2188 |
+
NVL
|
| 2189 |
+
NXT2
|
| 2190 |
+
OAS1
|
| 2191 |
+
OCLN
|
| 2192 |
+
ODC1
|
| 2193 |
+
OGDH
|
| 2194 |
+
OGG1
|
| 2195 |
+
OGT
|
| 2196 |
+
OLR1
|
| 2197 |
+
OPCML
|
| 2198 |
+
OPRD1
|
| 2199 |
+
OPRK1
|
| 2200 |
+
OPRM1
|
| 2201 |
+
OR10J3
|
| 2202 |
+
ORC1
|
| 2203 |
+
OSBPL1A
|
| 2204 |
+
OSBPL5
|
| 2205 |
+
OSM
|
| 2206 |
+
OSMR
|
| 2207 |
+
OXA1L
|
| 2208 |
+
OXCT1
|
| 2209 |
+
OXCT2
|
| 2210 |
+
OXSR1
|
| 2211 |
+
P2RX6
|
| 2212 |
+
P2RX7
|
| 2213 |
+
P4HA2
|
| 2214 |
+
P4HTM
|
| 2215 |
+
PA2G4
|
| 2216 |
+
PABPC1
|
| 2217 |
+
PACSIN3
|
| 2218 |
+
PAF1
|
| 2219 |
+
PAFAH1B1
|
| 2220 |
+
PAFAH1B3
|
| 2221 |
+
PAG1
|
| 2222 |
+
PAICS
|
| 2223 |
+
PAK1
|
| 2224 |
+
PAK2
|
| 2225 |
+
PAK3
|
| 2226 |
+
PAK4
|
| 2227 |
+
PAK6
|
| 2228 |
+
PAN2
|
| 2229 |
+
PANX1
|
| 2230 |
+
PANX2
|
| 2231 |
+
PANX3
|
| 2232 |
+
PAPD7
|
| 2233 |
+
PARD3
|
| 2234 |
+
PARD6A
|
| 2235 |
+
PARD6B
|
| 2236 |
+
PARD6G
|
| 2237 |
+
PARP1
|
| 2238 |
+
PARP2
|
| 2239 |
+
PARP3
|
| 2240 |
+
PARVA
|
| 2241 |
+
PARVB
|
| 2242 |
+
PARVG
|
| 2243 |
+
PAWR
|
| 2244 |
+
PAX5
|
| 2245 |
+
PAX8
|
| 2246 |
+
PC
|
| 2247 |
+
PCBD1
|
| 2248 |
+
PCCB
|
| 2249 |
+
PCGF2
|
| 2250 |
+
PCK1
|
| 2251 |
+
PCM1
|
| 2252 |
+
PCMT1
|
| 2253 |
+
PCNA
|
| 2254 |
+
PCSK9
|
| 2255 |
+
PDCD1
|
| 2256 |
+
PDCD7
|
| 2257 |
+
PDE3B
|
| 2258 |
+
PDGFA
|
| 2259 |
+
PDGFB
|
| 2260 |
+
PDGFC
|
| 2261 |
+
PDGFD
|
| 2262 |
+
PDGFRA
|
| 2263 |
+
PDGFRB
|
| 2264 |
+
PDHA1
|
| 2265 |
+
PDHB
|
| 2266 |
+
PDHX
|
| 2267 |
+
PDIA5
|
| 2268 |
+
PDK1
|
| 2269 |
+
PDK2
|
| 2270 |
+
PDK3
|
| 2271 |
+
PDK4
|
| 2272 |
+
PDLIM1
|
| 2273 |
+
PDLIM4
|
| 2274 |
+
PDLIM7
|
| 2275 |
+
PDP1
|
| 2276 |
+
PDP2
|
| 2277 |
+
PDPK1
|
| 2278 |
+
PDPR
|
| 2279 |
+
PDS5A
|
| 2280 |
+
PDX1
|
| 2281 |
+
PEA15
|
| 2282 |
+
PECAM1
|
| 2283 |
+
PECR
|
| 2284 |
+
PELI1
|
| 2285 |
+
PER1
|
| 2286 |
+
PER2
|
| 2287 |
+
PERP
|
| 2288 |
+
PES1
|
| 2289 |
+
PEX11A
|
| 2290 |
+
PF4
|
| 2291 |
+
PF4V1
|
| 2292 |
+
PFKL
|
| 2293 |
+
PFN1
|
| 2294 |
+
PGAM1
|
| 2295 |
+
PGAM2
|
| 2296 |
+
PGF
|
| 2297 |
+
PGK1
|
| 2298 |
+
PGK2
|
| 2299 |
+
PGLS
|
| 2300 |
+
PGLYRP1
|
| 2301 |
+
PGM1
|
| 2302 |
+
PGM2
|
| 2303 |
+
PGM3
|
| 2304 |
+
PGR
|
| 2305 |
+
PGRMC1
|
| 2306 |
+
PHB
|
| 2307 |
+
PHF15
|
| 2308 |
+
PHF21A
|
| 2309 |
+
PHGDH
|
| 2310 |
+
PHKA1
|
| 2311 |
+
PHKB
|
| 2312 |
+
PHKG1
|
| 2313 |
+
PHKG2
|
| 2314 |
+
PIAS1
|
| 2315 |
+
PIAS2
|
| 2316 |
+
PIAS3
|
| 2317 |
+
PIDD
|
| 2318 |
+
PIGB
|
| 2319 |
+
PIH1D1
|
| 2320 |
+
PIK3C2A
|
| 2321 |
+
PIK3C2B
|
| 2322 |
+
PIK3C3
|
| 2323 |
+
PIK3CA
|
| 2324 |
+
PIK3CB
|
| 2325 |
+
PIK3CD
|
| 2326 |
+
PIK3CG
|
| 2327 |
+
PIK3R1
|
| 2328 |
+
PIK3R2
|
| 2329 |
+
PIK3R3
|
| 2330 |
+
PIK3R4
|
| 2331 |
+
PIK3R5
|
| 2332 |
+
PIM1
|
| 2333 |
+
PIN1
|
| 2334 |
+
PINX1
|
| 2335 |
+
PIP4K2B
|
| 2336 |
+
PIP5K1A
|
| 2337 |
+
PIP5K1C
|
| 2338 |
+
PITX2
|
| 2339 |
+
PKD2
|
| 2340 |
+
PKIG
|
| 2341 |
+
PKLR
|
| 2342 |
+
PKM
|
| 2343 |
+
PKP1
|
| 2344 |
+
PKP2
|
| 2345 |
+
PKP3
|
| 2346 |
+
PKP4
|
| 2347 |
+
PLA2G10
|
| 2348 |
+
PLA2G12A
|
| 2349 |
+
PLA2G12B
|
| 2350 |
+
PLA2G15
|
| 2351 |
+
PLA2G1B
|
| 2352 |
+
PLA2G2A
|
| 2353 |
+
PLA2G2D
|
| 2354 |
+
PLA2G2E
|
| 2355 |
+
PLA2G2F
|
| 2356 |
+
PLA2G3
|
| 2357 |
+
PLA2G4A
|
| 2358 |
+
PLA2G4B
|
| 2359 |
+
PLA2G5
|
| 2360 |
+
PLA2G6
|
| 2361 |
+
PLAU
|
| 2362 |
+
PLAUR
|
| 2363 |
+
PLCB1
|
| 2364 |
+
PLCB2
|
| 2365 |
+
PLCB3
|
| 2366 |
+
PLCG1
|
| 2367 |
+
PLCG2
|
| 2368 |
+
PLD1
|
| 2369 |
+
PLD2
|
| 2370 |
+
PLD3
|
| 2371 |
+
PLEC
|
| 2372 |
+
PLEK2
|
| 2373 |
+
PLEKHF1
|
| 2374 |
+
PLEKHJ1
|
| 2375 |
+
PLEKHM1
|
| 2376 |
+
PLG
|
| 2377 |
+
PLK1
|
| 2378 |
+
PLOD3
|
| 2379 |
+
PLP2
|
| 2380 |
+
PLS1
|
| 2381 |
+
PLSCR1
|
| 2382 |
+
PLSCR3
|
| 2383 |
+
PLTP
|
| 2384 |
+
PMAIP1
|
| 2385 |
+
PMCH
|
| 2386 |
+
PMEPA1
|
| 2387 |
+
PML
|
| 2388 |
+
PMM2
|
| 2389 |
+
PMS1
|
| 2390 |
+
PMS2
|
| 2391 |
+
PMVK
|
| 2392 |
+
PNKP
|
| 2393 |
+
PNN
|
| 2394 |
+
PNP
|
| 2395 |
+
PNPLA3
|
| 2396 |
+
POFUT1
|
| 2397 |
+
POFUT2
|
| 2398 |
+
POLB
|
| 2399 |
+
POLD2
|
| 2400 |
+
POLD3
|
| 2401 |
+
POLD4
|
| 2402 |
+
POLE2
|
| 2403 |
+
POLG2
|
| 2404 |
+
POLL
|
| 2405 |
+
POLR1C
|
| 2406 |
+
POLR2F
|
| 2407 |
+
POLR2I
|
| 2408 |
+
POLR2K
|
| 2409 |
+
POMC
|
| 2410 |
+
POMGNT1
|
| 2411 |
+
POMT1
|
| 2412 |
+
POMT2
|
| 2413 |
+
PON1
|
| 2414 |
+
POP4
|
| 2415 |
+
PORCN
|
| 2416 |
+
POSTN
|
| 2417 |
+
POTEF
|
| 2418 |
+
POU2F1
|
| 2419 |
+
POU2F2
|
| 2420 |
+
POU5F1
|
| 2421 |
+
PPA1
|
| 2422 |
+
PPAP2B
|
| 2423 |
+
PPARA
|
| 2424 |
+
PPARD
|
| 2425 |
+
PPARG
|
| 2426 |
+
PPARGC1A
|
| 2427 |
+
PPARGC1B
|
| 2428 |
+
PPAT
|
| 2429 |
+
PPBP
|
| 2430 |
+
PPIC
|
| 2431 |
+
PPIE
|
| 2432 |
+
PPL
|
| 2433 |
+
PPM1D
|
| 2434 |
+
PPOX
|
| 2435 |
+
PPP1CA
|
| 2436 |
+
PPP1R13B
|
| 2437 |
+
PPP1R15A
|
| 2438 |
+
PPP2CA
|
| 2439 |
+
PPP2CB
|
| 2440 |
+
PPP2R1A
|
| 2441 |
+
PPP2R1B
|
| 2442 |
+
PPP2R2B
|
| 2443 |
+
PPP2R2D
|
| 2444 |
+
PPP2R3C
|
| 2445 |
+
PPP2R4
|
| 2446 |
+
PPP2R5A
|
| 2447 |
+
PPP2R5E
|
| 2448 |
+
PPP3CA
|
| 2449 |
+
PPP3CC
|
| 2450 |
+
PPP3P
|
| 2451 |
+
PPP3R1
|
| 2452 |
+
PPP3R2
|
| 2453 |
+
PPRC1
|
| 2454 |
+
PRAF2
|
| 2455 |
+
PRC1
|
| 2456 |
+
PRCP
|
| 2457 |
+
PRDM16
|
| 2458 |
+
PRDM2
|
| 2459 |
+
PRDX1
|
| 2460 |
+
PRDX6
|
| 2461 |
+
PRF1
|
| 2462 |
+
PRG2
|
| 2463 |
+
PRICKLE1
|
| 2464 |
+
PRKAA1
|
| 2465 |
+
PRKAA2
|
| 2466 |
+
PRKAB1
|
| 2467 |
+
PRKAB2
|
| 2468 |
+
PRKACA
|
| 2469 |
+
PRKACG
|
| 2470 |
+
PRKAG1
|
| 2471 |
+
PRKAG2
|
| 2472 |
+
PRKAG3
|
| 2473 |
+
PRKAP
|
| 2474 |
+
PRKAR1A
|
| 2475 |
+
PRKCA
|
| 2476 |
+
PRKCB
|
| 2477 |
+
PRKCD
|
| 2478 |
+
PRKCE
|
| 2479 |
+
PRKCG
|
| 2480 |
+
PRKCH
|
| 2481 |
+
PRKCI
|
| 2482 |
+
PRKCQ
|
| 2483 |
+
PRKCSH
|
| 2484 |
+
PRKCZ
|
| 2485 |
+
PRKDC
|
| 2486 |
+
PRKG1
|
| 2487 |
+
PRKG2
|
| 2488 |
+
PRKRA
|
| 2489 |
+
PRKX
|
| 2490 |
+
PRL
|
| 2491 |
+
PRLHR
|
| 2492 |
+
PRLR
|
| 2493 |
+
PRMT6
|
| 2494 |
+
PROK1
|
| 2495 |
+
PROK2
|
| 2496 |
+
PROS1
|
| 2497 |
+
PRPF4
|
| 2498 |
+
PRPF8
|
| 2499 |
+
PRPS1
|
| 2500 |
+
PRPS1L1
|
| 2501 |
+
PRPS2
|
| 2502 |
+
PRR15L
|
| 2503 |
+
PRR7
|
| 2504 |
+
PRSS23
|
| 2505 |
+
PRUNE
|
| 2506 |
+
PSD3
|
| 2507 |
+
PSIP1
|
| 2508 |
+
PSMB10
|
| 2509 |
+
PSMB8
|
| 2510 |
+
PSMB9
|
| 2511 |
+
PSMC1
|
| 2512 |
+
PSMC5
|
| 2513 |
+
PSMD10
|
| 2514 |
+
PSMD2
|
| 2515 |
+
PSMD4
|
| 2516 |
+
PSMD5
|
| 2517 |
+
PSMD9
|
| 2518 |
+
PSME1
|
| 2519 |
+
PSME2
|
| 2520 |
+
PSMF1
|
| 2521 |
+
PSMG1
|
| 2522 |
+
PSMG2
|
| 2523 |
+
PSRC1
|
| 2524 |
+
PSTPIP1
|
| 2525 |
+
PTCH1
|
| 2526 |
+
PTDSS2
|
| 2527 |
+
PTEN
|
| 2528 |
+
PTGDR
|
| 2529 |
+
PTGDR2
|
| 2530 |
+
PTGER2
|
| 2531 |
+
PTGS1
|
| 2532 |
+
PTGS2
|
| 2533 |
+
PTH1R
|
| 2534 |
+
PTHLH
|
| 2535 |
+
PTK2
|
| 2536 |
+
PTK2B
|
| 2537 |
+
PTK6
|
| 2538 |
+
PTK7
|
| 2539 |
+
PTN
|
| 2540 |
+
PTP4A1
|
| 2541 |
+
PTPLAD1
|
| 2542 |
+
PTPN1
|
| 2543 |
+
PTPN11
|
| 2544 |
+
PTPN12
|
| 2545 |
+
PTPN14
|
| 2546 |
+
PTPN6
|
| 2547 |
+
PTPRC
|
| 2548 |
+
PTPRF
|
| 2549 |
+
PTPRK
|
| 2550 |
+
PTTG1
|
| 2551 |
+
PUF60
|
| 2552 |
+
PVR
|
| 2553 |
+
PVRL1
|
| 2554 |
+
PVRL2
|
| 2555 |
+
PVRL3
|
| 2556 |
+
PVRL4
|
| 2557 |
+
PWP1
|
| 2558 |
+
PXMP2
|
| 2559 |
+
PXN
|
| 2560 |
+
PYCARD
|
| 2561 |
+
PYCR1
|
| 2562 |
+
PYDC1
|
| 2563 |
+
PYGL
|
| 2564 |
+
PYGM
|
| 2565 |
+
PYGO1
|
| 2566 |
+
PYY
|
| 2567 |
+
QARS
|
| 2568 |
+
QPRT
|
| 2569 |
+
RAB11FIP2
|
| 2570 |
+
RAB21
|
| 2571 |
+
RAB24
|
| 2572 |
+
RAB25
|
| 2573 |
+
RAB27A
|
| 2574 |
+
RAB31
|
| 2575 |
+
RAB4A
|
| 2576 |
+
RAB5A
|
| 2577 |
+
RAB7A
|
| 2578 |
+
RAC1
|
| 2579 |
+
RAC2
|
| 2580 |
+
RAD1
|
| 2581 |
+
RAD17
|
| 2582 |
+
RAD18
|
| 2583 |
+
RAD21
|
| 2584 |
+
RAD23A
|
| 2585 |
+
RAD23B
|
| 2586 |
+
RAD50
|
| 2587 |
+
RAD51
|
| 2588 |
+
RAD51B
|
| 2589 |
+
RAD51C
|
| 2590 |
+
RAD51D
|
| 2591 |
+
RAD52
|
| 2592 |
+
RAD54L
|
| 2593 |
+
RAD9A
|
| 2594 |
+
RAE1
|
| 2595 |
+
RAF1
|
| 2596 |
+
RAG1
|
| 2597 |
+
RAI14
|
| 2598 |
+
RALA
|
| 2599 |
+
RALB
|
| 2600 |
+
RALGDS
|
| 2601 |
+
RAMP3
|
| 2602 |
+
RAP1A
|
| 2603 |
+
RAP1B
|
| 2604 |
+
RAP1GAP
|
| 2605 |
+
RAPGEF1
|
| 2606 |
+
RAPGEF3
|
| 2607 |
+
RARA
|
| 2608 |
+
RARB
|
| 2609 |
+
RASA1
|
| 2610 |
+
RASA3
|
| 2611 |
+
RASGRF1
|
| 2612 |
+
RASSF1
|
| 2613 |
+
RASSF2
|
| 2614 |
+
RASSF4
|
| 2615 |
+
RB1
|
| 2616 |
+
RBBP8
|
| 2617 |
+
RBKS
|
| 2618 |
+
RBL1
|
| 2619 |
+
RBL2
|
| 2620 |
+
RBM15B
|
| 2621 |
+
RBM23
|
| 2622 |
+
RBM34
|
| 2623 |
+
RBM39
|
| 2624 |
+
RBM6
|
| 2625 |
+
RBP1
|
| 2626 |
+
RBP4
|
| 2627 |
+
RDX
|
| 2628 |
+
REEP5
|
| 2629 |
+
REL
|
| 2630 |
+
RELA
|
| 2631 |
+
RELB
|
| 2632 |
+
RELN
|
| 2633 |
+
RELT
|
| 2634 |
+
RERE
|
| 2635 |
+
RET
|
| 2636 |
+
RETN
|
| 2637 |
+
RETNLB
|
| 2638 |
+
REV1
|
| 2639 |
+
RFC1
|
| 2640 |
+
RFC2
|
| 2641 |
+
RFC5
|
| 2642 |
+
RFNG
|
| 2643 |
+
RFX5
|
| 2644 |
+
RGS12
|
| 2645 |
+
RGS19
|
| 2646 |
+
RGS2
|
| 2647 |
+
RHEB
|
| 2648 |
+
RHO
|
| 2649 |
+
RHOA
|
| 2650 |
+
RHOB
|
| 2651 |
+
RHOC
|
| 2652 |
+
RHOJ
|
| 2653 |
+
RHOU
|
| 2654 |
+
RICTOR
|
| 2655 |
+
RIPK1
|
| 2656 |
+
RIPK2
|
| 2657 |
+
RNASE2
|
| 2658 |
+
RNASE3
|
| 2659 |
+
RND3
|
| 2660 |
+
RNF128
|
| 2661 |
+
RNF167
|
| 2662 |
+
RNF168
|
| 2663 |
+
RNF19A
|
| 2664 |
+
RNF8
|
| 2665 |
+
RNH1
|
| 2666 |
+
RNMT
|
| 2667 |
+
RNPS1
|
| 2668 |
+
ROCK1
|
| 2669 |
+
ROCK2
|
| 2670 |
+
ROR1
|
| 2671 |
+
ROR2
|
| 2672 |
+
RORA
|
| 2673 |
+
RORB
|
| 2674 |
+
RORC
|
| 2675 |
+
ROS1
|
| 2676 |
+
RPA1
|
| 2677 |
+
RPA2
|
| 2678 |
+
RPA3
|
| 2679 |
+
RPE
|
| 2680 |
+
RPIA
|
| 2681 |
+
RPL13
|
| 2682 |
+
RPL18
|
| 2683 |
+
RPL19
|
| 2684 |
+
RPL23
|
| 2685 |
+
RPL27A
|
| 2686 |
+
RPL37
|
| 2687 |
+
RPL39L
|
| 2688 |
+
RPL5
|
| 2689 |
+
RPN1
|
| 2690 |
+
RPP38
|
| 2691 |
+
RPRM
|
| 2692 |
+
RPS5
|
| 2693 |
+
RPS6
|
| 2694 |
+
RPS6KA1
|
| 2695 |
+
RPS6KA2
|
| 2696 |
+
RPS6KA5
|
| 2697 |
+
RPS6KB1
|
| 2698 |
+
RPS6KB2
|
| 2699 |
+
RPSA
|
| 2700 |
+
RPTOR
|
| 2701 |
+
RRAGA
|
| 2702 |
+
RRAGB
|
| 2703 |
+
RRAGC
|
| 2704 |
+
RRAGD
|
| 2705 |
+
RRAS
|
| 2706 |
+
RRAS2
|
| 2707 |
+
RRP12
|
| 2708 |
+
RRP1B
|
| 2709 |
+
RRP8
|
| 2710 |
+
RRS1
|
| 2711 |
+
RSU1
|
| 2712 |
+
RTN2
|
| 2713 |
+
RUNX1
|
| 2714 |
+
RUNX1T1
|
| 2715 |
+
RUNX2
|
| 2716 |
+
RUNX3
|
| 2717 |
+
RUVBL1
|
| 2718 |
+
RXRA
|
| 2719 |
+
RXRB
|
| 2720 |
+
RXRG
|
| 2721 |
+
RYBP
|
| 2722 |
+
RYK
|
| 2723 |
+
S100A13
|
| 2724 |
+
S100A4
|
| 2725 |
+
S100A7A
|
| 2726 |
+
S100A8
|
| 2727 |
+
S1PR1
|
| 2728 |
+
S1PR2
|
| 2729 |
+
S1PR3
|
| 2730 |
+
SACM1L
|
| 2731 |
+
SARM1
|
| 2732 |
+
SARS
|
| 2733 |
+
SATB1
|
| 2734 |
+
SAV1
|
| 2735 |
+
SCAF11
|
| 2736 |
+
SCAND1
|
| 2737 |
+
SCAP
|
| 2738 |
+
SCARB1
|
| 2739 |
+
SCARF1
|
| 2740 |
+
SCCPDH
|
| 2741 |
+
SCD
|
| 2742 |
+
SCGB1A1
|
| 2743 |
+
SCNM1
|
| 2744 |
+
SCP2
|
| 2745 |
+
SCRIB
|
| 2746 |
+
SCRN1
|
| 2747 |
+
SCTR
|
| 2748 |
+
SCYL3
|
| 2749 |
+
SDHA
|
| 2750 |
+
SDHB
|
| 2751 |
+
SDHC
|
| 2752 |
+
SDHD
|
| 2753 |
+
SELE
|
| 2754 |
+
SELL
|
| 2755 |
+
SELP
|
| 2756 |
+
SENP6
|
| 2757 |
+
2024-09-07 00:00:00
|
| 2758 |
+
SEPW1
|
| 2759 |
+
SERPINA3
|
| 2760 |
+
SERPINB2
|
| 2761 |
+
SERPINB5
|
| 2762 |
+
SERPINC1
|
| 2763 |
+
SERPINE1
|
| 2764 |
+
SERPINF1
|
| 2765 |
+
SERTAD1
|
| 2766 |
+
SESN1
|
| 2767 |
+
SESN2
|
| 2768 |
+
SET
|
| 2769 |
+
SF3A3
|
| 2770 |
+
SFN
|
| 2771 |
+
SFRP1
|
| 2772 |
+
SFRP2
|
| 2773 |
+
SFRP4
|
| 2774 |
+
SFRP5
|
| 2775 |
+
SFTA3
|
| 2776 |
+
SFTPC
|
| 2777 |
+
SFTPD
|
| 2778 |
+
SGCB
|
| 2779 |
+
SGCE
|
| 2780 |
+
SGK1
|
| 2781 |
+
SH2B1
|
| 2782 |
+
SH2D2A
|
| 2783 |
+
SH3BP5
|
| 2784 |
+
SH3GL1
|
| 2785 |
+
SH3PXD2A
|
| 2786 |
+
SHB
|
| 2787 |
+
SHBG
|
| 2788 |
+
SHC1
|
| 2789 |
+
SHC2
|
| 2790 |
+
SHH
|
| 2791 |
+
SHMT1
|
| 2792 |
+
SIAH1
|
| 2793 |
+
SIGIRR
|
| 2794 |
+
SIGLEC1
|
| 2795 |
+
SIGLEC11
|
| 2796 |
+
SIGLEC8
|
| 2797 |
+
SIGMAR1
|
| 2798 |
+
SIRPB1
|
| 2799 |
+
SIRT1
|
| 2800 |
+
SIRT2
|
| 2801 |
+
SIRT3
|
| 2802 |
+
SIX1
|
| 2803 |
+
SKIV2L
|
| 2804 |
+
SKP1
|
| 2805 |
+
SKP2
|
| 2806 |
+
SLC10A6
|
| 2807 |
+
SLC11A1
|
| 2808 |
+
SLC11A2
|
| 2809 |
+
SLC19A1
|
| 2810 |
+
SLC19A2
|
| 2811 |
+
SLC1A4
|
| 2812 |
+
SLC22A5
|
| 2813 |
+
SLC25A13
|
| 2814 |
+
SLC25A14
|
| 2815 |
+
SLC25A4
|
| 2816 |
+
SLC25A46
|
| 2817 |
+
SLC27A1
|
| 2818 |
+
SLC27A2
|
| 2819 |
+
SLC27A3
|
| 2820 |
+
SLC27A4
|
| 2821 |
+
SLC27A5
|
| 2822 |
+
SLC27A6
|
| 2823 |
+
SLC2A1
|
| 2824 |
+
SLC2A2
|
| 2825 |
+
SLC2A4
|
| 2826 |
+
SLC2A6
|
| 2827 |
+
SLC31A1
|
| 2828 |
+
SLC35A1
|
| 2829 |
+
SLC35A3
|
| 2830 |
+
SLC35B1
|
| 2831 |
+
SLC35F2
|
| 2832 |
+
SLC37A4
|
| 2833 |
+
SLC39A6
|
| 2834 |
+
SLC4A1AP
|
| 2835 |
+
SLC5A3
|
| 2836 |
+
SLC5A6
|
| 2837 |
+
SLC5A8
|
| 2838 |
+
SLC7A11
|
| 2839 |
+
SLIT2
|
| 2840 |
+
SLK
|
| 2841 |
+
SMAD1
|
| 2842 |
+
SMAD2
|
| 2843 |
+
SMAD3
|
| 2844 |
+
SMAD4
|
| 2845 |
+
SMAD5
|
| 2846 |
+
SMAD6
|
| 2847 |
+
SMAD7
|
| 2848 |
+
SMARCA4
|
| 2849 |
+
SMARCC1
|
| 2850 |
+
SMARCD2
|
| 2851 |
+
SMARCD3
|
| 2852 |
+
SMC1A
|
| 2853 |
+
SMC3
|
| 2854 |
+
SMC4
|
| 2855 |
+
SMNDC1
|
| 2856 |
+
SMO
|
| 2857 |
+
SMUG1
|
| 2858 |
+
SMURF1
|
| 2859 |
+
SNAI1
|
| 2860 |
+
SNAI2
|
| 2861 |
+
SNAI3
|
| 2862 |
+
SNAP23
|
| 2863 |
+
SNAP25
|
| 2864 |
+
SNCA
|
| 2865 |
+
SNRPB
|
| 2866 |
+
SNTA1
|
| 2867 |
+
SNX11
|
| 2868 |
+
SNX13
|
| 2869 |
+
SNX17
|
| 2870 |
+
SNX25
|
| 2871 |
+
SNX6
|
| 2872 |
+
SNX7
|
| 2873 |
+
SOAT1
|
| 2874 |
+
SOCS1
|
| 2875 |
+
SOCS2
|
| 2876 |
+
SOCS3
|
| 2877 |
+
SOCS4
|
| 2878 |
+
SOCS5
|
| 2879 |
+
SOD1
|
| 2880 |
+
SOD2
|
| 2881 |
+
SORBS1
|
| 2882 |
+
SORBS3
|
| 2883 |
+
SORL1
|
| 2884 |
+
SORT1
|
| 2885 |
+
SOS1
|
| 2886 |
+
SOS2
|
| 2887 |
+
SOSTDC1
|
| 2888 |
+
SOX10
|
| 2889 |
+
SOX17
|
| 2890 |
+
SOX2
|
| 2891 |
+
SOX4
|
| 2892 |
+
SOX9
|
| 2893 |
+
SP1
|
| 2894 |
+
SPAG4
|
| 2895 |
+
SPAG7
|
| 2896 |
+
SPARC
|
| 2897 |
+
SPATA2
|
| 2898 |
+
SPDEF
|
| 2899 |
+
SPEN
|
| 2900 |
+
SPG7
|
| 2901 |
+
SPHK1
|
| 2902 |
+
SPHK2
|
| 2903 |
+
SPI1
|
| 2904 |
+
SPINK1
|
| 2905 |
+
SPINK5
|
| 2906 |
+
SPOP
|
| 2907 |
+
SPP1
|
| 2908 |
+
SPR
|
| 2909 |
+
SPRED2
|
| 2910 |
+
SPRR1A
|
| 2911 |
+
SPSB1
|
| 2912 |
+
SPTA1
|
| 2913 |
+
SPTAN1
|
| 2914 |
+
SPTB
|
| 2915 |
+
SPTLC2
|
| 2916 |
+
SQRDL
|
| 2917 |
+
SQSTM1
|
| 2918 |
+
SRC
|
| 2919 |
+
SREBF1
|
| 2920 |
+
SREBF2
|
| 2921 |
+
SRF
|
| 2922 |
+
SRM
|
| 2923 |
+
SRMS
|
| 2924 |
+
SRSF1
|
| 2925 |
+
SRXN1
|
| 2926 |
+
SSBP2
|
| 2927 |
+
SST
|
| 2928 |
+
SSTR2
|
| 2929 |
+
SSX2IP
|
| 2930 |
+
ST3GAL1
|
| 2931 |
+
ST3GAL2
|
| 2932 |
+
ST3GAL5
|
| 2933 |
+
ST6GAL1
|
| 2934 |
+
ST6GALNAC1
|
| 2935 |
+
ST6GALNAC2
|
| 2936 |
+
ST7
|
| 2937 |
+
ST8SIA2
|
| 2938 |
+
ST8SIA3
|
| 2939 |
+
ST8SIA4
|
| 2940 |
+
ST8SIA6
|
| 2941 |
+
STAB1
|
| 2942 |
+
STAB2
|
| 2943 |
+
STAM
|
| 2944 |
+
STAMBP
|
| 2945 |
+
STAP2
|
| 2946 |
+
STARD3
|
| 2947 |
+
STAT1
|
| 2948 |
+
STAT2
|
| 2949 |
+
STAT3
|
| 2950 |
+
STAT4
|
| 2951 |
+
STAT5A
|
| 2952 |
+
STAT5B
|
| 2953 |
+
STAT6
|
| 2954 |
+
STEAP1
|
| 2955 |
+
STK10
|
| 2956 |
+
STK11
|
| 2957 |
+
STK24
|
| 2958 |
+
STK25
|
| 2959 |
+
STK3
|
| 2960 |
+
STK38L
|
| 2961 |
+
STK4
|
| 2962 |
+
STMN1
|
| 2963 |
+
STRADB
|
| 2964 |
+
STUB1
|
| 2965 |
+
STX11
|
| 2966 |
+
STX18
|
| 2967 |
+
STX1A
|
| 2968 |
+
STX4
|
| 2969 |
+
STXBP1
|
| 2970 |
+
STXBP2
|
| 2971 |
+
SUCLA2
|
| 2972 |
+
SUCLG1
|
| 2973 |
+
SUCLG2
|
| 2974 |
+
SUGT1
|
| 2975 |
+
SUMO1
|
| 2976 |
+
SUMO4
|
| 2977 |
+
SUPT7L
|
| 2978 |
+
SUPV3L1
|
| 2979 |
+
SUV39H1
|
| 2980 |
+
SUZ12
|
| 2981 |
+
SVIL
|
| 2982 |
+
SYCP2
|
| 2983 |
+
SYK
|
| 2984 |
+
SYMPK
|
| 2985 |
+
SYNE2
|
| 2986 |
+
SYNGR3
|
| 2987 |
+
SYPL1
|
| 2988 |
+
T
|
| 2989 |
+
TAB1
|
| 2990 |
+
TAB2
|
| 2991 |
+
TADA3
|
| 2992 |
+
TAL1
|
| 2993 |
+
TALDO1
|
| 2994 |
+
TAOK1
|
| 2995 |
+
TAOK2
|
| 2996 |
+
TAOK3
|
| 2997 |
+
TAP1
|
| 2998 |
+
TAP2
|
| 2999 |
+
TAPBP
|
| 3000 |
+
TARBP1
|
| 3001 |
+
TATDN2
|
| 3002 |
+
TAZ
|
| 3003 |
+
TBC1D9B
|
| 3004 |
+
TBK1
|
| 3005 |
+
TBL1XR1
|
| 3006 |
+
TBP
|
| 3007 |
+
TBPL1
|
| 3008 |
+
TBX2
|
| 3009 |
+
TBX21
|
| 3010 |
+
TBXA2R
|
| 3011 |
+
TCEA2
|
| 3012 |
+
TCEAL4
|
| 3013 |
+
TCERG1
|
| 3014 |
+
TCF20
|
| 3015 |
+
TCF21
|
| 3016 |
+
TCF3
|
| 3017 |
+
TCF4
|
| 3018 |
+
TCF7
|
| 3019 |
+
TCF7L1
|
| 3020 |
+
TCF7L2
|
| 3021 |
+
TCFL5
|
| 3022 |
+
TCL1A
|
| 3023 |
+
TCTA
|
| 3024 |
+
TCTN1
|
| 3025 |
+
TDG
|
| 3026 |
+
TEAD1
|
| 3027 |
+
TEAD2
|
| 3028 |
+
TEAD3
|
| 3029 |
+
TEAD4
|
| 3030 |
+
TEC
|
| 3031 |
+
TEK
|
| 3032 |
+
TELO2
|
| 3033 |
+
TEP1
|
| 3034 |
+
TERF1
|
| 3035 |
+
TERF2IP
|
| 3036 |
+
TERT
|
| 3037 |
+
TES
|
| 3038 |
+
TESK1
|
| 3039 |
+
TEX10
|
| 3040 |
+
TFAP2A
|
| 3041 |
+
TFDP1
|
| 3042 |
+
TFDP2
|
| 3043 |
+
TFF3
|
| 3044 |
+
TFPI2
|
| 3045 |
+
TG
|
| 3046 |
+
TGFA
|
| 3047 |
+
TGFB1
|
| 3048 |
+
TGFB1I1
|
| 3049 |
+
TGFB2
|
| 3050 |
+
TGFB3
|
| 3051 |
+
TGFBI
|
| 3052 |
+
TGFBR1
|
| 3053 |
+
TGFBR2
|
| 3054 |
+
TGFBR3
|
| 3055 |
+
TGFBRAP1
|
| 3056 |
+
TGIF1
|
| 3057 |
+
TGM2
|
| 3058 |
+
TGS1
|
| 3059 |
+
THAP11
|
| 3060 |
+
THBS1
|
| 3061 |
+
THBS2
|
| 3062 |
+
THBS3
|
| 3063 |
+
THPO
|
| 3064 |
+
THRB
|
| 3065 |
+
TIAM1
|
| 3066 |
+
TICAM1
|
| 3067 |
+
TIE1
|
| 3068 |
+
TIFA
|
| 3069 |
+
TIMELESS
|
| 3070 |
+
TIMM10B
|
| 3071 |
+
TIMM17B
|
| 3072 |
+
TIMM22
|
| 3073 |
+
TIMM9
|
| 3074 |
+
TIMP1
|
| 3075 |
+
TIMP2
|
| 3076 |
+
TIMP3
|
| 3077 |
+
TIMP4
|
| 3078 |
+
TINF2
|
| 3079 |
+
TIPARP
|
| 3080 |
+
TIRAP
|
| 3081 |
+
TJAP1
|
| 3082 |
+
TJP1
|
| 3083 |
+
TJP2
|
| 3084 |
+
TJP3
|
| 3085 |
+
TKT
|
| 3086 |
+
TLE1
|
| 3087 |
+
TLK2
|
| 3088 |
+
TLN1
|
| 3089 |
+
TLN2
|
| 3090 |
+
TLR1
|
| 3091 |
+
TLR10
|
| 3092 |
+
TLR2
|
| 3093 |
+
TLR3
|
| 3094 |
+
TLR4
|
| 3095 |
+
TLR5
|
| 3096 |
+
TLR6
|
| 3097 |
+
TLR7
|
| 3098 |
+
TLR8
|
| 3099 |
+
TLR9
|
| 3100 |
+
TLX1
|
| 3101 |
+
TLX3
|
| 3102 |
+
TM6SF1
|
| 3103 |
+
TM7SF2
|
| 3104 |
+
TM9SF2
|
| 3105 |
+
TM9SF3
|
| 3106 |
+
TMCO1
|
| 3107 |
+
TMED10
|
| 3108 |
+
TMEFF1
|
| 3109 |
+
TMEM109
|
| 3110 |
+
TMEM110
|
| 3111 |
+
TMEM132A
|
| 3112 |
+
TMEM2
|
| 3113 |
+
TMEM5
|
| 3114 |
+
TMEM50A
|
| 3115 |
+
TMEM57
|
| 3116 |
+
TMEM74
|
| 3117 |
+
TMEM97
|
| 3118 |
+
TMPRSS2
|
| 3119 |
+
TNC
|
| 3120 |
+
TNF
|
| 3121 |
+
TNFAIP2
|
| 3122 |
+
TNFAIP3
|
| 3123 |
+
TNFRSF10A
|
| 3124 |
+
TNFRSF10B
|
| 3125 |
+
TNFRSF10C
|
| 3126 |
+
TNFRSF10D
|
| 3127 |
+
TNFRSF11A
|
| 3128 |
+
TNFRSF11B
|
| 3129 |
+
TNFRSF12A
|
| 3130 |
+
TNFRSF13B
|
| 3131 |
+
TNFRSF13C
|
| 3132 |
+
TNFRSF14
|
| 3133 |
+
TNFRSF17
|
| 3134 |
+
TNFRSF18
|
| 3135 |
+
TNFRSF19
|
| 3136 |
+
TNFRSF1A
|
| 3137 |
+
TNFRSF1B
|
| 3138 |
+
TNFRSF21
|
| 3139 |
+
TNFRSF25
|
| 3140 |
+
TNFRSF4
|
| 3141 |
+
TNFRSF8
|
| 3142 |
+
TNFRSF9
|
| 3143 |
+
TNFSF10
|
| 3144 |
+
TNFSF11
|
| 3145 |
+
TNFSF12
|
| 3146 |
+
TNFSF13
|
| 3147 |
+
TNFSF13B
|
| 3148 |
+
TNFSF14
|
| 3149 |
+
TNFSF15
|
| 3150 |
+
TNFSF18
|
| 3151 |
+
TNFSF4
|
| 3152 |
+
TNFSF8
|
| 3153 |
+
TNFSF9
|
| 3154 |
+
TNIP1
|
| 3155 |
+
TNK1
|
| 3156 |
+
TNK2
|
| 3157 |
+
TNKS
|
| 3158 |
+
TNKS2
|
| 3159 |
+
TNNI2
|
| 3160 |
+
TNNI3
|
| 3161 |
+
TNS1
|
| 3162 |
+
TOLLIP
|
| 3163 |
+
TOMM34
|
| 3164 |
+
TOMM70A
|
| 3165 |
+
TOP1
|
| 3166 |
+
TOP2A
|
| 3167 |
+
TOP3A
|
| 3168 |
+
TOP3B
|
| 3169 |
+
TOPBP1
|
| 3170 |
+
TOR1A
|
| 3171 |
+
TOX
|
| 3172 |
+
TOX3
|
| 3173 |
+
TP53
|
| 3174 |
+
TP53AIP1
|
| 3175 |
+
TP53BP1
|
| 3176 |
+
TP53BP2
|
| 3177 |
+
TP53INP1
|
| 3178 |
+
TP63
|
| 3179 |
+
TP73
|
| 3180 |
+
TPD52L2
|
| 3181 |
+
TPI1
|
| 3182 |
+
TPM1
|
| 3183 |
+
TPSAB1
|
| 3184 |
+
TRADD
|
| 3185 |
+
TRAF1
|
| 3186 |
+
TRAF2
|
| 3187 |
+
TRAF3
|
| 3188 |
+
TRAF6
|
| 3189 |
+
TRAK2
|
| 3190 |
+
TRAM2
|
| 3191 |
+
TRAP1
|
| 3192 |
+
TRAPPC3
|
| 3193 |
+
TRAPPC6A
|
| 3194 |
+
TRERF1
|
| 3195 |
+
TRH
|
| 3196 |
+
TRIB1
|
| 3197 |
+
TRIB3
|
| 3198 |
+
TRIM10
|
| 3199 |
+
TRIM13
|
| 3200 |
+
TRIM2
|
| 3201 |
+
TRPM1
|
| 3202 |
+
TSC1
|
| 3203 |
+
TSC2
|
| 3204 |
+
TSC22D1
|
| 3205 |
+
TSC22D3
|
| 3206 |
+
TSEN2
|
| 3207 |
+
TSHR
|
| 3208 |
+
TSHZ1
|
| 3209 |
+
TSHZ2
|
| 3210 |
+
TSHZ3
|
| 3211 |
+
TSKU
|
| 3212 |
+
TSLP
|
| 3213 |
+
TSNAX
|
| 3214 |
+
TSPAN13
|
| 3215 |
+
TSPAN3
|
| 3216 |
+
TSPAN4
|
| 3217 |
+
TSPAN6
|
| 3218 |
+
TSTA3
|
| 3219 |
+
TTC1
|
| 3220 |
+
TTC9
|
| 3221 |
+
TUBA1C
|
| 3222 |
+
TUBA3C
|
| 3223 |
+
TUBA4A
|
| 3224 |
+
TUBA4B
|
| 3225 |
+
TUBA8
|
| 3226 |
+
TUBAL3
|
| 3227 |
+
TUBB
|
| 3228 |
+
TUBB1
|
| 3229 |
+
TUBB2A
|
| 3230 |
+
TUBB2B
|
| 3231 |
+
TUBB3
|
| 3232 |
+
TUBB4A
|
| 3233 |
+
TUBB4B
|
| 3234 |
+
TUBB6
|
| 3235 |
+
TUBB8
|
| 3236 |
+
TWF2
|
| 3237 |
+
TWIST1
|
| 3238 |
+
TXK
|
| 3239 |
+
TXLNA
|
| 3240 |
+
TXN
|
| 3241 |
+
TXNDC9
|
| 3242 |
+
TXNIP
|
| 3243 |
+
TXNL4B
|
| 3244 |
+
TXNRD1
|
| 3245 |
+
TYK2
|
| 3246 |
+
TYMP
|
| 3247 |
+
TYMS
|
| 3248 |
+
TYRO3
|
| 3249 |
+
UBASH3B
|
| 3250 |
+
UBE2A
|
| 3251 |
+
UBE2C
|
| 3252 |
+
UBE2J1
|
| 3253 |
+
UBE2L6
|
| 3254 |
+
UBE2N
|
| 3255 |
+
UBE3B
|
| 3256 |
+
UBE3C
|
| 3257 |
+
UBQLN2
|
| 3258 |
+
UBR7
|
| 3259 |
+
UCN
|
| 3260 |
+
UCP1
|
| 3261 |
+
UFM1
|
| 3262 |
+
UGDH
|
| 3263 |
+
UGGT1
|
| 3264 |
+
UGGT2
|
| 3265 |
+
UGP2
|
| 3266 |
+
UGT1A1
|
| 3267 |
+
ULK1
|
| 3268 |
+
ULK2
|
| 3269 |
+
UNG
|
| 3270 |
+
UQCRFS1
|
| 3271 |
+
USF1
|
| 3272 |
+
USP1
|
| 3273 |
+
USP14
|
| 3274 |
+
USP2
|
| 3275 |
+
USP22
|
| 3276 |
+
USP5
|
| 3277 |
+
USP54
|
| 3278 |
+
USP6NL
|
| 3279 |
+
USP7
|
| 3280 |
+
UTP14A
|
| 3281 |
+
UTS2
|
| 3282 |
+
UVRAG
|
| 3283 |
+
VAMP3
|
| 3284 |
+
VAMP7
|
| 3285 |
+
VANGL2
|
| 3286 |
+
VAPA
|
| 3287 |
+
VAPB
|
| 3288 |
+
VASP
|
| 3289 |
+
VAT1
|
| 3290 |
+
VAV1
|
| 3291 |
+
VAV2
|
| 3292 |
+
VAV3
|
| 3293 |
+
VCAM1
|
| 3294 |
+
VCAN
|
| 3295 |
+
VCL
|
| 3296 |
+
VDAC1
|
| 3297 |
+
VDR
|
| 3298 |
+
VEGFA
|
| 3299 |
+
VEGFB
|
| 3300 |
+
VEGFC
|
| 3301 |
+
VEZT
|
| 3302 |
+
VGLL4
|
| 3303 |
+
VHL
|
| 3304 |
+
VIM
|
| 3305 |
+
VLDLR
|
| 3306 |
+
VMP1
|
| 3307 |
+
VPREB1
|
| 3308 |
+
VPS13A
|
| 3309 |
+
VPS28
|
| 3310 |
+
VPS72
|
| 3311 |
+
VTN
|
| 3312 |
+
WAS
|
| 3313 |
+
WASF1
|
| 3314 |
+
WASF2
|
| 3315 |
+
WASF3
|
| 3316 |
+
WASL
|
| 3317 |
+
WDR61
|
| 3318 |
+
WDR67
|
| 3319 |
+
WDR7
|
| 3320 |
+
WDTC1
|
| 3321 |
+
WEE1
|
| 3322 |
+
WFS1
|
| 3323 |
+
WIF1
|
| 3324 |
+
WIPF1
|
| 3325 |
+
WIPF2
|
| 3326 |
+
WIPI1
|
| 3327 |
+
WISP1
|
| 3328 |
+
WISP2
|
| 3329 |
+
WNT1
|
| 3330 |
+
WNT10A
|
| 3331 |
+
WNT10B
|
| 3332 |
+
WNT11
|
| 3333 |
+
WNT16
|
| 3334 |
+
WNT2
|
| 3335 |
+
WNT2B
|
| 3336 |
+
WNT3
|
| 3337 |
+
WNT3A
|
| 3338 |
+
WNT4
|
| 3339 |
+
WNT5A
|
| 3340 |
+
WNT5B
|
| 3341 |
+
WNT6
|
| 3342 |
+
WNT7A
|
| 3343 |
+
WNT7B
|
| 3344 |
+
WNT8A
|
| 3345 |
+
WNT9A
|
| 3346 |
+
WRB
|
| 3347 |
+
WT1
|
| 3348 |
+
WTIP
|
| 3349 |
+
WWC1
|
| 3350 |
+
WWOX
|
| 3351 |
+
WWTR1
|
| 3352 |
+
XAB2
|
| 3353 |
+
XBP1
|
| 3354 |
+
XCL1
|
| 3355 |
+
XCL2
|
| 3356 |
+
XCR1
|
| 3357 |
+
XDH
|
| 3358 |
+
XIAP
|
| 3359 |
+
XPA
|
| 3360 |
+
XPC
|
| 3361 |
+
XPNPEP1
|
| 3362 |
+
XPO7
|
| 3363 |
+
XRCC1
|
| 3364 |
+
XRCC2
|
| 3365 |
+
XRCC3
|
| 3366 |
+
XRCC4
|
| 3367 |
+
XRCC5
|
| 3368 |
+
XRCC6
|
| 3369 |
+
XRCC6BP1
|
| 3370 |
+
YAP1
|
| 3371 |
+
YBX3
|
| 3372 |
+
YES1
|
| 3373 |
+
YKT6
|
| 3374 |
+
YME1L1
|
| 3375 |
+
YTHDF1
|
| 3376 |
+
YWHAB
|
| 3377 |
+
YWHAE
|
| 3378 |
+
YWHAH
|
| 3379 |
+
YWHAQ
|
| 3380 |
+
YWHAZ
|
| 3381 |
+
YY1
|
| 3382 |
+
ZAK
|
| 3383 |
+
ZAP70
|
| 3384 |
+
ZBTB7B
|
| 3385 |
+
ZC3H7A
|
| 3386 |
+
ZDHHC14
|
| 3387 |
+
ZDHHC18
|
| 3388 |
+
ZDHHC6
|
| 3389 |
+
ZEB1
|
| 3390 |
+
ZEB2
|
| 3391 |
+
ZFP36
|
| 3392 |
+
ZFP36L1
|
| 3393 |
+
ZFP91
|
| 3394 |
+
ZHX2
|
| 3395 |
+
ZHX3
|
| 3396 |
+
ZMIZ1
|
| 3397 |
+
ZMYM2
|
| 3398 |
+
ZNF131
|
| 3399 |
+
ZNF185
|
| 3400 |
+
ZNF274
|
| 3401 |
+
ZNF281
|
| 3402 |
+
ZNF318
|
| 3403 |
+
ZNF395
|
| 3404 |
+
ZNF451
|
| 3405 |
+
ZNF586
|
| 3406 |
+
ZNF589
|
| 3407 |
+
ZW10
|
| 3408 |
+
ZYX
|
CIGS/CIGS_Smiles_list.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CIGS/Gene_names.ipynb
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 2,
|
| 6 |
+
"id": "5c5b0c64",
|
| 7 |
+
"metadata": {},
|
| 8 |
+
"outputs": [
|
| 9 |
+
{
|
| 10 |
+
"data": {
|
| 11 |
+
"text/html": [
|
| 12 |
+
"<div>\n",
|
| 13 |
+
"<style scoped>\n",
|
| 14 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
| 15 |
+
" vertical-align: middle;\n",
|
| 16 |
+
" }\n",
|
| 17 |
+
"\n",
|
| 18 |
+
" .dataframe tbody tr th {\n",
|
| 19 |
+
" vertical-align: top;\n",
|
| 20 |
+
" }\n",
|
| 21 |
+
"\n",
|
| 22 |
+
" .dataframe thead th {\n",
|
| 23 |
+
" text-align: right;\n",
|
| 24 |
+
" }\n",
|
| 25 |
+
"</style>\n",
|
| 26 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
| 27 |
+
" <thead>\n",
|
| 28 |
+
" <tr style=\"text-align: right;\">\n",
|
| 29 |
+
" <th></th>\n",
|
| 30 |
+
" <th>0</th>\n",
|
| 31 |
+
" <th>1</th>\n",
|
| 32 |
+
" <th>2</th>\n",
|
| 33 |
+
" <th>3</th>\n",
|
| 34 |
+
" <th>4</th>\n",
|
| 35 |
+
" <th>5</th>\n",
|
| 36 |
+
" <th>6</th>\n",
|
| 37 |
+
" <th>7</th>\n",
|
| 38 |
+
" <th>8</th>\n",
|
| 39 |
+
" <th>9</th>\n",
|
| 40 |
+
" <th>...</th>\n",
|
| 41 |
+
" <th>3398</th>\n",
|
| 42 |
+
" <th>3399</th>\n",
|
| 43 |
+
" <th>3400</th>\n",
|
| 44 |
+
" <th>3401</th>\n",
|
| 45 |
+
" <th>3402</th>\n",
|
| 46 |
+
" <th>3403</th>\n",
|
| 47 |
+
" <th>3404</th>\n",
|
| 48 |
+
" <th>3405</th>\n",
|
| 49 |
+
" <th>3406</th>\n",
|
| 50 |
+
" <th>3407</th>\n",
|
| 51 |
+
" </tr>\n",
|
| 52 |
+
" </thead>\n",
|
| 53 |
+
" <tbody>\n",
|
| 54 |
+
" <tr>\n",
|
| 55 |
+
" <th>0</th>\n",
|
| 56 |
+
" <td>Note: All these datasets are for non-commercia...</td>\n",
|
| 57 |
+
" <td>NaN</td>\n",
|
| 58 |
+
" <td>NaN</td>\n",
|
| 59 |
+
" <td>NaN</td>\n",
|
| 60 |
+
" <td>NaN</td>\n",
|
| 61 |
+
" <td>NaN</td>\n",
|
| 62 |
+
" <td>NaN</td>\n",
|
| 63 |
+
" <td>NaN</td>\n",
|
| 64 |
+
" <td>NaN</td>\n",
|
| 65 |
+
" <td>NaN</td>\n",
|
| 66 |
+
" <td>...</td>\n",
|
| 67 |
+
" <td>NaN</td>\n",
|
| 68 |
+
" <td>NaN</td>\n",
|
| 69 |
+
" <td>NaN</td>\n",
|
| 70 |
+
" <td>NaN</td>\n",
|
| 71 |
+
" <td>NaN</td>\n",
|
| 72 |
+
" <td>NaN</td>\n",
|
| 73 |
+
" <td>NaN</td>\n",
|
| 74 |
+
" <td>NaN</td>\n",
|
| 75 |
+
" <td>NaN</td>\n",
|
| 76 |
+
" <td>NaN</td>\n",
|
| 77 |
+
" </tr>\n",
|
| 78 |
+
" <tr>\n",
|
| 79 |
+
" <th>1</th>\n",
|
| 80 |
+
" <td>Sample_id</td>\n",
|
| 81 |
+
" <td>A2M</td>\n",
|
| 82 |
+
" <td>A4GNT</td>\n",
|
| 83 |
+
" <td>AARS</td>\n",
|
| 84 |
+
" <td>ABCA1</td>\n",
|
| 85 |
+
" <td>ABCB1</td>\n",
|
| 86 |
+
" <td>ABCB6</td>\n",
|
| 87 |
+
" <td>ABCC5</td>\n",
|
| 88 |
+
" <td>ABCC8</td>\n",
|
| 89 |
+
" <td>ABCF1</td>\n",
|
| 90 |
+
" <td>...</td>\n",
|
| 91 |
+
" <td>ZNF185</td>\n",
|
| 92 |
+
" <td>ZNF274</td>\n",
|
| 93 |
+
" <td>ZNF281</td>\n",
|
| 94 |
+
" <td>ZNF318</td>\n",
|
| 95 |
+
" <td>ZNF395</td>\n",
|
| 96 |
+
" <td>ZNF451</td>\n",
|
| 97 |
+
" <td>ZNF586</td>\n",
|
| 98 |
+
" <td>ZNF589</td>\n",
|
| 99 |
+
" <td>ZW10</td>\n",
|
| 100 |
+
" <td>ZYX</td>\n",
|
| 101 |
+
" </tr>\n",
|
| 102 |
+
" </tbody>\n",
|
| 103 |
+
"</table>\n",
|
| 104 |
+
"<p>2 rows × 3408 columns</p>\n",
|
| 105 |
+
"</div>"
|
| 106 |
+
],
|
| 107 |
+
"text/plain": [
|
| 108 |
+
" 0 1 2 3 4 \\\n",
|
| 109 |
+
"0 Note: All these datasets are for non-commercia... NaN NaN NaN NaN \n",
|
| 110 |
+
"1 Sample_id A2M A4GNT AARS ABCA1 \n",
|
| 111 |
+
"\n",
|
| 112 |
+
" 5 6 7 8 9 ... 3398 3399 3400 3401 \\\n",
|
| 113 |
+
"0 NaN NaN NaN NaN NaN ... NaN NaN NaN NaN \n",
|
| 114 |
+
"1 ABCB1 ABCB6 ABCC5 ABCC8 ABCF1 ... ZNF185 ZNF274 ZNF281 ZNF318 \n",
|
| 115 |
+
"\n",
|
| 116 |
+
" 3402 3403 3404 3405 3406 3407 \n",
|
| 117 |
+
"0 NaN NaN NaN NaN NaN NaN \n",
|
| 118 |
+
"1 ZNF395 ZNF451 ZNF586 ZNF589 ZW10 ZYX \n",
|
| 119 |
+
"\n",
|
| 120 |
+
"[2 rows x 3408 columns]"
|
| 121 |
+
]
|
| 122 |
+
},
|
| 123 |
+
"execution_count": 2,
|
| 124 |
+
"metadata": {},
|
| 125 |
+
"output_type": "execute_result"
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"source": [
|
| 129 |
+
"import pandas as pd\n",
|
| 130 |
+
"\n",
|
| 131 |
+
"file_path = \"/data/boom/CIGS/MCE_Bioactive_Compounds_MDA_MB_231_10μM_Counts.xlsx\"\n",
|
| 132 |
+
"\n",
|
| 133 |
+
"# 第 1 步:只把前两行当表头读进来,不读数据\n",
|
| 134 |
+
"header = pd.read_excel(file_path, nrows=0) # 0 行数据,只解析列名\n",
|
| 135 |
+
"# 第 2 步:再读一次,跳过中间所有行,只拿前两行数据\n",
|
| 136 |
+
"df = pd.read_excel(file_path,\n",
|
| 137 |
+
" skiprows=0, # 从第 0 行开始\n",
|
| 138 |
+
" nrows=2, # 只要 2 行\n",
|
| 139 |
+
" header=None) # 不再用第一行当表头\n",
|
| 140 |
+
"df"
|
| 141 |
+
]
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"cell_type": "code",
|
| 145 |
+
"execution_count": 6,
|
| 146 |
+
"id": "c660f0f6",
|
| 147 |
+
"metadata": {},
|
| 148 |
+
"outputs": [
|
| 149 |
+
{
|
| 150 |
+
"data": {
|
| 151 |
+
"text/plain": [
|
| 152 |
+
"3407"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
"execution_count": 6,
|
| 156 |
+
"metadata": {},
|
| 157 |
+
"output_type": "execute_result"
|
| 158 |
+
}
|
| 159 |
+
],
|
| 160 |
+
"source": [
|
| 161 |
+
"gene_name = df.iloc[1].to_list()[1:]\n",
|
| 162 |
+
"\n",
|
| 163 |
+
"len(gene_name)"
|
| 164 |
+
]
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"cell_type": "code",
|
| 168 |
+
"execution_count": 7,
|
| 169 |
+
"id": "25708d2e",
|
| 170 |
+
"metadata": {},
|
| 171 |
+
"outputs": [
|
| 172 |
+
{
|
| 173 |
+
"data": {
|
| 174 |
+
"text/plain": [
|
| 175 |
+
"978"
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
"execution_count": 7,
|
| 179 |
+
"metadata": {},
|
| 180 |
+
"output_type": "execute_result"
|
| 181 |
+
}
|
| 182 |
+
],
|
| 183 |
+
"source": [
|
| 184 |
+
"LINCS = pd.read_csv('/home/bob/boom/VCBench/data/LINCS2020/landmark_geneinfo.csv')\n",
|
| 185 |
+
"gene_info_LINCS = LINCS['gene_symbol'].astype(str)\n",
|
| 186 |
+
"len(gene_info_LINCS)"
|
| 187 |
+
]
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"cell_type": "code",
|
| 191 |
+
"execution_count": null,
|
| 192 |
+
"id": "ee20f28a",
|
| 193 |
+
"metadata": {},
|
| 194 |
+
"outputs": [
|
| 195 |
+
{
|
| 196 |
+
"data": {
|
| 197 |
+
"text/plain": [
|
| 198 |
+
"942"
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"execution_count": 10,
|
| 202 |
+
"metadata": {},
|
| 203 |
+
"output_type": "execute_result"
|
| 204 |
+
}
|
| 205 |
+
],
|
| 206 |
+
"source": [
|
| 207 |
+
"# 取交集:gene_name & gene_info_LINCS\n",
|
| 208 |
+
"gene_name = set(gene_name)\n",
|
| 209 |
+
"gene_info_LINCS = set(gene_info_LINCS)\n",
|
| 210 |
+
"commen = gene_name & gene_info_LINCS\n",
|
| 211 |
+
"\n",
|
| 212 |
+
"len(commen) # 就用原始的"
|
| 213 |
+
]
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"cell_type": "code",
|
| 217 |
+
"execution_count": null,
|
| 218 |
+
"id": "663f0a39",
|
| 219 |
+
"metadata": {},
|
| 220 |
+
"outputs": [],
|
| 221 |
+
"source": []
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"cell_type": "code",
|
| 225 |
+
"execution_count": null,
|
| 226 |
+
"id": "92377cdc",
|
| 227 |
+
"metadata": {},
|
| 228 |
+
"outputs": [],
|
| 229 |
+
"source": []
|
| 230 |
+
}
|
| 231 |
+
],
|
| 232 |
+
"metadata": {
|
| 233 |
+
"kernelspec": {
|
| 234 |
+
"display_name": "boom",
|
| 235 |
+
"language": "python",
|
| 236 |
+
"name": "python3"
|
| 237 |
+
},
|
| 238 |
+
"language_info": {
|
| 239 |
+
"codemirror_mode": {
|
| 240 |
+
"name": "ipython",
|
| 241 |
+
"version": 3
|
| 242 |
+
},
|
| 243 |
+
"file_extension": ".py",
|
| 244 |
+
"mimetype": "text/x-python",
|
| 245 |
+
"name": "python",
|
| 246 |
+
"nbconvert_exporter": "python",
|
| 247 |
+
"pygments_lexer": "ipython3",
|
| 248 |
+
"version": "3.11.10"
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
"nbformat": 4,
|
| 252 |
+
"nbformat_minor": 5
|
| 253 |
+
}
|
CIGS/SMILES_Encoder.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Get_Molecular_Embeddings.ipynb
ADDED
|
@@ -0,0 +1,1662 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"# look data_example"
|
| 8 |
+
]
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"cell_type": "code",
|
| 12 |
+
"execution_count": null,
|
| 13 |
+
"metadata": {},
|
| 14 |
+
"outputs": [],
|
| 15 |
+
"source": [
|
| 16 |
+
"import pickle, h5py\n",
|
| 17 |
+
"import numpy as np\n",
|
| 18 |
+
"import pandas as pd\n",
|
| 19 |
+
"\n",
|
| 20 |
+
"with open('./LINCS2020/idx2smi.pickle', 'rb') as f:\n",
|
| 21 |
+
" idx2smi = pickle.load(f)\n",
|
| 22 |
+
" \n",
|
| 23 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串"
|
| 24 |
+
]
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"cell_type": "code",
|
| 28 |
+
"execution_count": null,
|
| 29 |
+
"metadata": {},
|
| 30 |
+
"outputs": [
|
| 31 |
+
{
|
| 32 |
+
"name": "stdout",
|
| 33 |
+
"output_type": "stream",
|
| 34 |
+
"text": [
|
| 35 |
+
"8316 BrC1C(Br)C(Br)C(Br)C(Br)C1Br\n"
|
| 36 |
+
]
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"source": [
|
| 40 |
+
"print(len(idx2smi), idx2smi[0])"
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"cell_type": "code",
|
| 45 |
+
"execution_count": null,
|
| 46 |
+
"metadata": {},
|
| 47 |
+
"outputs": [],
|
| 48 |
+
"source": [
|
| 49 |
+
"huggingface-cli upload Boom5426/MVCBench ./LINCS2020 ./data/ --repo-type dataset"
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"cell_type": "code",
|
| 54 |
+
"execution_count": 7,
|
| 55 |
+
"metadata": {},
|
| 56 |
+
"outputs": [
|
| 57 |
+
{
|
| 58 |
+
"data": {
|
| 59 |
+
"text/plain": [
|
| 60 |
+
"'BrC1C(Br)C(Br)C(Br)C(Br)C1Br'"
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
"execution_count": 7,
|
| 64 |
+
"metadata": {},
|
| 65 |
+
"output_type": "execute_result"
|
| 66 |
+
}
|
| 67 |
+
],
|
| 68 |
+
"source": [
|
| 69 |
+
"idx2smi[0] # to path_to_input_smiles.csv"
|
| 70 |
+
]
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"cell_type": "code",
|
| 74 |
+
"execution_count": 30,
|
| 75 |
+
"metadata": {},
|
| 76 |
+
"outputs": [
|
| 77 |
+
{
|
| 78 |
+
"name": "stdout",
|
| 79 |
+
"output_type": "stream",
|
| 80 |
+
"text": [
|
| 81 |
+
"SMILES已成功保存到LINCS2020_smiles.csv文件中。\n"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"source": [
|
| 86 |
+
"import pickle\n",
|
| 87 |
+
"import csv\n",
|
| 88 |
+
"\n",
|
| 89 |
+
"# 将SMILES字符串写入CSV文件\n",
|
| 90 |
+
"with open('./LINCS2020/LINCS2020_smiles.csv', 'w', newline='') as csvfile:\n",
|
| 91 |
+
" writer = csv.writer(csvfile)\n",
|
| 92 |
+
" # 写入标题行(可选)\n",
|
| 93 |
+
" writer.writerow(['SMILES'])\n",
|
| 94 |
+
" # 遍历字典,写入SMILES\n",
|
| 95 |
+
" for idx, smi in idx2smi.items():\n",
|
| 96 |
+
" writer.writerow([smi])\n",
|
| 97 |
+
"\n",
|
| 98 |
+
"print(\"SMILES已成功保存到LINCS2020_smiles.csv文件中。\")"
|
| 99 |
+
]
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"cell_type": "markdown",
|
| 103 |
+
"metadata": {},
|
| 104 |
+
"source": [
|
| 105 |
+
"# Generate ECFP4 embedding for all smiles\n"
|
| 106 |
+
]
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"cell_type": "code",
|
| 110 |
+
"execution_count": null,
|
| 111 |
+
"metadata": {},
|
| 112 |
+
"outputs": [],
|
| 113 |
+
"source": [
|
| 114 |
+
"from rdkit import Chem\n",
|
| 115 |
+
"from rdkit.Chem import AllChem\n",
|
| 116 |
+
"import numpy as np\n",
|
| 117 |
+
"import pickle\n",
|
| 118 |
+
"\n",
|
| 119 |
+
"def smiles_to_ecfp4(smiles_list, radius=2, n_bits=2048):\n",
|
| 120 |
+
" \"\"\"\n",
|
| 121 |
+
" 将SMILES列表转换为ECFP4特征向量。\n",
|
| 122 |
+
"\n",
|
| 123 |
+
" 参数:\n",
|
| 124 |
+
" smiles_list (list): SMILES字符串列表。\n",
|
| 125 |
+
" radius (int): ECFP的半径,默认为2(即ECFP4)。\n",
|
| 126 |
+
" n_bits (int): 特征向量的长度,默认为2048。\n",
|
| 127 |
+
"\n",
|
| 128 |
+
" 返回:\n",
|
| 129 |
+
" dict: 一个字典,键为SMILES字符串,值为对应的ECFP4特征向量。\n",
|
| 130 |
+
" \"\"\"\n",
|
| 131 |
+
" ecfp4_dict = {}\n",
|
| 132 |
+
" \n",
|
| 133 |
+
" for smiles in smiles_list:\n",
|
| 134 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 135 |
+
" if mol is not None:\n",
|
| 136 |
+
" # 替换编码器\n",
|
| 137 |
+
" ecfp4 = AllChem.GetMorganFingerprintAsBitVect(mol, radius=radius, nBits=n_bits)\n",
|
| 138 |
+
" ecfp4_dict[smiles] = np.array(ecfp4, dtype=np.float32)\n",
|
| 139 |
+
" else:\n",
|
| 140 |
+
" print(\"Error in \", smiles)\n",
|
| 141 |
+
" # 如果SMILES无法解析为分子,则填充一个全零的向量\n",
|
| 142 |
+
" ecfp4_dict[smiles] = np.zeros(n_bits, dtype=np.float32)\n",
|
| 143 |
+
" \n",
|
| 144 |
+
" return ecfp4_dict\n",
|
| 145 |
+
"\n",
|
| 146 |
+
"# 从字典中提取SMILES列表\n",
|
| 147 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串\n",
|
| 148 |
+
"\n",
|
| 149 |
+
"# 计算ECFP4特征\n",
|
| 150 |
+
"ecfp4_features_dict = smiles_to_ecfp4(smiles_list)\n",
|
| 151 |
+
"\n",
|
| 152 |
+
"# ecfp4_features_dict\n"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"cell_type": "code",
|
| 157 |
+
"execution_count": 44,
|
| 158 |
+
"metadata": {},
|
| 159 |
+
"outputs": [
|
| 160 |
+
{
|
| 161 |
+
"name": "stdout",
|
| 162 |
+
"output_type": "stream",
|
| 163 |
+
"text": [
|
| 164 |
+
"8316 8316\n"
|
| 165 |
+
]
|
| 166 |
+
}
|
| 167 |
+
],
|
| 168 |
+
"source": [
|
| 169 |
+
"print(len(smiles_list), len(ecfp4_features_dict))"
|
| 170 |
+
]
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"cell_type": "code",
|
| 174 |
+
"execution_count": null,
|
| 175 |
+
"metadata": {},
|
| 176 |
+
"outputs": [],
|
| 177 |
+
"source": [
|
| 178 |
+
"ecfp4_features_dict\n",
|
| 179 |
+
"\n",
|
| 180 |
+
"# np.str_('BrC1C(Br)C(Br)C(Br)C(Br)C1Br'): array([0., 0., 0., ..., 0., 0., 0.], dtype=float32),"
|
| 181 |
+
]
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"cell_type": "code",
|
| 185 |
+
"execution_count": null,
|
| 186 |
+
"metadata": {},
|
| 187 |
+
"outputs": [],
|
| 188 |
+
"source": [
|
| 189 |
+
"# 保存为 pickle 文件\n",
|
| 190 |
+
"with open('./LINCS2020/ECFP4_emb2048.pickle', 'wb') as f:\n",
|
| 191 |
+
" pickle.dump(ecfp4_features_dict, f)"
|
| 192 |
+
]
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"cell_type": "code",
|
| 196 |
+
"execution_count": 50,
|
| 197 |
+
"metadata": {},
|
| 198 |
+
"outputs": [
|
| 199 |
+
{
|
| 200 |
+
"data": {
|
| 201 |
+
"text/plain": [
|
| 202 |
+
"(2048,)"
|
| 203 |
+
]
|
| 204 |
+
},
|
| 205 |
+
"execution_count": 50,
|
| 206 |
+
"metadata": {},
|
| 207 |
+
"output_type": "execute_result"
|
| 208 |
+
}
|
| 209 |
+
],
|
| 210 |
+
"source": [
|
| 211 |
+
"ecfp4_features_dict['CN1CCN(CCCN2c3ccccc3Sc3ccc(cc23)C(F)(F)F)CC1'].shape"
|
| 212 |
+
]
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"cell_type": "code",
|
| 216 |
+
"execution_count": 1,
|
| 217 |
+
"metadata": {},
|
| 218 |
+
"outputs": [],
|
| 219 |
+
"source": [
|
| 220 |
+
"# import pickle, h5py\n",
|
| 221 |
+
"# import numpy as np\n",
|
| 222 |
+
"# import pandas as pd\n",
|
| 223 |
+
"\n",
|
| 224 |
+
"# with open('./embeddings/ChemBERTa2_emb384.pickle', 'rb') as f:\n",
|
| 225 |
+
"# KPGT_emb2304 = pickle.load(f)\n",
|
| 226 |
+
"# KPGT_emb2304"
|
| 227 |
+
]
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"cell_type": "code",
|
| 231 |
+
"execution_count": 2,
|
| 232 |
+
"metadata": {},
|
| 233 |
+
"outputs": [
|
| 234 |
+
{
|
| 235 |
+
"data": {
|
| 236 |
+
"text/plain": [
|
| 237 |
+
"(300,)"
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
"execution_count": 2,
|
| 241 |
+
"metadata": {},
|
| 242 |
+
"output_type": "execute_result"
|
| 243 |
+
}
|
| 244 |
+
],
|
| 245 |
+
"source": [
|
| 246 |
+
"# KPGT_emb2304['BrC1C(Br)C(Br)C(Br)C(Br)C1Br'].shape"
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"cell_type": "markdown",
|
| 251 |
+
"metadata": {},
|
| 252 |
+
"source": [
|
| 253 |
+
"# Generate KGPT embedding for all smiles"
|
| 254 |
+
]
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"cell_type": "code",
|
| 258 |
+
"execution_count": null,
|
| 259 |
+
"metadata": {},
|
| 260 |
+
"outputs": [],
|
| 261 |
+
"source": [
|
| 262 |
+
"import pickle, h5py\n",
|
| 263 |
+
"import numpy as np\n",
|
| 264 |
+
"import pandas as pd\n",
|
| 265 |
+
"\n",
|
| 266 |
+
"with open('./embeddings/KPGT_emb2304.pickle', 'rb') as f:\n",
|
| 267 |
+
" KPGT_emb2304 = pickle.load(f)\n",
|
| 268 |
+
"KPGT_emb2304"
|
| 269 |
+
]
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"cell_type": "code",
|
| 273 |
+
"execution_count": null,
|
| 274 |
+
"metadata": {},
|
| 275 |
+
"outputs": [
|
| 276 |
+
{
|
| 277 |
+
"name": "stdout",
|
| 278 |
+
"output_type": "stream",
|
| 279 |
+
"text": [
|
| 280 |
+
"预训练权重总参数量: 111,755,936\n",
|
| 281 |
+
"111.8 M\n"
|
| 282 |
+
]
|
| 283 |
+
}
|
| 284 |
+
],
|
| 285 |
+
"source": [
|
| 286 |
+
"import torch\n",
|
| 287 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/KPGT/base.pth', map_location='cpu')\n",
|
| 288 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 289 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 290 |
+
"print(f'{total/1e6:.1f} M')"
|
| 291 |
+
]
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"cell_type": "markdown",
|
| 295 |
+
"metadata": {},
|
| 296 |
+
"source": [
|
| 297 |
+
"# Generate InfoAlign embedding for all smiles"
|
| 298 |
+
]
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"cell_type": "code",
|
| 302 |
+
"execution_count": null,
|
| 303 |
+
"metadata": {},
|
| 304 |
+
"outputs": [],
|
| 305 |
+
"source": [
|
| 306 |
+
"# pip install infoalign\n",
|
| 307 |
+
"\n",
|
| 308 |
+
"# infoalign_predict --input LINCS2020/LINCS2020_smiles.csv \\\n",
|
| 309 |
+
"# --output InfoAlign_output.npy \\\n",
|
| 310 |
+
"# --output-to-input-column # Adds the representation as an additional column in the input CSV\n",
|
| 311 |
+
"\n",
|
| 312 |
+
"# 是否存在数据泄露,因为这个是基于表征学习的"
|
| 313 |
+
]
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"cell_type": "code",
|
| 317 |
+
"execution_count": 9,
|
| 318 |
+
"metadata": {},
|
| 319 |
+
"outputs": [
|
| 320 |
+
{
|
| 321 |
+
"name": "stdout",
|
| 322 |
+
"output_type": "stream",
|
| 323 |
+
"text": [
|
| 324 |
+
"预训练权重总参数量: 13,808,553\n",
|
| 325 |
+
"13.8 M\n"
|
| 326 |
+
]
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"name": "stderr",
|
| 330 |
+
"output_type": "stream",
|
| 331 |
+
"text": [
|
| 332 |
+
"/tmp/ipykernel_1948954/1463163983.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 333 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/infoalign_model/pretrain.pt', map_location='cpu')\n"
|
| 334 |
+
]
|
| 335 |
+
}
|
| 336 |
+
],
|
| 337 |
+
"source": [
|
| 338 |
+
"import torch\n",
|
| 339 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/infoalign_model/pretrain.pt', map_location='cpu')\n",
|
| 340 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 341 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 342 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 343 |
+
]
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"cell_type": "code",
|
| 347 |
+
"execution_count": 26,
|
| 348 |
+
"metadata": {},
|
| 349 |
+
"outputs": [],
|
| 350 |
+
"source": [
|
| 351 |
+
"import csv\n",
|
| 352 |
+
"import numpy as np\n",
|
| 353 |
+
"import pickle\n",
|
| 354 |
+
"\n",
|
| 355 |
+
"# CSV文件路径\n",
|
| 356 |
+
"csv_path = 'infoalign_model/LINCS2020_smiles.csv'\n",
|
| 357 |
+
"# NPY文件路径\n",
|
| 358 |
+
"npy_path = 'infoalign_model/InfoAlign_output.npy'\n",
|
| 359 |
+
"\n",
|
| 360 |
+
"# 初始化一个空字典来存储SMILES和对应的表征\n",
|
| 361 |
+
"smiles_to_representation = {}\n",
|
| 362 |
+
"\n",
|
| 363 |
+
"# 读取NPY文件\n",
|
| 364 |
+
"info_align_output = np.load(npy_path)\n",
|
| 365 |
+
"\n",
|
| 366 |
+
"# 读取CSV文件并同时替换字典中的值\n",
|
| 367 |
+
"with open(csv_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 368 |
+
" reader = csv.DictReader(csvfile)\n",
|
| 369 |
+
" for idx, row in enumerate(reader):\n",
|
| 370 |
+
" smiles = row['SMILES']\n",
|
| 371 |
+
" # 直接从info_align_output中获取对应的数值\n",
|
| 372 |
+
" representation = info_align_output[idx]\n",
|
| 373 |
+
" smiles_to_representation[smiles] = representation\n"
|
| 374 |
+
]
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"cell_type": "code",
|
| 378 |
+
"execution_count": 34,
|
| 379 |
+
"metadata": {},
|
| 380 |
+
"outputs": [
|
| 381 |
+
{
|
| 382 |
+
"data": {
|
| 383 |
+
"text/plain": [
|
| 384 |
+
"8316"
|
| 385 |
+
]
|
| 386 |
+
},
|
| 387 |
+
"execution_count": 34,
|
| 388 |
+
"metadata": {},
|
| 389 |
+
"output_type": "execute_result"
|
| 390 |
+
}
|
| 391 |
+
],
|
| 392 |
+
"source": [
|
| 393 |
+
"len(smiles_to_representation)"
|
| 394 |
+
]
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"cell_type": "code",
|
| 398 |
+
"execution_count": 29,
|
| 399 |
+
"metadata": {},
|
| 400 |
+
"outputs": [
|
| 401 |
+
{
|
| 402 |
+
"name": "stdout",
|
| 403 |
+
"output_type": "stream",
|
| 404 |
+
"text": [
|
| 405 |
+
"字典已成功保存到 embeddings/InfoAlign_emb300.pickle\n"
|
| 406 |
+
]
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
"source": [
|
| 410 |
+
"# 保存字典为pickle文件\n",
|
| 411 |
+
"pickle_path = 'embeddings/InfoAlign_emb300.pickle'\n",
|
| 412 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 413 |
+
" pickle.dump(smiles_to_representation, pickle_file)\n",
|
| 414 |
+
"\n",
|
| 415 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 416 |
+
]
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"cell_type": "markdown",
|
| 420 |
+
"metadata": {},
|
| 421 |
+
"source": [
|
| 422 |
+
"# Generate ChemBERTa-2 embedding for all smiles"
|
| 423 |
+
]
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"cell_type": "code",
|
| 427 |
+
"execution_count": 1,
|
| 428 |
+
"metadata": {},
|
| 429 |
+
"outputs": [
|
| 430 |
+
{
|
| 431 |
+
"name": "stderr",
|
| 432 |
+
"output_type": "stream",
|
| 433 |
+
"text": [
|
| 434 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 435 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 436 |
+
]
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"source": [
|
| 440 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 441 |
+
"model = AutoModel.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\") # 77M SMILES(完整PubChem数据集)\n",
|
| 442 |
+
"tokenizer = AutoTokenizer.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\")\n",
|
| 443 |
+
"inputs = tokenizer(\"CCO\", return_tensors=\"pt\")\n",
|
| 444 |
+
"outputs = model(**inputs) # 嵌入位于 outputs.last_hidden_state"
|
| 445 |
+
]
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"cell_type": "code",
|
| 449 |
+
"execution_count": 3,
|
| 450 |
+
"metadata": {},
|
| 451 |
+
"outputs": [
|
| 452 |
+
{
|
| 453 |
+
"data": {
|
| 454 |
+
"text/plain": [
|
| 455 |
+
"torch.Size([1, 5, 384])"
|
| 456 |
+
]
|
| 457 |
+
},
|
| 458 |
+
"execution_count": 3,
|
| 459 |
+
"metadata": {},
|
| 460 |
+
"output_type": "execute_result"
|
| 461 |
+
}
|
| 462 |
+
],
|
| 463 |
+
"source": [
|
| 464 |
+
"outputs.last_hidden_state.shape"
|
| 465 |
+
]
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"cell_type": "code",
|
| 469 |
+
"execution_count": null,
|
| 470 |
+
"metadata": {},
|
| 471 |
+
"outputs": [
|
| 472 |
+
{
|
| 473 |
+
"name": "stderr",
|
| 474 |
+
"output_type": "stream",
|
| 475 |
+
"text": [
|
| 476 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 477 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 478 |
+
]
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"name": "stdout",
|
| 482 |
+
"output_type": "stream",
|
| 483 |
+
"text": [
|
| 484 |
+
"ChemBERTa-77M 可训练参数量: 3,427,440\n",
|
| 485 |
+
"3.4 M\n"
|
| 486 |
+
]
|
| 487 |
+
}
|
| 488 |
+
],
|
| 489 |
+
"source": [
|
| 490 |
+
"# from transformers import AutoModel\n",
|
| 491 |
+
"\n",
|
| 492 |
+
"# model = AutoModel.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\")\n",
|
| 493 |
+
"\n",
|
| 494 |
+
"# trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)\n",
|
| 495 |
+
"# print(f\"ChemBERTa-77M 可训练参数量: {trainable:,}\")\n",
|
| 496 |
+
"# print(f\"{trainable/1e6:.1f} M\") # → 85.7 M"
|
| 497 |
+
]
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"cell_type": "code",
|
| 501 |
+
"execution_count": null,
|
| 502 |
+
"metadata": {},
|
| 503 |
+
"outputs": [
|
| 504 |
+
{
|
| 505 |
+
"name": "stderr",
|
| 506 |
+
"output_type": "stream",
|
| 507 |
+
"text": [
|
| 508 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 509 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 510 |
+
]
|
| 511 |
+
}
|
| 512 |
+
],
|
| 513 |
+
"source": [
|
| 514 |
+
"# from transformers import AutoModel, AutoTokenizer\n",
|
| 515 |
+
"# import torch, os, shutil\n",
|
| 516 |
+
"\n",
|
| 517 |
+
"# repo_id = \"DeepChem/ChemBERTa-77M-MLM\"\n",
|
| 518 |
+
"\n",
|
| 519 |
+
"# # 1. 磁盘大小:下载后统计整个 snapshot 目录\n",
|
| 520 |
+
"# tmp_dir = \"./tmp_snapshot\" # 临时目录,用完即删\n",
|
| 521 |
+
"# model = AutoModel.from_pretrained(repo_id, cache_dir=tmp_dir)\n",
|
| 522 |
+
"# tokenizer = AutoTokenizer.from_pretrained(repo_id, cache_dir=tmp_dir)\n",
|
| 523 |
+
"\n",
|
| 524 |
+
"# disk_mb = sum(\n",
|
| 525 |
+
"# os.path.getsize(os.path.join(root, f))\n",
|
| 526 |
+
"# for root, _, files in os.walk(tmp_dir)\n",
|
| 527 |
+
"# for f in files\n",
|
| 528 |
+
"# ) / 1024 ** 2\n",
|
| 529 |
+
"\n",
|
| 530 |
+
"# print(f\"权重文件磁盘占用:{disk_mb:.1f} MB\")"
|
| 531 |
+
]
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"cell_type": "code",
|
| 535 |
+
"execution_count": null,
|
| 536 |
+
"metadata": {},
|
| 537 |
+
"outputs": [
|
| 538 |
+
{
|
| 539 |
+
"name": "stderr",
|
| 540 |
+
"output_type": "stream",
|
| 541 |
+
"text": [
|
| 542 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 543 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n",
|
| 544 |
+
"100%|██████████| 260/260 [00:01<00:00, 168.25it/s]"
|
| 545 |
+
]
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"name": "stdout",
|
| 549 |
+
"output_type": "stream",
|
| 550 |
+
"text": [
|
| 551 |
+
"总分子数 : 8316\n",
|
| 552 |
+
"总耗时 : 2.82 s\n",
|
| 553 |
+
"平均推理 : 0.34 ms / molecule\n"
|
| 554 |
+
]
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"name": "stderr",
|
| 558 |
+
"output_type": "stream",
|
| 559 |
+
"text": [
|
| 560 |
+
"\n"
|
| 561 |
+
]
|
| 562 |
+
}
|
| 563 |
+
],
|
| 564 |
+
"source": [
|
| 565 |
+
"import pickle\n",
|
| 566 |
+
"import time\n",
|
| 567 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 568 |
+
"import torch\n",
|
| 569 |
+
"import numpy as np\n",
|
| 570 |
+
"from rdkit import Chem\n",
|
| 571 |
+
"from tqdm import tqdm # 可选:用于进度条\n",
|
| 572 |
+
"\n",
|
| 573 |
+
"def smiles_to_chemberta2(smiles_list, model_name=\"DeepChem/ChemBERTa-77M-MLM\", batch_size=32):\n",
|
| 574 |
+
" \"\"\"\n",
|
| 575 |
+
" 将SMILES列表转换为ChemBERTa-2的嵌入向量(CLS token的隐藏状态)。\n",
|
| 576 |
+
" \n",
|
| 577 |
+
" 参数:\n",
|
| 578 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 579 |
+
" model_name (str): Hugging Face模型ID,默认为ChemBERTa-2的MLM版本\n",
|
| 580 |
+
" batch_size (int): 批处理大小,根据GPU内存调整\n",
|
| 581 |
+
" \n",
|
| 582 |
+
" 返回:\n",
|
| 583 |
+
" dict: 键为SMILES,值为768维嵌入向量(numpy数组)\n",
|
| 584 |
+
" \"\"\"\n",
|
| 585 |
+
" # 加载模型和tokenizer\n",
|
| 586 |
+
" tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
|
| 587 |
+
" model = AutoModel.from_pretrained(model_name)\n",
|
| 588 |
+
" model.eval() # 切换到推理模式\n",
|
| 589 |
+
" \n",
|
| 590 |
+
" # 检查CUDA可用性\n",
|
| 591 |
+
" device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 592 |
+
" model.to(device)\n",
|
| 593 |
+
" \n",
|
| 594 |
+
" chemberta2_dict = {}\n",
|
| 595 |
+
" \n",
|
| 596 |
+
" # 分批处理SMILES\n",
|
| 597 |
+
" for i in tqdm(range(0, len(smiles_list), batch_size)):\n",
|
| 598 |
+
" batch_smiles = smiles_list[i:i+batch_size]\n",
|
| 599 |
+
" valid_indices = []\n",
|
| 600 |
+
" batch_inputs = []\n",
|
| 601 |
+
" \n",
|
| 602 |
+
" # 过滤无效SMILES并生成输入\n",
|
| 603 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 604 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 605 |
+
" if mol is not None:\n",
|
| 606 |
+
" valid_indices.append(idx)\n",
|
| 607 |
+
" batch_inputs.append(smiles)\n",
|
| 608 |
+
" else:\n",
|
| 609 |
+
" print(f\"Invalid SMILES: {smiles}\")\n",
|
| 610 |
+
" \n",
|
| 611 |
+
" if not batch_inputs:\n",
|
| 612 |
+
" continue\n",
|
| 613 |
+
" \n",
|
| 614 |
+
" # Tokenize并移动到设备\n",
|
| 615 |
+
" inputs = tokenizer(\n",
|
| 616 |
+
" batch_inputs, \n",
|
| 617 |
+
" return_tensors=\"pt\", \n",
|
| 618 |
+
" padding=True, \n",
|
| 619 |
+
" truncation=True, \n",
|
| 620 |
+
" max_length=512\n",
|
| 621 |
+
" ).to(device)\n",
|
| 622 |
+
" \n",
|
| 623 |
+
" # 生成嵌入\n",
|
| 624 |
+
" with torch.no_grad():\n",
|
| 625 |
+
" outputs = model(**inputs)\n",
|
| 626 |
+
" embeddings = outputs.last_hidden_state[:, 0, :] # 取CLS token的嵌入\n",
|
| 627 |
+
" \n",
|
| 628 |
+
" # 将有效结果存入字典\n",
|
| 629 |
+
" for j, idx in enumerate(valid_indices):\n",
|
| 630 |
+
" chemberta2_dict[batch_smiles[idx]] = embeddings[j].cpu().numpy()\n",
|
| 631 |
+
" \n",
|
| 632 |
+
" # 处理无效SMILES(填充零向量)\n",
|
| 633 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 634 |
+
" if idx not in valid_indices:\n",
|
| 635 |
+
" chemberta2_dict[smiles] = np.zeros(768, dtype=np.float32)\n",
|
| 636 |
+
" \n",
|
| 637 |
+
" return chemberta2_dict\n",
|
| 638 |
+
"\n",
|
| 639 |
+
"# 使用示例\n",
|
| 640 |
+
"import time\n",
|
| 641 |
+
"# ----- 计时开始 -----\n",
|
| 642 |
+
"t0 = time.perf_counter()\n",
|
| 643 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是SMILES字典\n",
|
| 644 |
+
"chemberta2_features_dict = smiles_to_chemberta2(smiles_list)\n",
|
| 645 |
+
"\n",
|
| 646 |
+
"t1 = time.perf_counter()\n",
|
| 647 |
+
"# ----- 计时结束 -----\n",
|
| 648 |
+
"\n",
|
| 649 |
+
"# 基本统计\n",
|
| 650 |
+
"total_mols = len(chemberta2_features_dict)\n",
|
| 651 |
+
"avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 652 |
+
"\n",
|
| 653 |
+
"print(f\"总分子数 : {total_mols}\")\n",
|
| 654 |
+
"print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 655 |
+
"print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")"
|
| 656 |
+
]
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"cell_type": "code",
|
| 660 |
+
"execution_count": 8,
|
| 661 |
+
"metadata": {},
|
| 662 |
+
"outputs": [
|
| 663 |
+
{
|
| 664 |
+
"name": "stdout",
|
| 665 |
+
"output_type": "stream",
|
| 666 |
+
"text": [
|
| 667 |
+
"8316 384\n"
|
| 668 |
+
]
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"source": [
|
| 672 |
+
"print(len(chemberta2_features_dict), len(chemberta2_features_dict['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 673 |
+
]
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"cell_type": "code",
|
| 677 |
+
"execution_count": null,
|
| 678 |
+
"metadata": {},
|
| 679 |
+
"outputs": [],
|
| 680 |
+
"source": [
|
| 681 |
+
"chemberta2_features_dict['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']"
|
| 682 |
+
]
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"cell_type": "code",
|
| 686 |
+
"execution_count": 7,
|
| 687 |
+
"metadata": {},
|
| 688 |
+
"outputs": [
|
| 689 |
+
{
|
| 690 |
+
"name": "stdout",
|
| 691 |
+
"output_type": "stream",
|
| 692 |
+
"text": [
|
| 693 |
+
"字典已成功保存到 embeddings/ChemBERTa2_emb384.pickle\n"
|
| 694 |
+
]
|
| 695 |
+
}
|
| 696 |
+
],
|
| 697 |
+
"source": [
|
| 698 |
+
"# 保存字典为pickle文件\n",
|
| 699 |
+
"pickle_path = 'embeddings/ChemBERTa2_emb384.pickle'\n",
|
| 700 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 701 |
+
" pickle.dump(chemberta2_features_dict, pickle_file)\n",
|
| 702 |
+
"\n",
|
| 703 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 704 |
+
]
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"cell_type": "markdown",
|
| 708 |
+
"metadata": {},
|
| 709 |
+
"source": [
|
| 710 |
+
"# Generate MolT5 embedding for all smiles"
|
| 711 |
+
]
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"cell_type": "code",
|
| 715 |
+
"execution_count": 11,
|
| 716 |
+
"metadata": {},
|
| 717 |
+
"outputs": [
|
| 718 |
+
{
|
| 719 |
+
"name": "stdout",
|
| 720 |
+
"output_type": "stream",
|
| 721 |
+
"text": [
|
| 722 |
+
"torch.Size([1, 768])\n"
|
| 723 |
+
]
|
| 724 |
+
}
|
| 725 |
+
],
|
| 726 |
+
"source": [
|
| 727 |
+
"from transformers import T5ForConditionalGeneration, AutoTokenizer\n",
|
| 728 |
+
"model = T5ForConditionalGeneration.from_pretrained(\"laituan245/molt5-base\")\n",
|
| 729 |
+
"tokenizer = AutoTokenizer.from_pretrained(\"laituan245/molt5-base\")\n",
|
| 730 |
+
"inputs = tokenizer(\"CCO\", return_tensors=\"pt\")\n",
|
| 731 |
+
"embeddings = model.encoder(**inputs).last_hidden_state.mean(dim=1) # 平均池化\n",
|
| 732 |
+
"print(embeddings.shape)"
|
| 733 |
+
]
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"cell_type": "code",
|
| 737 |
+
"execution_count": 12,
|
| 738 |
+
"metadata": {},
|
| 739 |
+
"outputs": [
|
| 740 |
+
{
|
| 741 |
+
"name": "stdout",
|
| 742 |
+
"output_type": "stream",
|
| 743 |
+
"text": [
|
| 744 |
+
"MolT5-base 可训练参数量: 247.6 M\n"
|
| 745 |
+
]
|
| 746 |
+
}
|
| 747 |
+
],
|
| 748 |
+
"source": [
|
| 749 |
+
"trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)\n",
|
| 750 |
+
"print(f'MolT5-base 可训练参数量: {trainable/1e6:.1f} M')"
|
| 751 |
+
]
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"cell_type": "code",
|
| 755 |
+
"execution_count": 10,
|
| 756 |
+
"metadata": {},
|
| 757 |
+
"outputs": [
|
| 758 |
+
{
|
| 759 |
+
"name": "stdout",
|
| 760 |
+
"output_type": "stream",
|
| 761 |
+
"text": [
|
| 762 |
+
"已缓存权重磁盘占用:3784.1 MB\n"
|
| 763 |
+
]
|
| 764 |
+
}
|
| 765 |
+
],
|
| 766 |
+
"source": [
|
| 767 |
+
"# molt5_disk_usage.py\n",
|
| 768 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 769 |
+
"import os, pathlib\n",
|
| 770 |
+
"\n",
|
| 771 |
+
"repo_id = \"laituan245/molt5-base\"\n",
|
| 772 |
+
"\n",
|
| 773 |
+
"# 让 transformers 只走本地缓存,不会触发下载\n",
|
| 774 |
+
"model = AutoModel.from_pretrained(repo_id, local_files_only=True)\n",
|
| 775 |
+
"tokenizer = AutoTokenizer.from_pretrained(repo_id, local_files_only=True)\n",
|
| 776 |
+
"\n",
|
| 777 |
+
"# 找到缓存目录\n",
|
| 778 |
+
"cache_root = pathlib.Path.home() / \".cache/huggingface/hub\"\n",
|
| 779 |
+
"# 仓库目录名格式:models--{user}--{repo}\n",
|
| 780 |
+
"repo_dir = cache_root / f\"models--{repo_id.replace('/', '--')}\"\n",
|
| 781 |
+
"\n",
|
| 782 |
+
"disk_bytes = sum(f.stat().st_size for f in repo_dir.rglob(\"*\") if f.is_file())\n",
|
| 783 |
+
"disk_mb = disk_bytes / 1024 ** 2\n",
|
| 784 |
+
"\n",
|
| 785 |
+
"print(f\"已缓存权重磁盘占用:{disk_mb:.1f} MB\")"
|
| 786 |
+
]
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"cell_type": "code",
|
| 790 |
+
"execution_count": 11,
|
| 791 |
+
"metadata": {},
|
| 792 |
+
"outputs": [
|
| 793 |
+
{
|
| 794 |
+
"name": "stderr",
|
| 795 |
+
"output_type": "stream",
|
| 796 |
+
"text": [
|
| 797 |
+
"100%|██████████| 130/130 [00:09<00:00, 13.90it/s]"
|
| 798 |
+
]
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"name": "stdout",
|
| 802 |
+
"output_type": "stream",
|
| 803 |
+
"text": [
|
| 804 |
+
"总分子数 : 8316\n",
|
| 805 |
+
"总耗时 : 11.55 s\n",
|
| 806 |
+
"平均推理 : 1.39 ms / molecule\n"
|
| 807 |
+
]
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"name": "stderr",
|
| 811 |
+
"output_type": "stream",
|
| 812 |
+
"text": [
|
| 813 |
+
"\n"
|
| 814 |
+
]
|
| 815 |
+
}
|
| 816 |
+
],
|
| 817 |
+
"source": [
|
| 818 |
+
"import pickle\n",
|
| 819 |
+
"from transformers import T5ForConditionalGeneration, AutoTokenizer\n",
|
| 820 |
+
"import torch\n",
|
| 821 |
+
"import numpy as np\n",
|
| 822 |
+
"from rdkit import Chem\n",
|
| 823 |
+
"from tqdm import tqdm\n",
|
| 824 |
+
"\n",
|
| 825 |
+
"def smiles_to_molt5(smiles_list, model_name=\"laituan245/molt5-base\", batch_size=32, pooling=\"mean\"):\n",
|
| 826 |
+
" \"\"\"\n",
|
| 827 |
+
" 使用 MolT5 生成 SMILES 的嵌入向量(基于 encoder 的隐藏状态)\n",
|
| 828 |
+
" \n",
|
| 829 |
+
" 参数:\n",
|
| 830 |
+
" smiles_list (list): SMILES 字符串列表\n",
|
| 831 |
+
" model_name (str): Hugging Face 模型 ID,默认为 MolT5-base\n",
|
| 832 |
+
" batch_size (int): 批处理大小,根据 GPU 内存调整\n",
|
| 833 |
+
" pooling (str): 池化方法,可选 \"mean\"(平均池化)或 \"cls\"(取 CLS token)\n",
|
| 834 |
+
" \n",
|
| 835 |
+
" 返回:\n",
|
| 836 |
+
" dict: 键为 SMILES,值为嵌入向量(numpy 数组)\n",
|
| 837 |
+
" \"\"\"\n",
|
| 838 |
+
" # 加载 MolT5 的 tokenizer 和模型\n",
|
| 839 |
+
" model = T5ForConditionalGeneration.from_pretrained(model_name)\n",
|
| 840 |
+
" tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
|
| 841 |
+
" model.eval()\n",
|
| 842 |
+
" \n",
|
| 843 |
+
" # 设备设置\n",
|
| 844 |
+
" device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 845 |
+
" model.to(device)\n",
|
| 846 |
+
" \n",
|
| 847 |
+
" molt5_dict = {}\n",
|
| 848 |
+
" \n",
|
| 849 |
+
" # 分批处理\n",
|
| 850 |
+
" for i in tqdm(range(0, len(smiles_list), batch_size)):\n",
|
| 851 |
+
" batch_smiles = smiles_list[i:i+batch_size]\n",
|
| 852 |
+
" valid_indices = []\n",
|
| 853 |
+
" batch_inputs = []\n",
|
| 854 |
+
" \n",
|
| 855 |
+
" # 过滤无效 SMILES\n",
|
| 856 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 857 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 858 |
+
" if mol is not None:\n",
|
| 859 |
+
" valid_indices.append(idx)\n",
|
| 860 |
+
" batch_inputs.append(smiles)\n",
|
| 861 |
+
" else:\n",
|
| 862 |
+
" print(f\"Invalid SMILES: {smiles}\")\n",
|
| 863 |
+
" molt5_dict[smiles] = np.zeros(model.config.d_model, dtype=np.float32) # 填充零向量\n",
|
| 864 |
+
" \n",
|
| 865 |
+
" if not batch_inputs:\n",
|
| 866 |
+
" continue\n",
|
| 867 |
+
" \n",
|
| 868 |
+
" # Tokenize 并生成嵌入\n",
|
| 869 |
+
" inputs = tokenizer(\n",
|
| 870 |
+
" batch_inputs,\n",
|
| 871 |
+
" return_tensors=\"pt\",\n",
|
| 872 |
+
" padding=True,\n",
|
| 873 |
+
" truncation=True,\n",
|
| 874 |
+
" max_length=512\n",
|
| 875 |
+
" ).to(device)\n",
|
| 876 |
+
" \n",
|
| 877 |
+
" with torch.no_grad():\n",
|
| 878 |
+
" # 获取 encoder 的隐藏状态(形状: [batch_size, seq_len, hidden_dim])\n",
|
| 879 |
+
" encoder_outputs = model.encoder(**inputs)\n",
|
| 880 |
+
" hidden_states = encoder_outputs.last_hidden_state\n",
|
| 881 |
+
" \n",
|
| 882 |
+
" # 池化策略\n",
|
| 883 |
+
" if pooling == \"mean\":\n",
|
| 884 |
+
" embeddings = hidden_states.mean(dim=1) # 平均池化\n",
|
| 885 |
+
" elif pooling == \"cls\":\n",
|
| 886 |
+
" embeddings = hidden_states[:, 0, :] # CLS token\n",
|
| 887 |
+
" else:\n",
|
| 888 |
+
" raise ValueError(\"pooling 必须是 'mean' 或 'cls'\")\n",
|
| 889 |
+
" \n",
|
| 890 |
+
" # 存储结果\n",
|
| 891 |
+
" for j, idx in enumerate(valid_indices):\n",
|
| 892 |
+
" molt5_dict[batch_smiles[idx]] = embeddings[j].cpu().numpy()\n",
|
| 893 |
+
" \n",
|
| 894 |
+
" return molt5_dict\n",
|
| 895 |
+
"\n",
|
| 896 |
+
"\n",
|
| 897 |
+
"import time\n",
|
| 898 |
+
"# ----- 计时开始 -----\n",
|
| 899 |
+
"smiles_list = list(idx2smi.values()) # 假设 idx2smi 是 SMILES 字典\n",
|
| 900 |
+
"\n",
|
| 901 |
+
"t0 = time.perf_counter()\n",
|
| 902 |
+
"molt5_embeddings = smiles_to_molt5(smiles_list, batch_size=64, pooling=\"mean\")\n",
|
| 903 |
+
"\n",
|
| 904 |
+
"t1 = time.perf_counter()\n",
|
| 905 |
+
"# ----- 计时结束 -----\n",
|
| 906 |
+
"\n",
|
| 907 |
+
"# 基本统计\n",
|
| 908 |
+
"total_mols = len(molt5_embeddings)\n",
|
| 909 |
+
"avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 910 |
+
"\n",
|
| 911 |
+
"print(f\"总分子数 : {total_mols}\")\n",
|
| 912 |
+
"print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 913 |
+
"print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")\n"
|
| 914 |
+
]
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"cell_type": "code",
|
| 918 |
+
"execution_count": 7,
|
| 919 |
+
"metadata": {},
|
| 920 |
+
"outputs": [
|
| 921 |
+
{
|
| 922 |
+
"name": "stdout",
|
| 923 |
+
"output_type": "stream",
|
| 924 |
+
"text": [
|
| 925 |
+
"8316 768\n"
|
| 926 |
+
]
|
| 927 |
+
}
|
| 928 |
+
],
|
| 929 |
+
"source": [
|
| 930 |
+
"print(len(molt5_embeddings), len(molt5_embeddings['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 931 |
+
]
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"cell_type": "code",
|
| 935 |
+
"execution_count": null,
|
| 936 |
+
"metadata": {},
|
| 937 |
+
"outputs": [],
|
| 938 |
+
"source": [
|
| 939 |
+
"molt5_embeddings['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']"
|
| 940 |
+
]
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"cell_type": "code",
|
| 944 |
+
"execution_count": 8,
|
| 945 |
+
"metadata": {},
|
| 946 |
+
"outputs": [
|
| 947 |
+
{
|
| 948 |
+
"name": "stdout",
|
| 949 |
+
"output_type": "stream",
|
| 950 |
+
"text": [
|
| 951 |
+
"字典已成功保存到 embeddings/molt5_emb768.pickle\n"
|
| 952 |
+
]
|
| 953 |
+
}
|
| 954 |
+
],
|
| 955 |
+
"source": [
|
| 956 |
+
"# 保存字典为pickle文件\n",
|
| 957 |
+
"pickle_path = 'embeddings/molt5_emb768.pickle'\n",
|
| 958 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 959 |
+
" pickle.dump(molt5_embeddings, pickle_file)\n",
|
| 960 |
+
"\n",
|
| 961 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 962 |
+
]
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"cell_type": "markdown",
|
| 966 |
+
"metadata": {},
|
| 967 |
+
"source": [
|
| 968 |
+
"# Generate Chemprop embedding for all smiles"
|
| 969 |
+
]
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"cell_type": "code",
|
| 973 |
+
"execution_count": null,
|
| 974 |
+
"metadata": {},
|
| 975 |
+
"outputs": [],
|
| 976 |
+
"source": [
|
| 977 |
+
"# git clone https://github.com/chemprop/chemprop.git\n",
|
| 978 |
+
"# https://chemprop.readthedocs.io/en/main/installation.html\n",
|
| 979 |
+
"# https://chemprop.readthedocs.io/en/main/tutorial/cli/fingerprint.html#fingerprint \n",
|
| 980 |
+
"\n",
|
| 981 |
+
"# chemprop fingerprint --test-path ./embeddings/LINCS2020_smiles.csv --model-path chemprop/tests/data/example_model_v2_regression_mol.ckpt --output embeddings/fps.csv --ffn-block-index -2"
|
| 982 |
+
]
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"cell_type": "code",
|
| 986 |
+
"execution_count": 14,
|
| 987 |
+
"metadata": {},
|
| 988 |
+
"outputs": [
|
| 989 |
+
{
|
| 990 |
+
"name": "stdout",
|
| 991 |
+
"output_type": "stream",
|
| 992 |
+
"text": [
|
| 993 |
+
"预训���权重总参数量: 319,505\n",
|
| 994 |
+
"0.3 M\n"
|
| 995 |
+
]
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"name": "stderr",
|
| 999 |
+
"output_type": "stream",
|
| 1000 |
+
"text": [
|
| 1001 |
+
"/tmp/ipykernel_1948954/3140832406.py:3: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 1002 |
+
" ckpt = torch.load('/home/bob/boom/VCBench/Molecule_encoder/chemprop/tests/data/example_model_v2_regression_mol.ckpt',\n"
|
| 1003 |
+
]
|
| 1004 |
+
}
|
| 1005 |
+
],
|
| 1006 |
+
"source": [
|
| 1007 |
+
"import torch\n",
|
| 1008 |
+
"\n",
|
| 1009 |
+
"ckpt = torch.load('/home/bob/boom/VCBench/Molecule_encoder/chemprop/tests/data/example_model_v2_regression_mol.ckpt',\n",
|
| 1010 |
+
" map_location='cpu')\n",
|
| 1011 |
+
"\n",
|
| 1012 |
+
"# 取出模型参数部分\n",
|
| 1013 |
+
"model_state = ckpt['state_dict']\n",
|
| 1014 |
+
"\n",
|
| 1015 |
+
"total = sum(v.numel() for v in model_state.values() if isinstance(v, torch.Tensor))\n",
|
| 1016 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1017 |
+
"print(f'{total/1e6:.1f} M')"
|
| 1018 |
+
]
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"cell_type": "code",
|
| 1022 |
+
"execution_count": 14,
|
| 1023 |
+
"metadata": {},
|
| 1024 |
+
"outputs": [
|
| 1025 |
+
{
|
| 1026 |
+
"data": {
|
| 1027 |
+
"text/plain": [
|
| 1028 |
+
"8316"
|
| 1029 |
+
]
|
| 1030 |
+
},
|
| 1031 |
+
"execution_count": 14,
|
| 1032 |
+
"metadata": {},
|
| 1033 |
+
"output_type": "execute_result"
|
| 1034 |
+
}
|
| 1035 |
+
],
|
| 1036 |
+
"source": [
|
| 1037 |
+
"import csv\n",
|
| 1038 |
+
"import numpy as np\n",
|
| 1039 |
+
"\n",
|
| 1040 |
+
"# CSV文件路径\n",
|
| 1041 |
+
"csv1_path = 'infoalign_model/LINCS2020_smiles.csv'\n",
|
| 1042 |
+
"csv2_path = 'embeddings/fps_0.csv'\n",
|
| 1043 |
+
"\n",
|
| 1044 |
+
"# 初始化一个空字典来存储SMILES和对应的表征\n",
|
| 1045 |
+
"smiles_to_representation = {}\n",
|
| 1046 |
+
"\n",
|
| 1047 |
+
"# 读取第一个CSV文件(SMILES信息)\n",
|
| 1048 |
+
"smiles_list = []\n",
|
| 1049 |
+
"with open(csv1_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 1050 |
+
" reader = csv.DictReader(csvfile)\n",
|
| 1051 |
+
" for row in reader:\n",
|
| 1052 |
+
" smiles = row['SMILES'] # 假设CSV文件中列名为'SMILES'\n",
|
| 1053 |
+
" smiles_list.append(smiles)\n",
|
| 1054 |
+
"\n",
|
| 1055 |
+
"# 读取第二个CSV文件(表征信息),跳过第一行\n",
|
| 1056 |
+
"representation_list = []\n",
|
| 1057 |
+
"with open(csv2_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 1058 |
+
" reader = csv.reader(csvfile)\n",
|
| 1059 |
+
" next(reader) # 跳过第一行\n",
|
| 1060 |
+
" for row in reader:\n",
|
| 1061 |
+
" # 将字符串转换为浮点数\n",
|
| 1062 |
+
" representation = [np.float32(x) for x in row] # 假设表征信息是整行数据\n",
|
| 1063 |
+
" representation_list.append(representation)\n",
|
| 1064 |
+
"\n",
|
| 1065 |
+
"# 将列表转换为numpy数组\n",
|
| 1066 |
+
"representation_array = np.array(representation_list)\n",
|
| 1067 |
+
"\n",
|
| 1068 |
+
"# 将SMILES和对应的表征合并到字典中\n",
|
| 1069 |
+
"for smiles, representation in zip(smiles_list, representation_array):\n",
|
| 1070 |
+
" smiles_to_representation[smiles] = representation\n",
|
| 1071 |
+
"\n",
|
| 1072 |
+
"len(smiles_to_representation)"
|
| 1073 |
+
]
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"cell_type": "code",
|
| 1077 |
+
"execution_count": 15,
|
| 1078 |
+
"metadata": {},
|
| 1079 |
+
"outputs": [
|
| 1080 |
+
{
|
| 1081 |
+
"name": "stdout",
|
| 1082 |
+
"output_type": "stream",
|
| 1083 |
+
"text": [
|
| 1084 |
+
"300 <class 'numpy.ndarray'>\n"
|
| 1085 |
+
]
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"data": {
|
| 1089 |
+
"text/plain": [
|
| 1090 |
+
"dtype('float32')"
|
| 1091 |
+
]
|
| 1092 |
+
},
|
| 1093 |
+
"execution_count": 15,
|
| 1094 |
+
"metadata": {},
|
| 1095 |
+
"output_type": "execute_result"
|
| 1096 |
+
}
|
| 1097 |
+
],
|
| 1098 |
+
"source": [
|
| 1099 |
+
"print(len(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']), type(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))\n",
|
| 1100 |
+
"\n",
|
| 1101 |
+
"smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br'].dtype"
|
| 1102 |
+
]
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"cell_type": "code",
|
| 1106 |
+
"execution_count": 16,
|
| 1107 |
+
"metadata": {},
|
| 1108 |
+
"outputs": [
|
| 1109 |
+
{
|
| 1110 |
+
"name": "stdout",
|
| 1111 |
+
"output_type": "stream",
|
| 1112 |
+
"text": [
|
| 1113 |
+
"300\n",
|
| 1114 |
+
"字典已成功保存到 embeddings/Chemprop_emb300.pickle\n"
|
| 1115 |
+
]
|
| 1116 |
+
}
|
| 1117 |
+
],
|
| 1118 |
+
"source": [
|
| 1119 |
+
"print(len(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))\n",
|
| 1120 |
+
"\n",
|
| 1121 |
+
"import pickle\n",
|
| 1122 |
+
"# 保存字典为pickle文件\n",
|
| 1123 |
+
"pickle_path = 'embeddings/Chemprop_emb300.pickle'\n",
|
| 1124 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 1125 |
+
" pickle.dump(smiles_to_representation, pickle_file)\n",
|
| 1126 |
+
"\n",
|
| 1127 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 1128 |
+
]
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"cell_type": "markdown",
|
| 1132 |
+
"metadata": {},
|
| 1133 |
+
"source": [
|
| 1134 |
+
"# Generate MolCLR embedding for all smiles\n",
|
| 1135 |
+
"\n",
|
| 1136 |
+
"## see /home/bob/boom/DrugIM/TranSiGen/data/MolCLR/Get_emd.ipynb\n",
|
| 1137 |
+
"\n",
|
| 1138 |
+
"### We use GIN model, which has a better performance in their paper"
|
| 1139 |
+
]
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"cell_type": "code",
|
| 1143 |
+
"execution_count": 15,
|
| 1144 |
+
"metadata": {},
|
| 1145 |
+
"outputs": [
|
| 1146 |
+
{
|
| 1147 |
+
"name": "stdout",
|
| 1148 |
+
"output_type": "stream",
|
| 1149 |
+
"text": [
|
| 1150 |
+
"预训练权重总参数量: 2,407,201\n",
|
| 1151 |
+
"2.4 M\n"
|
| 1152 |
+
]
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"name": "stderr",
|
| 1156 |
+
"output_type": "stream",
|
| 1157 |
+
"text": [
|
| 1158 |
+
"/tmp/ipykernel_1948954/3871607093.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 1159 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/MolCLR/ckpt/pretrained_gin/checkpoints/model.pth', map_location='cpu')\n"
|
| 1160 |
+
]
|
| 1161 |
+
}
|
| 1162 |
+
],
|
| 1163 |
+
"source": [
|
| 1164 |
+
"import torch\n",
|
| 1165 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/MolCLR/ckpt/pretrained_gin/checkpoints/model.pth', map_location='cpu')\n",
|
| 1166 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 1167 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1168 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 1169 |
+
]
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"cell_type": "markdown",
|
| 1173 |
+
"metadata": {},
|
| 1174 |
+
"source": []
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"cell_type": "markdown",
|
| 1178 |
+
"metadata": {},
|
| 1179 |
+
"source": [
|
| 1180 |
+
"# Generate Mole-BERT embedding for all smiles\n",
|
| 1181 |
+
"\n",
|
| 1182 |
+
"## see /home/bob/boom/DrugIM/TranSiGen/data/Mole-BERT/Get_emd.ipynb\n",
|
| 1183 |
+
"\n",
|
| 1184 |
+
"### We use GNN_graphpred model, which has a better performance in their paper"
|
| 1185 |
+
]
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"cell_type": "code",
|
| 1189 |
+
"execution_count": 16,
|
| 1190 |
+
"metadata": {},
|
| 1191 |
+
"outputs": [
|
| 1192 |
+
{
|
| 1193 |
+
"name": "stdout",
|
| 1194 |
+
"output_type": "stream",
|
| 1195 |
+
"text": [
|
| 1196 |
+
"预训练权重总参数量: 1,860,905\n",
|
| 1197 |
+
"1.9 M\n"
|
| 1198 |
+
]
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"name": "stderr",
|
| 1202 |
+
"output_type": "stream",
|
| 1203 |
+
"text": [
|
| 1204 |
+
"/tmp/ipykernel_1948954/2103728332.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 1205 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/Mole-BERT/model_gin/Mole-BERT.pth', map_location='cpu')\n"
|
| 1206 |
+
]
|
| 1207 |
+
}
|
| 1208 |
+
],
|
| 1209 |
+
"source": [
|
| 1210 |
+
"import torch\n",
|
| 1211 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/Mole-BERT/model_gin/Mole-BERT.pth', map_location='cpu')\n",
|
| 1212 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 1213 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1214 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 1215 |
+
]
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"cell_type": "code",
|
| 1219 |
+
"execution_count": null,
|
| 1220 |
+
"metadata": {},
|
| 1221 |
+
"outputs": [],
|
| 1222 |
+
"source": []
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"cell_type": "markdown",
|
| 1226 |
+
"metadata": {},
|
| 1227 |
+
"source": [
|
| 1228 |
+
"# 3D UniMol"
|
| 1229 |
+
]
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"cell_type": "code",
|
| 1233 |
+
"execution_count": 1,
|
| 1234 |
+
"metadata": {},
|
| 1235 |
+
"outputs": [
|
| 1236 |
+
{
|
| 1237 |
+
"data": {
|
| 1238 |
+
"text/plain": [
|
| 1239 |
+
"8316"
|
| 1240 |
+
]
|
| 1241 |
+
},
|
| 1242 |
+
"execution_count": 1,
|
| 1243 |
+
"metadata": {},
|
| 1244 |
+
"output_type": "execute_result"
|
| 1245 |
+
}
|
| 1246 |
+
],
|
| 1247 |
+
"source": [
|
| 1248 |
+
"import pickle, h5py\n",
|
| 1249 |
+
"import numpy as np\n",
|
| 1250 |
+
"import pandas as pd\n",
|
| 1251 |
+
"\n",
|
| 1252 |
+
"with open('./LINCS2020/idx2smi.pickle', 'rb') as f:\n",
|
| 1253 |
+
" idx2smi = pickle.load(f)\\\n",
|
| 1254 |
+
"\n",
|
| 1255 |
+
"unique_smiles = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串\n",
|
| 1256 |
+
"len(unique_smiles)"
|
| 1257 |
+
]
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"cell_type": "code",
|
| 1261 |
+
"execution_count": null,
|
| 1262 |
+
"metadata": {},
|
| 1263 |
+
"outputs": [
|
| 1264 |
+
{
|
| 1265 |
+
"name": "stderr",
|
| 1266 |
+
"output_type": "stream",
|
| 1267 |
+
"text": [
|
| 1268 |
+
"2025-09-15 11:17:31 | unimol_tools/models/unimolv2.py | 161 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/modelzoo/310M/checkpoint.pt\n"
|
| 1269 |
+
]
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"name": "stdout",
|
| 1273 |
+
"output_type": "stream",
|
| 1274 |
+
"text": [
|
| 1275 |
+
"开始生成32个SMILES的嵌入表示...\n",
|
| 1276 |
+
"开始\n"
|
| 1277 |
+
]
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"name": "stderr",
|
| 1281 |
+
"output_type": "stream",
|
| 1282 |
+
"text": [
|
| 1283 |
+
"处理批次: 0%| | 0/1 [00:00<?, ?it/s]2025-09-15 11:17:32 | unimol_tools/data/conformer.py | 437 | INFO | Uni-Mol Tools | Start generating conformers...\n",
|
| 1284 |
+
"32it [00:00, 82.76it/s]\n",
|
| 1285 |
+
"2025-09-15 11:17:33 | unimol_tools/data/conformer.py | 452 | INFO | Uni-Mol Tools | Succeeded in generating conformers for 100.00% of molecules.\n",
|
| 1286 |
+
"2025-09-15 11:17:33 | unimol_tools/data/conformer.py | 469 | INFO | Uni-Mol Tools | Succeeded in generating 3d conformers for 100.00% of molecules.\n",
|
| 1287 |
+
"2025-09-15 11:17:33 | unimol_tools/tasks/trainer.py | 78 | INFO | Uni-Mol Tools | Number of GPUs available: 1\n",
|
| 1288 |
+
"2025-09-15 11:17:33 | unimol_tools/tasks/trainer.py | 98 | INFO | Uni-Mol Tools | Using single GPU.\n",
|
| 1289 |
+
"100%|██████████| 1/1 [00:00<00:00, 2.32it/s]\n",
|
| 1290 |
+
"处理批次: 100%|██████████| 1/1 [00:01<00:00, 1.25s/it]"
|
| 1291 |
+
]
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"name": "stdout",
|
| 1295 |
+
"output_type": "stream",
|
| 1296 |
+
"text": [
|
| 1297 |
+
"嵌入生成完成!共处理 32 个SMILES,32 个成功,0 个失败。\n",
|
| 1298 |
+
"嵌入结果已保存至 embeddings/UniMolV2_emb1024.pkl\n",
|
| 1299 |
+
"总分子数 : 32\n",
|
| 1300 |
+
"总耗时 : 3.50 s\n",
|
| 1301 |
+
"平均推理 : 109.37 ms / molecule\n"
|
| 1302 |
+
]
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"name": "stderr",
|
| 1306 |
+
"output_type": "stream",
|
| 1307 |
+
"text": [
|
| 1308 |
+
"\n"
|
| 1309 |
+
]
|
| 1310 |
+
}
|
| 1311 |
+
],
|
| 1312 |
+
"source": [
|
| 1313 |
+
"import os\n",
|
| 1314 |
+
"import pickle\n",
|
| 1315 |
+
"import numpy as np\n",
|
| 1316 |
+
"from tqdm import tqdm\n",
|
| 1317 |
+
"from unimol_tools import UniMolRepr\n",
|
| 1318 |
+
"import os, sys, contextlib\n",
|
| 1319 |
+
"\n",
|
| 1320 |
+
"@contextlib.contextmanager\n",
|
| 1321 |
+
"def suppress_stdout_stderr():\n",
|
| 1322 |
+
" \"\"\"with 块内所有 print / tqdm / warning 都不会显示\"\"\"\n",
|
| 1323 |
+
" with open(os.devnull, 'w') as devnull:\n",
|
| 1324 |
+
" old_out, old_err = sys.stdout, sys.stderr\n",
|
| 1325 |
+
" sys.stdout, sys.stderr = devnull, devnull\n",
|
| 1326 |
+
" try:\n",
|
| 1327 |
+
" yield\n",
|
| 1328 |
+
" finally:\n",
|
| 1329 |
+
" sys.stdout, sys.stderr = old_out, old_err\n",
|
| 1330 |
+
"\n",
|
| 1331 |
+
"def get_unimol_embeddings(smiles_list, output_file=\"UniMol_emb512.pkl\", \n",
|
| 1332 |
+
" model_name='unimolv1', model_size='84m', \n",
|
| 1333 |
+
" remove_hs=False, batch_size=32):\n",
|
| 1334 |
+
" \"\"\"\n",
|
| 1335 |
+
" 使用Uni-Mol模型为SMILES列表生成分子嵌入,并保存为pickle文件\n",
|
| 1336 |
+
" \n",
|
| 1337 |
+
" 参数:\n",
|
| 1338 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 1339 |
+
" output_file (str): 输出pickle文件路径\n",
|
| 1340 |
+
" model_name (str): 模型名称,可选'unimolv1'或'unimolv2'\n",
|
| 1341 |
+
" model_size (str): 模型大小,仅在使用unimolv2时有效\n",
|
| 1342 |
+
" remove_hs (bool): 是否移除氢原子\n",
|
| 1343 |
+
" batch_size (int): 批处理大小\n",
|
| 1344 |
+
" \n",
|
| 1345 |
+
" 返回:\n",
|
| 1346 |
+
" dict: 包含SMILES及其对应嵌入的字典\n",
|
| 1347 |
+
" \"\"\"\n",
|
| 1348 |
+
" # 初始化模型\n",
|
| 1349 |
+
" clf = UniMolRepr(\n",
|
| 1350 |
+
" data_type='molecule',\n",
|
| 1351 |
+
" remove_hs=remove_hs,\n",
|
| 1352 |
+
" model_name=model_name,\n",
|
| 1353 |
+
" model_size=model_size\n",
|
| 1354 |
+
" )\n",
|
| 1355 |
+
" \n",
|
| 1356 |
+
" # 用于存储结果的字典\n",
|
| 1357 |
+
" embeddings_dict = {}\n",
|
| 1358 |
+
" error_smiles = []\n",
|
| 1359 |
+
" \n",
|
| 1360 |
+
" # 批处理SMILES\n",
|
| 1361 |
+
" total_batches = (len(smiles_list) + batch_size - 1) // batch_size\n",
|
| 1362 |
+
" \n",
|
| 1363 |
+
" print(f\"开始生成{len(smiles_list)}个SMILES的嵌入表示...\")\n",
|
| 1364 |
+
" \n",
|
| 1365 |
+
" print(\"开始\")\n",
|
| 1366 |
+
" # with suppress_stdout_stderr():\n",
|
| 1367 |
+
" for i in tqdm(range(total_batches), desc=\"处理批次\"):\n",
|
| 1368 |
+
" batch = smiles_list[i*batch_size : (i+1)*batch_size]\n",
|
| 1369 |
+
" \n",
|
| 1370 |
+
" try:\n",
|
| 1371 |
+
" # 获取嵌入表示\n",
|
| 1372 |
+
" batch_repr = clf.get_repr(batch, return_atomic_reprs=False)\n",
|
| 1373 |
+
" \n",
|
| 1374 |
+
" # 将结果存入字典 (使用CLS token作为分子表示)\n",
|
| 1375 |
+
" for idx, smiles in enumerate(batch):\n",
|
| 1376 |
+
" embeddings_dict[smiles] = batch_repr['cls_repr'][idx]\n",
|
| 1377 |
+
" \n",
|
| 1378 |
+
" except Exception as e:\n",
|
| 1379 |
+
" print(f\"处理批次 {i+1}/{total_batches} 时发生错误: {str(e)}\")\n",
|
| 1380 |
+
" # 记录处理失败的SMILES\n",
|
| 1381 |
+
" error_smiles.extend(batch)\n",
|
| 1382 |
+
" \n",
|
| 1383 |
+
" # 保存嵌入结果\n",
|
| 1384 |
+
" with open(output_file, 'wb') as f:\n",
|
| 1385 |
+
" pickle.dump(embeddings_dict, f)\n",
|
| 1386 |
+
" \n",
|
| 1387 |
+
" print(f\"嵌入生成完成!共处理 {len(smiles_list)} 个SMILES,\"\n",
|
| 1388 |
+
" f\"{len(smiles_list) - len(error_smiles)} 个成功,\"\n",
|
| 1389 |
+
" f\"{len(error_smiles)} 个失败。\")\n",
|
| 1390 |
+
" print(f\"嵌入结果已保存至 {output_file}\")\n",
|
| 1391 |
+
" \n",
|
| 1392 |
+
" if error_smiles:\n",
|
| 1393 |
+
" print(f\"处理失败的SMILES已记录。\")\n",
|
| 1394 |
+
" \n",
|
| 1395 |
+
" return embeddings_dict\n",
|
| 1396 |
+
"\n",
|
| 1397 |
+
"# 使用示例\n",
|
| 1398 |
+
"if __name__ == \"__main__\":\n",
|
| 1399 |
+
" \n",
|
| 1400 |
+
" # 假设unique_smiles是你的SMILES列表\n",
|
| 1401 |
+
" unique_smiles = [\n",
|
| 1402 |
+
" \"CC(=O)OC1=CC=CC=C1C(=O)O\", # Aspirin\n",
|
| 1403 |
+
" \"CN1C=NC2=C1C(=O)N(C(=O)N2C)C\" # Caffeine\n",
|
| 1404 |
+
" ] # 示例SMILES列表\n",
|
| 1405 |
+
" unique_smiles = pd.read_csv('./LINCS2020/LINCS2020_smiles.csv')['SMILES'].tolist()\n",
|
| 1406 |
+
"\n",
|
| 1407 |
+
" # UniMol V1\n",
|
| 1408 |
+
" # embeddings = get_unimol_embeddings(\n",
|
| 1409 |
+
" # smiles_list=unique_smiles,\n",
|
| 1410 |
+
" # output_file=\"embeddings/UniMol_emb512.pkl\",\n",
|
| 1411 |
+
" # model_name='unimolv1',\n",
|
| 1412 |
+
" # model_size='84m',\n",
|
| 1413 |
+
" # remove_hs=False,\n",
|
| 1414 |
+
" # batch_size=32\n",
|
| 1415 |
+
" # )\n",
|
| 1416 |
+
" \n",
|
| 1417 |
+
" # UniMol V2\n",
|
| 1418 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1419 |
+
" smiles_list=unique_smiles,\n",
|
| 1420 |
+
" output_file=\"embeddings/UniMolV2_emb1024.pkl\", # save path\n",
|
| 1421 |
+
" model_name='unimolv2', # 修改为 v2 版本\n",
|
| 1422 |
+
" model_size='310m', # 指定 v2 模型大小(根据需要选择)\n",
|
| 1423 |
+
" remove_hs=False,\n",
|
| 1424 |
+
" batch_size=32\n",
|
| 1425 |
+
" )\n",
|
| 1426 |
+
"\n",
|
| 1427 |
+
" # 打印样例嵌入\n",
|
| 1428 |
+
" sample_smiles = unique_smiles[0]\n",
|
| 1429 |
+
" print(f\"SMILES: {sample_smiles}\")\n",
|
| 1430 |
+
" print(f\"嵌入向量: {embeddings[sample_smiles]}\")\n",
|
| 1431 |
+
" print(f\"嵌入维度: {len(embeddings[sample_smiles])}\")\n",
|
| 1432 |
+
" "
|
| 1433 |
+
]
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"cell_type": "code",
|
| 1437 |
+
"execution_count": 18,
|
| 1438 |
+
"metadata": {},
|
| 1439 |
+
"outputs": [
|
| 1440 |
+
{
|
| 1441 |
+
"name": "stderr",
|
| 1442 |
+
"output_type": "stream",
|
| 1443 |
+
"text": [
|
| 1444 |
+
"2025-10-16 21:29:18 | unimol_tools/models/unimol.py | 136 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/mol_pre_all_h_220816.pt\n"
|
| 1445 |
+
]
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"name": "stdout",
|
| 1449 |
+
"output_type": "stream",
|
| 1450 |
+
"text": [
|
| 1451 |
+
"UniMol-unimolv1-84m 可训练参数量: 47.3 M\n"
|
| 1452 |
+
]
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"name": "stderr",
|
| 1456 |
+
"output_type": "stream",
|
| 1457 |
+
"text": [
|
| 1458 |
+
"2025-10-16 21:29:20 | unimol_tools/models/unimolv2.py | 161 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/modelzoo/310M/checkpoint.pt\n"
|
| 1459 |
+
]
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"name": "stdout",
|
| 1463 |
+
"output_type": "stream",
|
| 1464 |
+
"text": [
|
| 1465 |
+
"UniMol-unimolv2-310m 可训练参数量: 308.9 M\n"
|
| 1466 |
+
]
|
| 1467 |
+
}
|
| 1468 |
+
],
|
| 1469 |
+
"source": [
|
| 1470 |
+
"import os\n",
|
| 1471 |
+
"import pickle\n",
|
| 1472 |
+
"import numpy as np\n",
|
| 1473 |
+
"from tqdm import tqdm\n",
|
| 1474 |
+
"from unimol_tools import UniMolRepr\n",
|
| 1475 |
+
"import os, sys, contextlib\n",
|
| 1476 |
+
"\n",
|
| 1477 |
+
"def get_unimol_embeddings(smiles_list, output_file=\"UniMol_emb512.pkl\", \n",
|
| 1478 |
+
" model_name='unimolv1', model_size='84m', \n",
|
| 1479 |
+
" remove_hs=False, batch_size=32):\n",
|
| 1480 |
+
" \"\"\"\n",
|
| 1481 |
+
" 使用Uni-Mol模型为SMILES列表生成分子嵌入,并保存为pickle文件\n",
|
| 1482 |
+
" \n",
|
| 1483 |
+
" 参数:\n",
|
| 1484 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 1485 |
+
" output_file (str): 输出pickle文件路径\n",
|
| 1486 |
+
" model_name (str): 模型名称,可选'unimolv1'或'unimolv2'\n",
|
| 1487 |
+
" model_size (str): 模型大小,仅在使用unimolv2时有效\n",
|
| 1488 |
+
" remove_hs (bool): 是否移除氢原子\n",
|
| 1489 |
+
" batch_size (int): 批处理大小\n",
|
| 1490 |
+
" \n",
|
| 1491 |
+
" 返回:\n",
|
| 1492 |
+
" dict: 包含SMILES及其对应嵌入的字典\n",
|
| 1493 |
+
" \"\"\"\n",
|
| 1494 |
+
" # 初始化模型\n",
|
| 1495 |
+
" # ===== 在 clf 初始化完成后立即统计 =====\n",
|
| 1496 |
+
" clf = UniMolRepr(\n",
|
| 1497 |
+
" data_type='molecule',\n",
|
| 1498 |
+
" remove_hs=remove_hs,\n",
|
| 1499 |
+
" model_name=model_name,\n",
|
| 1500 |
+
" model_size=model_size)\n",
|
| 1501 |
+
"\n",
|
| 1502 |
+
" # 取出真正的网络\n",
|
| 1503 |
+
" real_model = clf.model # <== 关键属性\n",
|
| 1504 |
+
"\n",
|
| 1505 |
+
" total = sum(p.numel() for p in real_model.parameters() if p.requires_grad)\n",
|
| 1506 |
+
" print(f'UniMol-{model_name}-{model_size} 可训练参数量: {total/1e6:.1f} M')\n",
|
| 1507 |
+
" \n",
|
| 1508 |
+
" \n",
|
| 1509 |
+
"# 使用示例\n",
|
| 1510 |
+
"if __name__ == \"__main__\":\n",
|
| 1511 |
+
" # 假设unique_smiles是你的SMILES列表\n",
|
| 1512 |
+
" # 生成并保存嵌入\n",
|
| 1513 |
+
" import time\n",
|
| 1514 |
+
" # ----- 计时开始 -----\n",
|
| 1515 |
+
" unique_smiles = list(idx2smi.values()) # 假设 idx2smi 是 SMILES 字典\n",
|
| 1516 |
+
"\n",
|
| 1517 |
+
" t0 = time.perf_counter()\n",
|
| 1518 |
+
" \n",
|
| 1519 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1520 |
+
" smiles_list=unique_smiles[:32],\n",
|
| 1521 |
+
" output_file=\"embeddings/UniMol_emb512.pkl\",\n",
|
| 1522 |
+
" model_name='unimolv1',\n",
|
| 1523 |
+
" model_size='84m',\n",
|
| 1524 |
+
" remove_hs=False,\n",
|
| 1525 |
+
" batch_size=32\n",
|
| 1526 |
+
" )\n",
|
| 1527 |
+
" # UniMol 2\n",
|
| 1528 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1529 |
+
" smiles_list=unique_smiles[:32],\n",
|
| 1530 |
+
" output_file=\"embeddings/UniMolV2_emb1024.pkl\",\n",
|
| 1531 |
+
" model_name='unimolv2', # 修改为 v2 版本\n",
|
| 1532 |
+
" model_size='310m', # 指定 v2 模型大小(根据需要选择)\n",
|
| 1533 |
+
" remove_hs=False,\n",
|
| 1534 |
+
" batch_size=32\n",
|
| 1535 |
+
" )"
|
| 1536 |
+
]
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"cell_type": "code",
|
| 1540 |
+
"execution_count": null,
|
| 1541 |
+
"metadata": {},
|
| 1542 |
+
"outputs": [],
|
| 1543 |
+
"source": [
|
| 1544 |
+
"\n",
|
| 1545 |
+
"# output_file=\"embeddings/UniMolV2_emb1024.pkl\"\n",
|
| 1546 |
+
"# with open(output_file, 'wb') as f:\n",
|
| 1547 |
+
"# pickle.dump(embeddings, f)"
|
| 1548 |
+
]
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"cell_type": "code",
|
| 1552 |
+
"execution_count": null,
|
| 1553 |
+
"metadata": {},
|
| 1554 |
+
"outputs": [],
|
| 1555 |
+
"source": [
|
| 1556 |
+
"path = './embeddings/UniMolV2_emb1024.pkl'\n",
|
| 1557 |
+
"import pickle\n",
|
| 1558 |
+
"with open(path, 'rb') as f:\n",
|
| 1559 |
+
" unimol_feat = pickle.load(f)\n",
|
| 1560 |
+
"\n",
|
| 1561 |
+
"unimol_feat"
|
| 1562 |
+
]
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"cell_type": "code",
|
| 1566 |
+
"execution_count": 9,
|
| 1567 |
+
"metadata": {},
|
| 1568 |
+
"outputs": [
|
| 1569 |
+
{
|
| 1570 |
+
"name": "stdout",
|
| 1571 |
+
"output_type": "stream",
|
| 1572 |
+
"text": [
|
| 1573 |
+
"8316 512\n"
|
| 1574 |
+
]
|
| 1575 |
+
}
|
| 1576 |
+
],
|
| 1577 |
+
"source": [
|
| 1578 |
+
"print(len(unimol_feat), len(unimol_feat['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 1579 |
+
]
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"cell_type": "code",
|
| 1583 |
+
"execution_count": 11,
|
| 1584 |
+
"metadata": {},
|
| 1585 |
+
"outputs": [
|
| 1586 |
+
{
|
| 1587 |
+
"name": "stdout",
|
| 1588 |
+
"output_type": "stream",
|
| 1589 |
+
"text": [
|
| 1590 |
+
"处理前维度: (1, 512)\n",
|
| 1591 |
+
"处理后维度: (512,)\n"
|
| 1592 |
+
]
|
| 1593 |
+
}
|
| 1594 |
+
],
|
| 1595 |
+
"source": [
|
| 1596 |
+
"# import pickle\n",
|
| 1597 |
+
"# import numpy as np\n",
|
| 1598 |
+
"\n",
|
| 1599 |
+
"# # 加载原始特征\n",
|
| 1600 |
+
"# path = './embeddings/UniMol_emb512.pkl'\n",
|
| 1601 |
+
"# with open(path, 'rb') as f:\n",
|
| 1602 |
+
"# unimol_feat = pickle.load(f)\n",
|
| 1603 |
+
"\n",
|
| 1604 |
+
"# # 处理特征维度:从(1,512)变为(512,)\n",
|
| 1605 |
+
"# unimol_feat_processed = {k: v.squeeze() for k, v in unimol_feat.items()}\n",
|
| 1606 |
+
"\n",
|
| 1607 |
+
"# # 验证处理结果\n",
|
| 1608 |
+
"# test_molecule = 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br'\n",
|
| 1609 |
+
"# if test_molecule in unimol_feat_processed:\n",
|
| 1610 |
+
"# print(f\"处理前维度: {unimol_feat[test_molecule].shape}\")\n",
|
| 1611 |
+
"# print(f\"处理后维度: {unimol_feat_processed[test_molecule].shape}\")"
|
| 1612 |
+
]
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"cell_type": "code",
|
| 1616 |
+
"execution_count": null,
|
| 1617 |
+
"metadata": {},
|
| 1618 |
+
"outputs": [],
|
| 1619 |
+
"source": [
|
| 1620 |
+
"# # 保存处理后的特征\n",
|
| 1621 |
+
"# # 选项1:覆盖原始文件\n",
|
| 1622 |
+
"# with open(path, 'wb') as f:\n",
|
| 1623 |
+
"# pickle.dump(unimol_feat_processed, f)\n",
|
| 1624 |
+
"\n",
|
| 1625 |
+
"# 选项2:保存到新文件(推荐,避免覆盖原始数据)\n",
|
| 1626 |
+
"# processed_path = './embeddings/UniMol_emb512_processed.pkl'\n",
|
| 1627 |
+
"# with open(processed_path, 'wb') as f:\n",
|
| 1628 |
+
"# pickle.dump(unimol_feat_processed, f)\n",
|
| 1629 |
+
"\n",
|
| 1630 |
+
"# print(f\"处理后的特征已保存至: {processed_path}\")\n"
|
| 1631 |
+
]
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"cell_type": "code",
|
| 1635 |
+
"execution_count": null,
|
| 1636 |
+
"metadata": {},
|
| 1637 |
+
"outputs": [],
|
| 1638 |
+
"source": []
|
| 1639 |
+
}
|
| 1640 |
+
],
|
| 1641 |
+
"metadata": {
|
| 1642 |
+
"kernelspec": {
|
| 1643 |
+
"display_name": "boom",
|
| 1644 |
+
"language": "python",
|
| 1645 |
+
"name": "python3"
|
| 1646 |
+
},
|
| 1647 |
+
"language_info": {
|
| 1648 |
+
"codemirror_mode": {
|
| 1649 |
+
"name": "ipython",
|
| 1650 |
+
"version": 3
|
| 1651 |
+
},
|
| 1652 |
+
"file_extension": ".py",
|
| 1653 |
+
"mimetype": "text/x-python",
|
| 1654 |
+
"name": "python",
|
| 1655 |
+
"nbconvert_exporter": "python",
|
| 1656 |
+
"pygments_lexer": "ipython3",
|
| 1657 |
+
"version": "3.11.10"
|
| 1658 |
+
}
|
| 1659 |
+
},
|
| 1660 |
+
"nbformat": 4,
|
| 1661 |
+
"nbformat_minor": 2
|
| 1662 |
+
}
|
Image/SMILES_Encoder.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Image/SMILES_Encoder_image.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Image/image_all_unique_smiles.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Image/unique_smiles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
LINCS2020/gene_978_to965.ipynb
ADDED
|
@@ -0,0 +1,582 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "8d20992a",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 找到978中的965,去掉其他的基因,得到纯种 LINCS965"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": 2,
|
| 14 |
+
"id": "a03cc045",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [
|
| 17 |
+
{
|
| 18 |
+
"data": {
|
| 19 |
+
"text/plain": [
|
| 20 |
+
"{'canonical_smiles': array(['BrC1C(Br)C(Br)C(Br)C(Br)C1Br', 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br',\n",
|
| 21 |
+
" 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br', ..., 'c1nc(cs1)-c1nc2ccccc2[nH]1',\n",
|
| 22 |
+
" 'c1nc(cs1)-c1nc2ccccc2[nH]1', 'c1nc(cs1)-c1nc2ccccc2[nH]1'],\n",
|
| 23 |
+
" dtype='<U454'),\n",
|
| 24 |
+
" 'cid': array(['A549', 'ASC', 'MCF7', ..., 'THP1', 'VCAP', 'YAPC'], dtype='<U8'),\n",
|
| 25 |
+
" 'sig': array(['A549_0', 'ASC_0', 'MCF7_0', ..., 'THP1_8315', 'VCAP_8315',\n",
|
| 26 |
+
" 'YAPC_8315'], dtype='<U13'),\n",
|
| 27 |
+
" 'x1': array([[ 9.533199 , 4.79235 , 9.7237 , ..., 11.9874 , 9.3001 ,\n",
|
| 28 |
+
" 8.39445 ],\n",
|
| 29 |
+
" [ 8.509138 , 4.8156996, 7.3642497, ..., 11.6545 , 10.211599 ,\n",
|
| 30 |
+
" 8.973351 ],\n",
|
| 31 |
+
" [ 9.043461 , 7.6456842, 7.459799 , ..., 6.712334 , 11.85135 ,\n",
|
| 32 |
+
" 6.3363895],\n",
|
| 33 |
+
" ...,\n",
|
| 34 |
+
" [ 8.86875 , 5.9342003, 8.8046 , ..., 7.338975 , 11.65115 ,\n",
|
| 35 |
+
" 8.347799 ],\n",
|
| 36 |
+
" [ 9.482506 , 5.9174104, 8.216723 , ..., 6.722115 , 10.991553 ,\n",
|
| 37 |
+
" 7.3406167],\n",
|
| 38 |
+
" [ 9.725147 , 7.049716 , 9.0830555, ..., 9.198456 , 11.310257 ,\n",
|
| 39 |
+
" 7.920928 ]], dtype=float32),\n",
|
| 40 |
+
" 'x2': array([[ 9.4455 , 6.92005 , 10.2842 , ..., 12.2337 , 9.618799 ,\n",
|
| 41 |
+
" 7.8896003],\n",
|
| 42 |
+
" [ 8.291338 , 5.3398876, 6.832475 , ..., 11.05195 , 11.712725 ,\n",
|
| 43 |
+
" 9.1215 ],\n",
|
| 44 |
+
" [ 9.176098 , 7.160512 , 7.151138 , ..., 6.86923 , 11.213164 ,\n",
|
| 45 |
+
" 6.2830935],\n",
|
| 46 |
+
" ...,\n",
|
| 47 |
+
" [ 8.7068 , 5.7699003, 8.881599 , ..., 7.468175 , 11.75805 ,\n",
|
| 48 |
+
" 8.6483 ],\n",
|
| 49 |
+
" [ 9.617616 , 5.709352 , 7.277331 , ..., 7.262997 , 10.814158 ,\n",
|
| 50 |
+
" 7.3617706],\n",
|
| 51 |
+
" [ 9.710126 , 6.609707 , 9.075139 , ..., 9.596974 , 10.573312 ,\n",
|
| 52 |
+
" 7.4035025]], dtype=float32)}"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"execution_count": 2,
|
| 56 |
+
"metadata": {},
|
| 57 |
+
"output_type": "execute_result"
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"source": [
|
| 61 |
+
"import pickle, h5py\n",
|
| 62 |
+
"import numpy as np\n",
|
| 63 |
+
"import pandas as pd\n",
|
| 64 |
+
"\n",
|
| 65 |
+
"def load_from_HDF(fname):\n",
|
| 66 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 67 |
+
" data = dict()\n",
|
| 68 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 69 |
+
" for key in f:\n",
|
| 70 |
+
" data[key] = np.asarray(f[key])\n",
|
| 71 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 72 |
+
" data[key] = data[key].astype(str)\n",
|
| 73 |
+
" return data\n",
|
| 74 |
+
"\n",
|
| 75 |
+
"LINCS_data_example = load_from_HDF('./processed_data.h5')\n",
|
| 76 |
+
"LINCS_data_example"
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"cell_type": "code",
|
| 81 |
+
"execution_count": 11,
|
| 82 |
+
"id": "ae1d3985",
|
| 83 |
+
"metadata": {},
|
| 84 |
+
"outputs": [
|
| 85 |
+
{
|
| 86 |
+
"data": {
|
| 87 |
+
"text/plain": [
|
| 88 |
+
"(78569, 978)"
|
| 89 |
+
]
|
| 90 |
+
},
|
| 91 |
+
"execution_count": 11,
|
| 92 |
+
"metadata": {},
|
| 93 |
+
"output_type": "execute_result"
|
| 94 |
+
}
|
| 95 |
+
],
|
| 96 |
+
"source": [
|
| 97 |
+
"LINCS_data_example['x1'].shape # Example shape of the data"
|
| 98 |
+
]
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"cell_type": "code",
|
| 102 |
+
"execution_count": 5,
|
| 103 |
+
"id": "5cc633d4",
|
| 104 |
+
"metadata": {},
|
| 105 |
+
"outputs": [
|
| 106 |
+
{
|
| 107 |
+
"data": {
|
| 108 |
+
"text/plain": [
|
| 109 |
+
"978"
|
| 110 |
+
]
|
| 111 |
+
},
|
| 112 |
+
"execution_count": 5,
|
| 113 |
+
"metadata": {},
|
| 114 |
+
"output_type": "execute_result"
|
| 115 |
+
}
|
| 116 |
+
],
|
| 117 |
+
"source": [
|
| 118 |
+
"LINCS = pd.read_csv('./landmark_geneinfo.csv')\n",
|
| 119 |
+
"gene_info_LINCS = LINCS['gene_symbol'].astype(str)\n",
|
| 120 |
+
"len(gene_info_LINCS)"
|
| 121 |
+
]
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"cell_type": "code",
|
| 125 |
+
"execution_count": 6,
|
| 126 |
+
"id": "a41c6d65",
|
| 127 |
+
"metadata": {},
|
| 128 |
+
"outputs": [
|
| 129 |
+
{
|
| 130 |
+
"data": {
|
| 131 |
+
"text/plain": [
|
| 132 |
+
"0 GNPDA1\n",
|
| 133 |
+
"1 CDH3\n",
|
| 134 |
+
"2 HDAC6\n",
|
| 135 |
+
"3 PARP2\n",
|
| 136 |
+
"4 MAMLD1\n",
|
| 137 |
+
" ... \n",
|
| 138 |
+
"973 CDC25B\n",
|
| 139 |
+
"974 OXSR1\n",
|
| 140 |
+
"975 MVP\n",
|
| 141 |
+
"976 CDC42\n",
|
| 142 |
+
"977 DMTF1\n",
|
| 143 |
+
"Name: gene_symbol, Length: 978, dtype: object"
|
| 144 |
+
]
|
| 145 |
+
},
|
| 146 |
+
"execution_count": 6,
|
| 147 |
+
"metadata": {},
|
| 148 |
+
"output_type": "execute_result"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"source": [
|
| 152 |
+
"gene_info_LINCS"
|
| 153 |
+
]
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"cell_type": "code",
|
| 157 |
+
"execution_count": 8,
|
| 158 |
+
"id": "0166c778",
|
| 159 |
+
"metadata": {},
|
| 160 |
+
"outputs": [
|
| 161 |
+
{
|
| 162 |
+
"name": "stdout",
|
| 163 |
+
"output_type": "stream",
|
| 164 |
+
"text": [
|
| 165 |
+
"19034\n"
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"data": {
|
| 170 |
+
"text/plain": [
|
| 171 |
+
"0 SLC25A37\n",
|
| 172 |
+
"1 CRYGC\n",
|
| 173 |
+
"2 CCDC198\n",
|
| 174 |
+
"3 TBC1D10A\n",
|
| 175 |
+
"4 SARM1\n",
|
| 176 |
+
" ... \n",
|
| 177 |
+
"19029 INMT\n",
|
| 178 |
+
"19030 RAD51AP1\n",
|
| 179 |
+
"19031 ACSF3\n",
|
| 180 |
+
"19032 ZNF334\n",
|
| 181 |
+
"19033 GOLGA8H\n",
|
| 182 |
+
"Name: gene_symbol, Length: 19034, dtype: object"
|
| 183 |
+
]
|
| 184 |
+
},
|
| 185 |
+
"execution_count": 8,
|
| 186 |
+
"metadata": {},
|
| 187 |
+
"output_type": "execute_result"
|
| 188 |
+
}
|
| 189 |
+
],
|
| 190 |
+
"source": [
|
| 191 |
+
"gene_info_Tahoe = pd.read_csv('./tahoe_gene_names.csv')['gene_symbol'].astype(str)\n",
|
| 192 |
+
"print(len(gene_info_Tahoe))\n",
|
| 193 |
+
"gene_info_Tahoe"
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"cell_type": "code",
|
| 198 |
+
"execution_count": 9,
|
| 199 |
+
"id": "981be0b2",
|
| 200 |
+
"metadata": {},
|
| 201 |
+
"outputs": [
|
| 202 |
+
{
|
| 203 |
+
"name": "stdout",
|
| 204 |
+
"output_type": "stream",
|
| 205 |
+
"text": [
|
| 206 |
+
"Number of common genes: 965\n"
|
| 207 |
+
]
|
| 208 |
+
}
|
| 209 |
+
],
|
| 210 |
+
"source": [
|
| 211 |
+
"# 找到gene_info_LINCS和gene_info_Tahoe的交集\n",
|
| 212 |
+
"intersection_genes = set(gene_info_LINCS).intersection(set(gene_info_Tahoe))\n",
|
| 213 |
+
"print(f\"Number of common genes: {len(intersection_genes)}\")"
|
| 214 |
+
]
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"cell_type": "code",
|
| 218 |
+
"execution_count": 13,
|
| 219 |
+
"id": "68001a70",
|
| 220 |
+
"metadata": {},
|
| 221 |
+
"outputs": [],
|
| 222 |
+
"source": [
|
| 223 |
+
"# 找到gene_info_LINCS中的intersection_genes的ID,去掉其他的基因,得到纯种 LINCS965\n",
|
| 224 |
+
"\n",
|
| 225 |
+
"def get_pure_lincs965(gene_info_LINCS, intersection_genes):\n",
|
| 226 |
+
" \"\"\"\n",
|
| 227 |
+
" 从gene_info_LINCS中筛选出属于intersection_genes的基因,得到纯种LINCS965\n",
|
| 228 |
+
" \n",
|
| 229 |
+
" 参数:\n",
|
| 230 |
+
" gene_info_LINCS: pandas Series,包含LINCS基因信息,索引为ID,值为基因符号\n",
|
| 231 |
+
" intersection_genes: 可迭代对象,包含需要保留的基因符号集合\n",
|
| 232 |
+
" \n",
|
| 233 |
+
" 返回:\n",
|
| 234 |
+
" pandas Series: 筛选后的纯种LINCS965基因集\n",
|
| 235 |
+
" \"\"\"\n",
|
| 236 |
+
" # 将intersection_genes转换为集合以提高查找效率\n",
|
| 237 |
+
" intersection_set = set(intersection_genes)\n",
|
| 238 |
+
" \n",
|
| 239 |
+
" # 筛选出属于intersection_genes的基因\n",
|
| 240 |
+
" pure_lincs965 = gene_info_LINCS[gene_info_LINCS.isin(intersection_set)]\n",
|
| 241 |
+
" \n",
|
| 242 |
+
" return pure_lincs965\n",
|
| 243 |
+
"\n",
|
| 244 |
+
"pure_lincs965 = get_pure_lincs965(gene_info_LINCS, intersection_genes)"
|
| 245 |
+
]
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"cell_type": "code",
|
| 249 |
+
"execution_count": 15,
|
| 250 |
+
"id": "b66f29a0",
|
| 251 |
+
"metadata": {},
|
| 252 |
+
"outputs": [
|
| 253 |
+
{
|
| 254 |
+
"name": "stdout",
|
| 255 |
+
"output_type": "stream",
|
| 256 |
+
"text": [
|
| 257 |
+
"965\n"
|
| 258 |
+
]
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"data": {
|
| 262 |
+
"text/plain": [
|
| 263 |
+
"0 GNPDA1\n",
|
| 264 |
+
"1 CDH3\n",
|
| 265 |
+
"2 HDAC6\n",
|
| 266 |
+
"3 PARP2\n",
|
| 267 |
+
"4 MAMLD1\n",
|
| 268 |
+
" ... \n",
|
| 269 |
+
"973 CDC25B\n",
|
| 270 |
+
"974 OXSR1\n",
|
| 271 |
+
"975 MVP\n",
|
| 272 |
+
"976 CDC42\n",
|
| 273 |
+
"977 DMTF1\n",
|
| 274 |
+
"Name: gene_symbol, Length: 965, dtype: object"
|
| 275 |
+
]
|
| 276 |
+
},
|
| 277 |
+
"execution_count": 15,
|
| 278 |
+
"metadata": {},
|
| 279 |
+
"output_type": "execute_result"
|
| 280 |
+
}
|
| 281 |
+
],
|
| 282 |
+
"source": [
|
| 283 |
+
"print(len(pure_lincs965))\n",
|
| 284 |
+
"pure_lincs965"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"cell_type": "code",
|
| 289 |
+
"execution_count": null,
|
| 290 |
+
"id": "f9d67f9c",
|
| 291 |
+
"metadata": {},
|
| 292 |
+
"outputs": [],
|
| 293 |
+
"source": [
|
| 294 |
+
"# save the pure LINCS965 data to a csv file\n",
|
| 295 |
+
"# pure_lincs965.to_csv('./lincs978_to965.csv', index=False)"
|
| 296 |
+
]
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"cell_type": "code",
|
| 300 |
+
"execution_count": 19,
|
| 301 |
+
"id": "9b8ccab9",
|
| 302 |
+
"metadata": {},
|
| 303 |
+
"outputs": [
|
| 304 |
+
{
|
| 305 |
+
"data": {
|
| 306 |
+
"text/plain": [
|
| 307 |
+
"{'canonical_smiles': array(['BrC1C(Br)C(Br)C(Br)C(Br)C1Br', 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br',\n",
|
| 308 |
+
" 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br', ..., 'c1nc(cs1)-c1nc2ccccc2[nH]1',\n",
|
| 309 |
+
" 'c1nc(cs1)-c1nc2ccccc2[nH]1', 'c1nc(cs1)-c1nc2ccccc2[nH]1'],\n",
|
| 310 |
+
" dtype='<U454'),\n",
|
| 311 |
+
" 'cid': array(['A549', 'ASC', 'MCF7', ..., 'THP1', 'VCAP', 'YAPC'], dtype='<U8'),\n",
|
| 312 |
+
" 'sig': array(['A549_0', 'ASC_0', 'MCF7_0', ..., 'THP1_8315', 'VCAP_8315',\n",
|
| 313 |
+
" 'YAPC_8315'], dtype='<U13'),\n",
|
| 314 |
+
" 'x1': array([[ 9.533199 , 4.79235 , 9.7237 , ..., 11.9874 , 9.3001 ,\n",
|
| 315 |
+
" 8.39445 ],\n",
|
| 316 |
+
" [ 8.509138 , 4.8156996, 7.3642497, ..., 11.6545 , 10.211599 ,\n",
|
| 317 |
+
" 8.973351 ],\n",
|
| 318 |
+
" [ 9.043461 , 7.6456842, 7.459799 , ..., 6.712334 , 11.85135 ,\n",
|
| 319 |
+
" 6.3363895],\n",
|
| 320 |
+
" ...,\n",
|
| 321 |
+
" [ 8.86875 , 5.9342003, 8.8046 , ..., 7.338975 , 11.65115 ,\n",
|
| 322 |
+
" 8.347799 ],\n",
|
| 323 |
+
" [ 9.482506 , 5.9174104, 8.216723 , ..., 6.722115 , 10.991553 ,\n",
|
| 324 |
+
" 7.3406167],\n",
|
| 325 |
+
" [ 9.725147 , 7.049716 , 9.0830555, ..., 9.198456 , 11.310257 ,\n",
|
| 326 |
+
" 7.920928 ]], dtype=float32),\n",
|
| 327 |
+
" 'x2': array([[ 9.4455 , 6.92005 , 10.2842 , ..., 12.2337 , 9.618799 ,\n",
|
| 328 |
+
" 7.8896003],\n",
|
| 329 |
+
" [ 8.291338 , 5.3398876, 6.832475 , ..., 11.05195 , 11.712725 ,\n",
|
| 330 |
+
" 9.1215 ],\n",
|
| 331 |
+
" [ 9.176098 , 7.160512 , 7.151138 , ..., 6.86923 , 11.213164 ,\n",
|
| 332 |
+
" 6.2830935],\n",
|
| 333 |
+
" ...,\n",
|
| 334 |
+
" [ 8.7068 , 5.7699003, 8.881599 , ..., 7.468175 , 11.75805 ,\n",
|
| 335 |
+
" 8.6483 ],\n",
|
| 336 |
+
" [ 9.617616 , 5.709352 , 7.277331 , ..., 7.262997 , 10.814158 ,\n",
|
| 337 |
+
" 7.3617706],\n",
|
| 338 |
+
" [ 9.710126 , 6.609707 , 9.075139 , ..., 9.596974 , 10.573312 ,\n",
|
| 339 |
+
" 7.4035025]], dtype=float32)}"
|
| 340 |
+
]
|
| 341 |
+
},
|
| 342 |
+
"execution_count": 19,
|
| 343 |
+
"metadata": {},
|
| 344 |
+
"output_type": "execute_result"
|
| 345 |
+
}
|
| 346 |
+
],
|
| 347 |
+
"source": [
|
| 348 |
+
"LINCS_data_example"
|
| 349 |
+
]
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"cell_type": "code",
|
| 353 |
+
"execution_count": 22,
|
| 354 |
+
"id": "4ea59ef7",
|
| 355 |
+
"metadata": {},
|
| 356 |
+
"outputs": [
|
| 357 |
+
{
|
| 358 |
+
"name": "stdout",
|
| 359 |
+
"output_type": "stream",
|
| 360 |
+
"text": [
|
| 361 |
+
"Indices to keep: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 763, 764, 765, 766, 767, 768, 769, 770, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 799, 800, 801, 802, 803, 804, 805, 806, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 945, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977]\n"
|
| 362 |
+
]
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"data": {
|
| 366 |
+
"text/plain": [
|
| 367 |
+
"{'canonical_smiles': array(['BrC1C(Br)C(Br)C(Br)C(Br)C1Br', 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br',\n",
|
| 368 |
+
" 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br', ..., 'c1nc(cs1)-c1nc2ccccc2[nH]1',\n",
|
| 369 |
+
" 'c1nc(cs1)-c1nc2ccccc2[nH]1', 'c1nc(cs1)-c1nc2ccccc2[nH]1'],\n",
|
| 370 |
+
" dtype='<U454'),\n",
|
| 371 |
+
" 'cid': array(['A549', 'ASC', 'MCF7', ..., 'THP1', 'VCAP', 'YAPC'], dtype='<U8'),\n",
|
| 372 |
+
" 'sig': array(['A549_0', 'ASC_0', 'MCF7_0', ..., 'THP1_8315', 'VCAP_8315',\n",
|
| 373 |
+
" 'YAPC_8315'], dtype='<U13'),\n",
|
| 374 |
+
" 'x1': array([[ 9.533199 , 4.79235 , 9.7237 , ..., 11.9874 , 9.3001 ,\n",
|
| 375 |
+
" 8.39445 ],\n",
|
| 376 |
+
" [ 8.509138 , 4.8156996, 7.3642497, ..., 11.6545 , 10.211599 ,\n",
|
| 377 |
+
" 8.973351 ],\n",
|
| 378 |
+
" [ 9.043461 , 7.6456842, 7.459799 , ..., 6.712334 , 11.85135 ,\n",
|
| 379 |
+
" 6.3363895],\n",
|
| 380 |
+
" ...,\n",
|
| 381 |
+
" [ 8.86875 , 5.9342003, 8.8046 , ..., 7.338975 , 11.65115 ,\n",
|
| 382 |
+
" 8.347799 ],\n",
|
| 383 |
+
" [ 9.482506 , 5.9174104, 8.216723 , ..., 6.722115 , 10.991553 ,\n",
|
| 384 |
+
" 7.3406167],\n",
|
| 385 |
+
" [ 9.725147 , 7.049716 , 9.0830555, ..., 9.198456 , 11.310257 ,\n",
|
| 386 |
+
" 7.920928 ]], dtype=float32),\n",
|
| 387 |
+
" 'x2': array([[ 9.4455 , 6.92005 , 10.2842 , ..., 12.2337 , 9.618799 ,\n",
|
| 388 |
+
" 7.8896003],\n",
|
| 389 |
+
" [ 8.291338 , 5.3398876, 6.832475 , ..., 11.05195 , 11.712725 ,\n",
|
| 390 |
+
" 9.1215 ],\n",
|
| 391 |
+
" [ 9.176098 , 7.160512 , 7.151138 , ..., 6.86923 , 11.213164 ,\n",
|
| 392 |
+
" 6.2830935],\n",
|
| 393 |
+
" ...,\n",
|
| 394 |
+
" [ 8.7068 , 5.7699003, 8.881599 , ..., 7.468175 , 11.75805 ,\n",
|
| 395 |
+
" 8.6483 ],\n",
|
| 396 |
+
" [ 9.617616 , 5.709352 , 7.277331 , ..., 7.262997 , 10.814158 ,\n",
|
| 397 |
+
" 7.3617706],\n",
|
| 398 |
+
" [ 9.710126 , 6.609707 , 9.075139 , ..., 9.596974 , 10.573312 ,\n",
|
| 399 |
+
" 7.4035025]], dtype=float32)}"
|
| 400 |
+
]
|
| 401 |
+
},
|
| 402 |
+
"execution_count": 22,
|
| 403 |
+
"metadata": {},
|
| 404 |
+
"output_type": "execute_result"
|
| 405 |
+
}
|
| 406 |
+
],
|
| 407 |
+
"source": [
|
| 408 |
+
"# 根据纯种LINCS965的基因信息,在LINCS_data_example中的x1和x2中筛选出对应的基因数据,都是978维度的,减去对应位置不存在的基因数据\n",
|
| 409 |
+
"# 'x1': array([[ 9.533199 , 4.79235 , 9.7237 , ..., 11.9874 , 9.3001 , 8.39445 ],\n",
|
| 410 |
+
"def filter_lincs_dictionary(lincs_data, pure_lincs965):\n",
|
| 411 |
+
" \"\"\"\n",
|
| 412 |
+
" 筛选LINCS数据字典中的x1和x2,仅保留pure_lincs965对应的基因位置数据\n",
|
| 413 |
+
" \n",
|
| 414 |
+
" 参数:\n",
|
| 415 |
+
" lincs_data: 包含LINCS数据的字典,至少包含'x1'和'x2'键\n",
|
| 416 |
+
" pure_lincs965: pandas Series,纯种LINCS965基因集,包含需要保留的基因索引\n",
|
| 417 |
+
" \n",
|
| 418 |
+
" 返回:\n",
|
| 419 |
+
" 字典: 处理后的LINCS数据,x1和x2已筛选,其他键值对保持不变\n",
|
| 420 |
+
" \"\"\"\n",
|
| 421 |
+
" # 获取需要保留的基因索引并排序\n",
|
| 422 |
+
" keep_indices = sorted(pure_lincs965.index.tolist())\n",
|
| 423 |
+
" # print(f\"Indices to keep: {keep_indices}\")\n",
|
| 424 |
+
" \n",
|
| 425 |
+
" # 创建一个新字典,复制不需要修改的键值对\n",
|
| 426 |
+
" filtered_data = {\n",
|
| 427 |
+
" key: value for key, value in lincs_data.items() \n",
|
| 428 |
+
" if key not in ['x1', 'x2']\n",
|
| 429 |
+
" }\n",
|
| 430 |
+
" \n",
|
| 431 |
+
" # 筛选x1和x2数据\n",
|
| 432 |
+
" filtered_data['x1'] = lincs_data['x1'][:, keep_indices]\n",
|
| 433 |
+
" filtered_data['x2'] = lincs_data['x2'][:, keep_indices]\n",
|
| 434 |
+
" \n",
|
| 435 |
+
" return filtered_data\n",
|
| 436 |
+
"\n",
|
| 437 |
+
"filtered_lincs_data = filter_lincs_dictionary(LINCS_data_example, pure_lincs965)\n",
|
| 438 |
+
"# 现在filtered_lincs_data中只包含纯种LINCS965的基因数据\n",
|
| 439 |
+
"# 你可以根据需要进一步处理filtered_lincs_data,例如保存到文件或进行分析\n",
|
| 440 |
+
"filtered_lincs_data\n"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"cell_type": "code",
|
| 445 |
+
"execution_count": 23,
|
| 446 |
+
"id": "9f4238d1",
|
| 447 |
+
"metadata": {},
|
| 448 |
+
"outputs": [
|
| 449 |
+
{
|
| 450 |
+
"data": {
|
| 451 |
+
"text/plain": [
|
| 452 |
+
"(78569, 965)"
|
| 453 |
+
]
|
| 454 |
+
},
|
| 455 |
+
"execution_count": 23,
|
| 456 |
+
"metadata": {},
|
| 457 |
+
"output_type": "execute_result"
|
| 458 |
+
}
|
| 459 |
+
],
|
| 460 |
+
"source": [
|
| 461 |
+
"filtered_lincs_data['x1'].shape # 查看筛选后的x1数据形状"
|
| 462 |
+
]
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"cell_type": "code",
|
| 466 |
+
"execution_count": 28,
|
| 467 |
+
"id": "db14e8d8",
|
| 468 |
+
"metadata": {},
|
| 469 |
+
"outputs": [],
|
| 470 |
+
"source": [
|
| 471 |
+
"# save filtered_lincs_data.h5\n",
|
| 472 |
+
"\n",
|
| 473 |
+
"smiles_data = filtered_lincs_data['canonical_smiles'].astype('|S') # 转换为字节字符串\n",
|
| 474 |
+
"\n",
|
| 475 |
+
"with h5py.File('lincs_data965.h5', 'w') as f:\n",
|
| 476 |
+
" f.create_dataset('canonical_smiles', data=smiles_data)\n",
|
| 477 |
+
" # 保存 control 数据,转换为 float32\n",
|
| 478 |
+
" # f.create_dataset('cid', data=filtered_lincs_data['cid'])\n",
|
| 479 |
+
" # # 保存 target 数据,转换为 float32\n",
|
| 480 |
+
" # f.create_dataset('sig', data=filtered_lincs_data['sig'])\n",
|
| 481 |
+
" # 保存 target 数据,转换为 float32\n",
|
| 482 |
+
" f.create_dataset('control', data=filtered_lincs_data['x1'].astype(np.float32))\n",
|
| 483 |
+
" # 保存 target 数据,转换为 float32\n",
|
| 484 |
+
" f.create_dataset('target', data=filtered_lincs_data['x2'].astype(np.float32))"
|
| 485 |
+
]
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"cell_type": "code",
|
| 489 |
+
"execution_count": 31,
|
| 490 |
+
"id": "74a24715",
|
| 491 |
+
"metadata": {},
|
| 492 |
+
"outputs": [
|
| 493 |
+
{
|
| 494 |
+
"data": {
|
| 495 |
+
"text/plain": [
|
| 496 |
+
"(78569, 965)"
|
| 497 |
+
]
|
| 498 |
+
},
|
| 499 |
+
"execution_count": 31,
|
| 500 |
+
"metadata": {},
|
| 501 |
+
"output_type": "execute_result"
|
| 502 |
+
}
|
| 503 |
+
],
|
| 504 |
+
"source": [
|
| 505 |
+
"# load filtered_lincs_data\n",
|
| 506 |
+
"filtered_lincs_data_loaded = load_from_HDF('./lincs_data965.h5')\n",
|
| 507 |
+
"filtered_lincs_data_loaded['control'].shape # 查看加载后的x1数据形"
|
| 508 |
+
]
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"cell_type": "code",
|
| 512 |
+
"execution_count": 32,
|
| 513 |
+
"id": "a2b8c37e",
|
| 514 |
+
"metadata": {},
|
| 515 |
+
"outputs": [
|
| 516 |
+
{
|
| 517 |
+
"data": {
|
| 518 |
+
"text/plain": [
|
| 519 |
+
"{'canonical_smiles': array(['BrC1C(Br)C(Br)C(Br)C(Br)C1Br', 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br',\n",
|
| 520 |
+
" 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br', ..., 'c1nc(cs1)-c1nc2ccccc2[nH]1',\n",
|
| 521 |
+
" 'c1nc(cs1)-c1nc2ccccc2[nH]1', 'c1nc(cs1)-c1nc2ccccc2[nH]1'],\n",
|
| 522 |
+
" dtype='<U454'),\n",
|
| 523 |
+
" 'control': array([[ 9.533199 , 4.79235 , 9.7237 , ..., 11.9874 , 9.3001 ,\n",
|
| 524 |
+
" 8.39445 ],\n",
|
| 525 |
+
" [ 8.509138 , 4.8156996, 7.3642497, ..., 11.6545 , 10.211599 ,\n",
|
| 526 |
+
" 8.973351 ],\n",
|
| 527 |
+
" [ 9.043461 , 7.6456842, 7.459799 , ..., 6.712334 , 11.85135 ,\n",
|
| 528 |
+
" 6.3363895],\n",
|
| 529 |
+
" ...,\n",
|
| 530 |
+
" [ 8.86875 , 5.9342003, 8.8046 , ..., 7.338975 , 11.65115 ,\n",
|
| 531 |
+
" 8.347799 ],\n",
|
| 532 |
+
" [ 9.482506 , 5.9174104, 8.216723 , ..., 6.722115 , 10.991553 ,\n",
|
| 533 |
+
" 7.3406167],\n",
|
| 534 |
+
" [ 9.725147 , 7.049716 , 9.0830555, ..., 9.198456 , 11.310257 ,\n",
|
| 535 |
+
" 7.920928 ]], dtype=float32),\n",
|
| 536 |
+
" 'target': array([[ 9.4455 , 6.92005 , 10.2842 , ..., 12.2337 , 9.618799 ,\n",
|
| 537 |
+
" 7.8896003],\n",
|
| 538 |
+
" [ 8.291338 , 5.3398876, 6.832475 , ..., 11.05195 , 11.712725 ,\n",
|
| 539 |
+
" 9.1215 ],\n",
|
| 540 |
+
" [ 9.176098 , 7.160512 , 7.151138 , ..., 6.86923 , 11.213164 ,\n",
|
| 541 |
+
" 6.2830935],\n",
|
| 542 |
+
" ...,\n",
|
| 543 |
+
" [ 8.7068 , 5.7699003, 8.881599 , ..., 7.468175 , 11.75805 ,\n",
|
| 544 |
+
" 8.6483 ],\n",
|
| 545 |
+
" [ 9.617616 , 5.709352 , 7.277331 , ..., 7.262997 , 10.814158 ,\n",
|
| 546 |
+
" 7.3617706],\n",
|
| 547 |
+
" [ 9.710126 , 6.609707 , 9.075139 , ..., 9.596974 , 10.573312 ,\n",
|
| 548 |
+
" 7.4035025]], dtype=float32)}"
|
| 549 |
+
]
|
| 550 |
+
},
|
| 551 |
+
"execution_count": 32,
|
| 552 |
+
"metadata": {},
|
| 553 |
+
"output_type": "execute_result"
|
| 554 |
+
}
|
| 555 |
+
],
|
| 556 |
+
"source": [
|
| 557 |
+
"filtered_lincs_data_loaded"
|
| 558 |
+
]
|
| 559 |
+
}
|
| 560 |
+
],
|
| 561 |
+
"metadata": {
|
| 562 |
+
"kernelspec": {
|
| 563 |
+
"display_name": "boom",
|
| 564 |
+
"language": "python",
|
| 565 |
+
"name": "python3"
|
| 566 |
+
},
|
| 567 |
+
"language_info": {
|
| 568 |
+
"codemirror_mode": {
|
| 569 |
+
"name": "ipython",
|
| 570 |
+
"version": 3
|
| 571 |
+
},
|
| 572 |
+
"file_extension": ".py",
|
| 573 |
+
"mimetype": "text/x-python",
|
| 574 |
+
"name": "python",
|
| 575 |
+
"nbconvert_exporter": "python",
|
| 576 |
+
"pygments_lexer": "ipython3",
|
| 577 |
+
"version": "3.11.10"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
"nbformat": 4,
|
| 581 |
+
"nbformat_minor": 5
|
| 582 |
+
}
|
LINCS2020/geneinfo_processed.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
LINCS2020/landmark_geneinfo.csv
ADDED
|
@@ -0,0 +1,979 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gene_id,gene_symbol,ensembl_id,gene_title,gene_type,src,feature_space
|
| 2 |
+
10007,GNPDA1,ENSG00000113552,glucosamine-6-phosphate deaminase 1,protein-coding,NCBI,landmark
|
| 3 |
+
1001,CDH3,ENSG00000062038,cadherin 3,protein-coding,NCBI,landmark
|
| 4 |
+
10013,HDAC6,ENSG00000094631,histone deacetylase 6,protein-coding,NCBI,landmark
|
| 5 |
+
10038,PARP2,ENSG00000129484,poly(ADP-ribose) polymerase 2,protein-coding,NCBI,landmark
|
| 6 |
+
10046,MAMLD1,ENSG00000013619,mastermind like domain containing 1,protein-coding,NCBI,landmark
|
| 7 |
+
10049,DNAJB6,ENSG00000105993,DnaJ heat shock protein family (Hsp40) member B6,protein-coding,NCBI,landmark
|
| 8 |
+
10051,SMC4,ENSG00000113810,structural maintenance of chromosomes 4,protein-coding,NCBI,landmark
|
| 9 |
+
10057,ABCC5,ENSG00000114770,ATP binding cassette subfamily C member 5,protein-coding,NCBI,landmark
|
| 10 |
+
10058,ABCB6,ENSG00000115657,ATP binding cassette subfamily B member 6 (Langereis blood group),protein-coding,NCBI,landmark
|
| 11 |
+
10059,DNM1L,ENSG00000087470,dynamin 1 like,protein-coding,NCBI,landmark
|
| 12 |
+
10099,TSPAN3,ENSG00000140391,tetraspanin 3,protein-coding,NCBI,landmark
|
| 13 |
+
10112,KIF20A,ENSG00000112984,kinesin family member 20A,protein-coding,NCBI,landmark
|
| 14 |
+
10123,ARL4C,ENSG00000188042,ADP ribosylation factor like GTPase 4C,protein-coding,NCBI,landmark
|
| 15 |
+
10131,TRAP1,ENSG00000126602,TNF receptor associated protein 1,protein-coding,NCBI,landmark
|
| 16 |
+
10146,G3BP1,ENSG00000145907,G3BP stress granule assembly factor 1,protein-coding,NCBI,landmark
|
| 17 |
+
10150,MBNL2,ENSG00000139793,muscleblind like splicing regulator 2,protein-coding,NCBI,landmark
|
| 18 |
+
10153,CEBPZ,ENSG00000115816,CCAAT enhancer binding protein zeta,protein-coding,NCBI,landmark
|
| 19 |
+
10165,SLC25A13,ENSG00000004864,solute carrier family 25 member 13,protein-coding,NCBI,landmark
|
| 20 |
+
1017,CDK2,ENSG00000123374,cyclin dependent kinase 2,protein-coding,NCBI,landmark
|
| 21 |
+
10174,SORBS3,ENSG00000120896,sorbin and SH3 domain containing 3,protein-coding,NCBI,landmark
|
| 22 |
+
10180,RBM6,ENSG00000004534,RNA binding motif protein 6,protein-coding,NCBI,landmark
|
| 23 |
+
1019,CDK4,ENSG00000135446,cyclin dependent kinase 4,protein-coding,NCBI,landmark
|
| 24 |
+
10190,TXNDC9,ENSG00000115514,thioredoxin domain containing 9,protein-coding,NCBI,landmark
|
| 25 |
+
102,ADAM10,ENSG00000137845,ADAM metallopeptidase domain 10,protein-coding,NCBI,landmark
|
| 26 |
+
10206,TRIM13,ENSG00000204977,tripartite motif containing 13,protein-coding,NCBI,landmark
|
| 27 |
+
1021,CDK6,ENSG00000105810,cyclin dependent kinase 6,protein-coding,NCBI,landmark
|
| 28 |
+
1022,CDK7,ENSG00000134058,cyclin dependent kinase 7,protein-coding,NCBI,landmark
|
| 29 |
+
10221,TRIB1,ENSG00000173334,tribbles pseudokinase 1,protein-coding,NCBI,landmark
|
| 30 |
+
10227,MFSD10,ENSG00000109736,major facilitator superfamily domain containing 10,protein-coding,NCBI,landmark
|
| 31 |
+
10237,SLC35B1,ENSG00000121073,solute carrier family 35 member B1,protein-coding,NCBI,landmark
|
| 32 |
+
10245,TIMM17B,ENSG00000126768,translocase of inner mitochondrial membrane 17B,protein-coding,NCBI,landmark
|
| 33 |
+
1026,CDKN1A,ENSG00000124762,cyclin dependent kinase inhibitor 1A,protein-coding,NCBI,landmark
|
| 34 |
+
1027,CDKN1B,ENSG00000111276,cyclin dependent kinase inhibitor 1B,protein-coding,NCBI,landmark
|
| 35 |
+
10270,AKAP8,ENSG00000105127,A-kinase anchoring protein 8,protein-coding,NCBI,landmark
|
| 36 |
+
10273,STUB1,ENSG00000103266,STIP1 homology and U-box containing protein 1,protein-coding,NCBI,landmark
|
| 37 |
+
10276,NET1,ENSG00000173848,neuroepithelial cell transforming 1,protein-coding,NCBI,landmark
|
| 38 |
+
10285,SMNDC1,ENSG00000119953,survival motor neuron domain containing 1,protein-coding,NCBI,landmark
|
| 39 |
+
1029,CDKN2A,ENSG00000147889,cyclin dependent kinase inhibitor 2A,protein-coding,NCBI,landmark
|
| 40 |
+
10298,PAK4,ENSG00000130669,p21 (RAC1) activated kinase 4,protein-coding,NCBI,landmark
|
| 41 |
+
10318,TNIP1,ENSG00000145901,TNFAIP3 interacting protein 1,protein-coding,NCBI,landmark
|
| 42 |
+
10320,IKZF1,ENSG00000185811,IKAROS family zinc finger 1,protein-coding,NCBI,landmark
|
| 43 |
+
10329,RXYLT1,ENSG00000118600,ribitol xylosyltransferase 1,protein-coding,NCBI,landmark
|
| 44 |
+
10362,HMG20B,ENSG00000064961,high mobility group 20B,protein-coding,NCBI,landmark
|
| 45 |
+
10398,MYL9,ENSG00000101335,myosin light chain 9,protein-coding,NCBI,landmark
|
| 46 |
+
10434,LYPLA1,ENSG00000120992,lysophospholipase 1,protein-coding,NCBI,landmark
|
| 47 |
+
10450,PPIE,ENSG00000084072,peptidylprolyl isomerase E,protein-coding,NCBI,landmark
|
| 48 |
+
10451,VAV3,ENSG00000134215,vav guanine nucleotide exchange factor 3,protein-coding,NCBI,landmark
|
| 49 |
+
10489,LRRC41,ENSG00000132128,leucine rich repeat containing 41,protein-coding,NCBI,landmark
|
| 50 |
+
10491,CRTAP,ENSG00000170275,cartilage associated protein,protein-coding,NCBI,landmark
|
| 51 |
+
10493,VAT1,ENSG00000108828,vesicle amine transport 1,protein-coding,NCBI,landmark
|
| 52 |
+
10494,STK25,ENSG00000115694,serine/threonine kinase 25,protein-coding,NCBI,landmark
|
| 53 |
+
1050,CEBPA,ENSG00000245848,CCAAT enhancer binding protein alpha,protein-coding,NCBI,landmark
|
| 54 |
+
10513,APPBP2,ENSG00000062725,amyloid beta precursor protein binding protein 2,protein-coding,NCBI,landmark
|
| 55 |
+
1052,CEBPD,ENSG00000221869,CCAAT enhancer binding protein delta,protein-coding,NCBI,landmark
|
| 56 |
+
10523,CHERP,ENSG00000085872,calcium homeostasis endoplasmic reticulum protein,protein-coding,NCBI,landmark
|
| 57 |
+
10525,HYOU1,ENSG00000149428,hypoxia up-regulated 1,protein-coding,NCBI,landmark
|
| 58 |
+
10557,RPP38,ENSG00000152464,ribonuclease P/MRP subunit p38,protein-coding,NCBI,landmark
|
| 59 |
+
10559,SLC35A1,ENSG00000164414,solute carrier family 35 member A1,protein-coding,NCBI,landmark
|
| 60 |
+
10589,DRAP1,ENSG00000175550,DR1 associated protein 1,protein-coding,NCBI,landmark
|
| 61 |
+
10606,PAICS,ENSG00000128050,phosphoribosylaminoimidazole carboxylase and phosphoribosylaminoimidazolesuccinocarboxamide synthase,protein-coding,NCBI,landmark
|
| 62 |
+
10610,ST6GALNAC2,ENSG00000070731,"ST6 N-acetylgalactosaminide alpha-2,6-sialyltransferase 2",protein-coding,NCBI,landmark
|
| 63 |
+
10617,STAMBP,ENSG00000124356,STAM binding protein,protein-coding,NCBI,landmark
|
| 64 |
+
1062,CENPE,ENSG00000138778,centromere protein E,protein-coding,NCBI,landmark
|
| 65 |
+
10641,NPRL2,ENSG00000114388,"NPR2 like, GATOR1 complex subunit",protein-coding,NCBI,landmark
|
| 66 |
+
10644,IGF2BP2,ENSG00000073792,insulin like growth factor 2 mRNA binding protein 2,protein-coding,NCBI,landmark
|
| 67 |
+
10652,YKT6,ENSG00000106636,YKT6 v-SNARE homolog,protein-coding,NCBI,landmark
|
| 68 |
+
10668,CGRRF1,ENSG00000100532,cell growth regulator with ring finger domain 1,protein-coding,NCBI,landmark
|
| 69 |
+
10670,RRAGA,ENSG00000155876,Ras related GTP binding A,protein-coding,NCBI,landmark
|
| 70 |
+
10681,GNB5,ENSG00000069966,G protein subunit beta 5,protein-coding,NCBI,landmark
|
| 71 |
+
10682,EBP,ENSG00000147155,EBP cholestenol delta-isomerase,protein-coding,NCBI,landmark
|
| 72 |
+
10695,CNPY3,ENSG00000137161,canopy FGF signaling regulator 3,protein-coding,NCBI,landmark
|
| 73 |
+
1070,CETN3,ENSG00000153140,centrin 3,protein-coding,NCBI,landmark
|
| 74 |
+
10730,YME1L1,ENSG00000136758,YME1 like 1 ATPase,protein-coding,NCBI,landmark
|
| 75 |
+
10732,TCFL5,ENSG00000101190,transcription factor like 5,protein-coding,NCBI,landmark
|
| 76 |
+
10765,KDM5B,ENSG00000117139,lysine demethylase 5B,protein-coding,NCBI,landmark
|
| 77 |
+
10775,POP4,ENSG00000105171,"POP4 homolog, ribonuclease P/MRP subunit",protein-coding,NCBI,landmark
|
| 78 |
+
10776,ARPP19,ENSG00000128989,cAMP regulated phosphoprotein 19,protein-coding,NCBI,landmark
|
| 79 |
+
10782,ZNF274,ENSG00000171606,zinc finger protein 274,protein-coding,NCBI,landmark
|
| 80 |
+
10797,MTHFD2,ENSG00000065911,"methylenetetrahydrofolate dehydrogenase (NADP+ dependent) 2, methenyltetrahydrofolate cyclohydrolase",protein-coding,NCBI,landmark
|
| 81 |
+
10810,WASF3,ENSG00000132970,WASP family member 3,protein-coding,NCBI,landmark
|
| 82 |
+
10813,UTP14A,ENSG00000156697,UTP14A small subunit processome component,protein-coding,NCBI,landmark
|
| 83 |
+
10818,FRS2,ENSG00000166225,fibroblast growth factor receptor substrate 2,protein-coding,NCBI,landmark
|
| 84 |
+
10845,CLPX,ENSG00000166855,caseinolytic mitochondrial matrix peptidase chaperone subunit,protein-coding,NCBI,landmark
|
| 85 |
+
10857,PGRMC1,ENSG00000101856,progesterone receptor membrane component 1,protein-coding,NCBI,landmark
|
| 86 |
+
10892,MALT1,ENSG00000172175,MALT1 paracaspase,protein-coding,NCBI,landmark
|
| 87 |
+
10898,CPSF4,ENSG00000160917,cleavage and polyadenylation specific factor 4,protein-coding,NCBI,landmark
|
| 88 |
+
10904,BLCAP,ENSG00000166619,BLCAP apoptosis inducing factor,protein-coding,NCBI,landmark
|
| 89 |
+
10915,TCERG1,ENSG00000113649,transcription elongation regulator 1,protein-coding,NCBI,landmark
|
| 90 |
+
10921,RNPS1,ENSG00000205937,RNA binding protein with serine rich domain 1,protein-coding,NCBI,landmark
|
| 91 |
+
10953,TOMM34,ENSG00000025772,translocase of outer mitochondrial membrane 34,protein-coding,NCBI,landmark
|
| 92 |
+
10954,PDIA5,ENSG00000065485,protein disulfide isomerase family A member 5,protein-coding,NCBI,landmark
|
| 93 |
+
10962,MLLT11,ENSG00000213190,MLLT11 transcription factor 7 cofactor,protein-coding,NCBI,landmark
|
| 94 |
+
10969,EBNA1BP2,ENSG00000117395,EBNA1 binding protein 2,protein-coding,NCBI,landmark
|
| 95 |
+
10972,TMED10,ENSG00000170348,transmembrane p24 trafficking protein 10,protein-coding,NCBI,landmark
|
| 96 |
+
10973,ASCC3,ENSG00000112249,activating signal cointegrator 1 complex subunit 3,protein-coding,NCBI,landmark
|
| 97 |
+
11000,SLC27A3,ENSG00000143554,solute carrier family 27 member 3,protein-coding,NCBI,landmark
|
| 98 |
+
11004,KIF2C,ENSG00000142945,kinesin family member 2C,protein-coding,NCBI,landmark
|
| 99 |
+
11007,CCDC85B,ENSG00000175602,coiled-coil domain containing 85B,protein-coding,NCBI,landmark
|
| 100 |
+
11011,TLK2,ENSG00000146872,tousled like kinase 2,protein-coding,NCBI,landmark
|
| 101 |
+
11014,KDELR2,ENSG00000136240,KDEL endoplasmic reticulum protein retention receptor 2,protein-coding,NCBI,landmark
|
| 102 |
+
11031,RAB31,ENSG00000168461,"RAB31, member RAS oncogene family",protein-coding,NCBI,landmark
|
| 103 |
+
11041,B4GAT1,ENSG00000174684,"beta-1,4-glucuronyltransferase 1",protein-coding,NCBI,landmark
|
| 104 |
+
11044,TENT4A,ENSG00000112941,terminal nucleotidyltransferase 4A,protein-coding,NCBI,landmark
|
| 105 |
+
11065,UBE2C,ENSG00000175063,ubiquitin conjugating enzyme E2 C,protein-coding,NCBI,landmark
|
| 106 |
+
11072,DUSP14,ENSG00000276023,dual specificity phosphatase 14,protein-coding,NCBI,landmark
|
| 107 |
+
11073,TOPBP1,ENSG00000163781,DNA topoisomerase II binding protein 1,protein-coding,NCBI,landmark
|
| 108 |
+
11098,PRSS23,ENSG00000150687,serine protease 23,protein-coding,NCBI,landmark
|
| 109 |
+
1111,CHEK1,ENSG00000149554,checkpoint kinase 1,protein-coding,NCBI,landmark
|
| 110 |
+
11137,PWP1,ENSG00000136045,"PWP1 homolog, endonuclein",protein-coding,NCBI,landmark
|
| 111 |
+
11142,PKIG,ENSG00000168734,cAMP-dependent protein kinase inhibitor gamma,protein-coding,NCBI,landmark
|
| 112 |
+
11151,CORO1A,ENSG00000102879,coronin 1A,protein-coding,NCBI,landmark
|
| 113 |
+
11157,LSM6,ENSG00000164167,"LSM6 homolog, U6 small nuclear RNA and mRNA degradation associated",protein-coding,NCBI,landmark
|
| 114 |
+
11168,PSIP1,ENSG00000164985,PC4 and SFRS1 interacting protein 1,protein-coding,NCBI,landmark
|
| 115 |
+
11182,SLC2A6,ENSG00000160326,solute carrier family 2 member 6,protein-coding,NCBI,landmark
|
| 116 |
+
11188,NISCH,ENSG00000010322,nischarin,protein-coding,NCBI,landmark
|
| 117 |
+
11200,CHEK2,ENSG00000183765,checkpoint kinase 2,protein-coding,NCBI,landmark
|
| 118 |
+
1123,CHN1,ENSG00000128656,chimerin 1,protein-coding,NCBI,landmark
|
| 119 |
+
11230,PRAF2,ENSG00000243279,PRA1 domain family member 2,protein-coding,NCBI,landmark
|
| 120 |
+
11232,POLG2,ENSG00000256525,"DNA polymerase gamma 2, accessory subunit",protein-coding,NCBI,landmark
|
| 121 |
+
11261,CHP1,ENSG00000187446,calcineurin like EF-hand protein 1,protein-coding,NCBI,landmark
|
| 122 |
+
11284,PNKP,ENSG00000039650,polynucleotide kinase 3'-phosphatase,protein-coding,NCBI,landmark
|
| 123 |
+
11319,ECD,ENSG00000122882,ecdysoneless cell cycle regulator,protein-coding,NCBI,landmark
|
| 124 |
+
11325,DDX42,ENSG00000198231,DEAD-box helicase 42,protein-coding,NCBI,landmark
|
| 125 |
+
11344,TWF2,ENSG00000247596,twinfilin actin binding protein 2,protein-coding,NCBI,landmark
|
| 126 |
+
1153,CIRBP,ENSG00000099622,cold inducible RNA binding protein,protein-coding,NCBI,landmark
|
| 127 |
+
116832,RPL39L,ENSG00000163923,ribosomal protein L39 like,protein-coding,NCBI,landmark
|
| 128 |
+
1212,CLTB,ENSG00000175416,clathrin light chain B,protein-coding,NCBI,landmark
|
| 129 |
+
1213,CLTC,ENSG00000141367,clathrin heavy chain,protein-coding,NCBI,landmark
|
| 130 |
+
124583,CANT1,ENSG00000171302,calcium activated nucleotidase 1,protein-coding,NCBI,landmark
|
| 131 |
+
1277,COL1A1,ENSG00000108821,collagen type I alpha 1 chain,protein-coding,NCBI,landmark
|
| 132 |
+
128,ADH5,ENSG00000197894,"alcohol dehydrogenase 5 (class III), chi polypeptide",protein-coding,NCBI,landmark
|
| 133 |
+
1282,COL4A1,ENSG00000187498,collagen type IV alpha 1 chain,protein-coding,NCBI,landmark
|
| 134 |
+
1385,CREB1,ENSG00000118260,cAMP responsive element binding protein 1,protein-coding,NCBI,landmark
|
| 135 |
+
1398,CRK,ENSG00000167193,"CRK proto-oncogene, adaptor protein",protein-coding,NCBI,landmark
|
| 136 |
+
1399,CRKL,ENSG00000099942,"CRK like proto-oncogene, adaptor protein",protein-coding,NCBI,landmark
|
| 137 |
+
142,PARP1,ENSG00000143799,poly(ADP-ribose) polymerase 1,protein-coding,NCBI,landmark
|
| 138 |
+
1429,CRYZ,ENSG00000116791,crystallin zeta,protein-coding,NCBI,landmark
|
| 139 |
+
1445,CSK,ENSG00000103653,C-terminal Src kinase,protein-coding,NCBI,landmark
|
| 140 |
+
1452,CSNK1A1,ENSG00000113712,casein kinase 1 alpha 1,protein-coding,NCBI,landmark
|
| 141 |
+
1454,CSNK1E,ENSG00000213923,casein kinase 1 epsilon,protein-coding,NCBI,landmark
|
| 142 |
+
1459,CSNK2A2,ENSG00000070770,casein kinase 2 alpha 2,protein-coding,NCBI,landmark
|
| 143 |
+
1465,CSRP1,ENSG00000159176,cysteine and glycine rich protein 1,protein-coding,NCBI,landmark
|
| 144 |
+
147179,WIPF2,ENSG00000171475,WAS/WASL interacting protein family member 2,protein-coding,NCBI,landmark
|
| 145 |
+
148022,TICAM1,ENSG00000127666,toll like receptor adaptor molecule 1,protein-coding,NCBI,landmark
|
| 146 |
+
1500,CTNND1,ENSG00000198561,catenin delta 1,protein-coding,NCBI,landmark
|
| 147 |
+
1509,CTSD,ENSG00000117984,cathepsin D,protein-coding,NCBI,landmark
|
| 148 |
+
1514,CTSL,ENSG00000135047,cathepsin L,protein-coding,NCBI,landmark
|
| 149 |
+
1534,CYB561,ENSG00000008283,cytochrome b561,protein-coding,NCBI,landmark
|
| 150 |
+
154,ADRB2,ENSG00000169252,adrenoceptor beta 2,protein-coding,NCBI,landmark
|
| 151 |
+
16,AARS,ENSG00000090861,alanyl-tRNA synthetase,protein-coding,NCBI,landmark
|
| 152 |
+
1605,DAG1,ENSG00000173402,dystroglycan 1,protein-coding,NCBI,landmark
|
| 153 |
+
1616,DAXX,ENSG00000204209,death domain associated protein,protein-coding,NCBI,landmark
|
| 154 |
+
1633,DCK,ENSG00000156136,deoxycytidine kinase,protein-coding,NCBI,landmark
|
| 155 |
+
1635,DCTD,ENSG00000129187,dCMP deaminase,protein-coding,NCBI,landmark
|
| 156 |
+
1643,DDB2,ENSG00000134574,damage specific DNA binding protein 2,protein-coding,NCBI,landmark
|
| 157 |
+
1647,GADD45A,ENSG00000116717,growth arrest and DNA damage inducible alpha,protein-coding,NCBI,landmark
|
| 158 |
+
1662,DDX10,ENSG00000178105,DEAD-box helicase 10,protein-coding,NCBI,landmark
|
| 159 |
+
1666,DECR1,ENSG00000104325,"2,4-dienoyl-CoA reductase 1",protein-coding,NCBI,landmark
|
| 160 |
+
1676,DFFA,ENSG00000160049,DNA fragmentation factor subunit alpha,protein-coding,NCBI,landmark
|
| 161 |
+
1677,DFFB,ENSG00000169598,DNA fragmentation factor subunit beta,protein-coding,NCBI,landmark
|
| 162 |
+
1738,DLD,ENSG00000091140,dihydrolipoamide dehydrogenase,protein-coding,NCBI,landmark
|
| 163 |
+
1759,DNM1,ENSG00000106976,dynamin 1,protein-coding,NCBI,landmark
|
| 164 |
+
178,AGL,ENSG00000162688,"amylo-alpha-1, 6-glucosidase, 4-alpha-glucanotransferase",protein-coding,NCBI,landmark
|
| 165 |
+
1786,DNMT1,ENSG00000130816,DNA methyltransferase 1,protein-coding,NCBI,landmark
|
| 166 |
+
1788,DNMT3A,ENSG00000119772,DNA methyltransferase 3 alpha,protein-coding,NCBI,landmark
|
| 167 |
+
1802,DPH2,ENSG00000132768,diphthamide biosynthesis 2,protein-coding,NCBI,landmark
|
| 168 |
+
1829,DSG2,ENSG00000046604,desmoglein 2,protein-coding,NCBI,landmark
|
| 169 |
+
1831,TSC22D3,ENSG00000157514,TSC22 domain family member 3,protein-coding,NCBI,landmark
|
| 170 |
+
1845,DUSP3,ENSG00000108861,dual specificity phosphatase 3,protein-coding,NCBI,landmark
|
| 171 |
+
1846,DUSP4,ENSG00000120875,dual specificity phosphatase 4,protein-coding,NCBI,landmark
|
| 172 |
+
1848,DUSP6,ENSG00000139318,dual specificity phosphatase 6,protein-coding,NCBI,landmark
|
| 173 |
+
1861,TOR1A,ENSG00000136827,torsin family 1 member A,protein-coding,NCBI,landmark
|
| 174 |
+
1870,E2F2,ENSG00000007968,E2F transcription factor 2,protein-coding,NCBI,landmark
|
| 175 |
+
1891,ECH1,ENSG00000104823,enoyl-CoA hydratase 1,protein-coding,NCBI,landmark
|
| 176 |
+
1906,EDN1,ENSG00000078401,endothelin 1,protein-coding,NCBI,landmark
|
| 177 |
+
1950,EGF,ENSG00000138798,epidermal growth factor,protein-coding,NCBI,landmark
|
| 178 |
+
1956,EGFR,ENSG00000146648,epidermal growth factor receptor,protein-coding,NCBI,landmark
|
| 179 |
+
1958,EGR1,ENSG00000120738,early growth response 1,protein-coding,NCBI,landmark
|
| 180 |
+
1978,EIF4EBP1,ENSG00000187840,eukaryotic translation initiation factor 4E binding protein 1,protein-coding,NCBI,landmark
|
| 181 |
+
1981,EIF4G1,ENSG00000114867,eukaryotic translation initiation factor 4 gamma 1,protein-coding,NCBI,landmark
|
| 182 |
+
1983,EIF5,ENSG00000100664,eukaryotic translation initiation factor 5,protein-coding,NCBI,landmark
|
| 183 |
+
1994,ELAVL1,ENSG00000066044,ELAV like RNA binding protein 1,protein-coding,NCBI,landmark
|
| 184 |
+
200081,TXLNA,ENSG00000084652,taxilin alpha,protein-coding,NCBI,landmark
|
| 185 |
+
200734,SPRED2,ENSG00000198369,sprouty related EVH1 domain containing 2,protein-coding,NCBI,landmark
|
| 186 |
+
2017,CTTN,ENSG00000085733,cortactin,protein-coding,NCBI,landmark
|
| 187 |
+
2037,EPB41L2,ENSG00000079819,erythrocyte membrane protein band 4.1 like 2,protein-coding,NCBI,landmark
|
| 188 |
+
2042,EPHA3,ENSG00000044524,EPH receptor A3,protein-coding,NCBI,landmark
|
| 189 |
+
2048,EPHB2,ENSG00000133216,EPH receptor B2,protein-coding,NCBI,landmark
|
| 190 |
+
2058,EPRS,ENSG00000136628,glutamyl-prolyl-tRNA synthetase,protein-coding,NCBI,landmark
|
| 191 |
+
2063,NR2F6,ENSG00000160113,nuclear receptor subfamily 2 group F member 6,protein-coding,NCBI,landmark
|
| 192 |
+
2064,ERBB2,ENSG00000141736,erb-b2 receptor tyrosine kinase 2,protein-coding,NCBI,landmark
|
| 193 |
+
2065,ERBB3,ENSG00000065361,erb-b2 receptor tyrosine kinase 3,protein-coding,NCBI,landmark
|
| 194 |
+
207,AKT1,ENSG00000142208,AKT serine/threonine kinase 1,protein-coding,NCBI,landmark
|
| 195 |
+
2109,ETFB,ENSG00000105379,electron transfer flavoprotein subunit beta,protein-coding,NCBI,landmark
|
| 196 |
+
211,ALAS1,ENSG00000023330,5'-aminolevulinate synthase 1,protein-coding,NCBI,landmark
|
| 197 |
+
2113,ETS1,ENSG00000134954,"ETS proto-oncogene 1, transcription factor",protein-coding,NCBI,landmark
|
| 198 |
+
2115,ETV1,ENSG00000006468,ETS variant 1,protein-coding,NCBI,landmark
|
| 199 |
+
2131,EXT1,ENSG00000182197,exostosin glycosyltransferase 1,protein-coding,NCBI,landmark
|
| 200 |
+
2146,EZH2,ENSG00000106462,enhancer of zeste 2 polycomb repressive complex 2 subunit,protein-coding,NCBI,landmark
|
| 201 |
+
2184,FAH,ENSG00000103876,fumarylacetoacetate hydrolase,protein-coding,NCBI,landmark
|
| 202 |
+
2185,PTK2B,ENSG00000120899,protein tyrosine kinase 2 beta,protein-coding,NCBI,landmark
|
| 203 |
+
2195,FAT1,ENSG00000083857,FAT atypical cadherin 1,protein-coding,NCBI,landmark
|
| 204 |
+
2222,FDFT1,ENSG00000079459,farnesyl-diphosphate farnesyltransferase 1,protein-coding,NCBI,landmark
|
| 205 |
+
226,ALDOA,ENSG00000149925,"aldolase, fructose-bisphosphate A",protein-coding,NCBI,landmark
|
| 206 |
+
2263,FGFR2,ENSG00000066468,fibroblast growth factor receptor 2,protein-coding,NCBI,landmark
|
| 207 |
+
2264,FGFR4,ENSG00000160867,fibroblast growth factor receptor 4,protein-coding,NCBI,landmark
|
| 208 |
+
2274,FHL2,ENSG00000115641,four and a half LIM domains 2,protein-coding,NCBI,landmark
|
| 209 |
+
22794,CASC3,ENSG00000108349,CASC3 exon junction complex subunit,protein-coding,NCBI,landmark
|
| 210 |
+
22796,COG2,ENSG00000135775,component of oligomeric golgi complex 2,protein-coding,NCBI,landmark
|
| 211 |
+
22809,ATF5,ENSG00000169136,activating transcription factor 5,protein-coding,NCBI,landmark
|
| 212 |
+
22823,MTF2,ENSG00000143033,metal response element binding transcription factor 2,protein-coding,NCBI,landmark
|
| 213 |
+
22827,PUF60,ENSG00000179950,poly(U) binding splicing factor 60,protein-coding,NCBI,landmark
|
| 214 |
+
22841,RAB11FIP2,ENSG00000107560,RAB11 family interacting protein 2,protein-coding,NCBI,landmark
|
| 215 |
+
2288,FKBP4,ENSG00000004478,FKBP prolyl isomerase 4,protein-coding,NCBI,landmark
|
| 216 |
+
22883,CLSTN1,ENSG00000171603,calsyntenin 1,protein-coding,NCBI,landmark
|
| 217 |
+
22887,FOXJ3,ENSG00000198815,forkhead box J3,protein-coding,NCBI,landmark
|
| 218 |
+
22889,KHDC4,ENSG00000132680,"KH domain containing 4, pre-mRNA splicing factor",protein-coding,NCBI,landmark
|
| 219 |
+
22905,EPN2,ENSG00000072134,epsin 2,protein-coding,NCBI,landmark
|
| 220 |
+
22908,SACM1L,ENSG00000211456,SAC1 like phosphatidylinositide phosphatase,protein-coding,NCBI,landmark
|
| 221 |
+
22926,ATF6,ENSG00000118217,activating transcription factor 6,protein-coding,NCBI,landmark
|
| 222 |
+
22934,RPIA,ENSG00000153574,ribose 5-phosphate isomerase A,protein-coding,NCBI,landmark
|
| 223 |
+
23,ABCF1,ENSG00000204574,ATP binding cassette subfamily F member 1,protein-coding,NCBI,landmark
|
| 224 |
+
230,ALDOC,ENSG00000109107,"aldolase, fructose-bisphosphate C",protein-coding,NCBI,landmark
|
| 225 |
+
23011,RAB21,ENSG00000080371,"RAB21, member RAS oncogene family",protein-coding,NCBI,landmark
|
| 226 |
+
23013,SPEN,ENSG00000065526,spen family transcriptional repressor,protein-coding,NCBI,landmark
|
| 227 |
+
23014,FBXO21,ENSG00000135108,F-box protein 21,protein-coding,NCBI,landmark
|
| 228 |
+
23029,RBM34,ENSG00000188739,RNA binding motif protein 34,protein-coding,NCBI,landmark
|
| 229 |
+
23038,WDTC1,ENSG00000142784,WD and tetratricopeptide repeats 1,protein-coding,NCBI,landmark
|
| 230 |
+
23039,XPO7,ENSG00000130227,exportin 7,protein-coding,NCBI,landmark
|
| 231 |
+
23061,TBC1D9B,ENSG00000197226,TBC1 domain family member 9B,protein-coding,NCBI,landmark
|
| 232 |
+
23076,RRP1B,ENSG00000160208,ribosomal RNA processing 1B,protein-coding,NCBI,landmark
|
| 233 |
+
23077,MYCBP2,ENSG00000005810,"MYC binding protein 2, E3 ubiquitin protein ligase",protein-coding,NCBI,landmark
|
| 234 |
+
2309,FOXO3,ENSG00000118689,forkhead box O3,protein-coding,NCBI,landmark
|
| 235 |
+
23097,CDK19,ENSG00000155111,cyclin dependent kinase 19,protein-coding,NCBI,landmark
|
| 236 |
+
23131,GPATCH8,ENSG00000186566,G-patch domain containing 8,protein-coding,NCBI,landmark
|
| 237 |
+
23139,MAST2,ENSG00000086015,microtubule associated serine/threonine kinase 2,protein-coding,NCBI,landmark
|
| 238 |
+
23142,DCUN1D4,ENSG00000109184,defective in cullin neddylation 1 domain containing 4,protein-coding,NCBI,landmark
|
| 239 |
+
23149,FCHO1,ENSG00000130475,FCH domain only 1,protein-coding,NCBI,landmark
|
| 240 |
+
23161,SNX13,ENSG00000071189,sorting nexin 13,protein-coding,NCBI,landmark
|
| 241 |
+
23200,ATP11B,ENSG00000058063,ATPase phospholipid transporting 11B (putative),protein-coding,NCBI,landmark
|
| 242 |
+
23210,JMJD6,ENSG00000070495,"jumonji domain containing 6, arginine demethylase and lysine hydroxylase",protein-coding,NCBI,landmark
|
| 243 |
+
23212,RRS1,ENSG00000179041,ribosome biogenesis regulator homolog,protein-coding,NCBI,landmark
|
| 244 |
+
23223,RRP12,ENSG00000052749,ribosomal RNA processing 12 homolog,protein-coding,NCBI,landmark
|
| 245 |
+
23224,SYNE2,ENSG00000054654,spectrin repeat containing nuclear envelope protein 2,protein-coding,NCBI,landmark
|
| 246 |
+
23244,PDS5A,ENSG00000121892,PDS5 cohesin associated factor A,protein-coding,NCBI,landmark
|
| 247 |
+
23271,CAMSAP2,ENSG00000118200,calmodulin regulated spectrin associated protein family member 2,protein-coding,NCBI,landmark
|
| 248 |
+
23300,ATMIN,ENSG00000166454,ATM interactor,protein-coding,NCBI,landmark
|
| 249 |
+
23321,TRIM2,ENSG00000109654,tripartite motif containing 2,protein-coding,NCBI,landmark
|
| 250 |
+
23325,WASHC4,ENSG00000136051,WASH complex subunit 4,protein-coding,NCBI,landmark
|
| 251 |
+
23326,USP22,ENSG00000124422,ubiquitin specific peptidase 22,protein-coding,NCBI,landmark
|
| 252 |
+
23335,WDR7,ENSG00000091157,WD repeat domain 7,protein-coding,NCBI,landmark
|
| 253 |
+
23338,JADE2,ENSG00000043143,jade family PHD finger 2,protein-coding,NCBI,landmark
|
| 254 |
+
23365,ARHGEF12,ENSG00000196914,Rho guanine nucleotide exchange factor 12,protein-coding,NCBI,landmark
|
| 255 |
+
23368,PPP1R13B,ENSG00000088808,protein phosphatase 1 regulatory subunit 13B,protein-coding,NCBI,landmark
|
| 256 |
+
23378,RRP8,ENSG00000132275,ribosomal RNA processing 8,protein-coding,NCBI,landmark
|
| 257 |
+
23386,NUDCD3,ENSG00000015676,NudC domain containing 3,protein-coding,NCBI,landmark
|
| 258 |
+
23410,SIRT3,ENSG00000142082,sirtuin 3,protein-coding,NCBI,landmark
|
| 259 |
+
23443,SLC35A3,ENSG00000117620,solute carrier family 35 member A3,protein-coding,NCBI,landmark
|
| 260 |
+
23463,ICMT,ENSG00000116237,isoprenylcysteine carboxyl methyltransferase,protein-coding,NCBI,landmark
|
| 261 |
+
23499,MACF1,ENSG00000127603,microtubule actin crosslinking factor 1,protein-coding,NCBI,landmark
|
| 262 |
+
23512,SUZ12,ENSG00000178691,SUZ12 polycomb repressive complex 2 subunit,protein-coding,NCBI,landmark
|
| 263 |
+
23522,KAT6B,ENSG00000156650,lysine acetyltransferase 6B,protein-coding,NCBI,landmark
|
| 264 |
+
2353,FOS,ENSG00000170345,"Fos proto-oncogene, AP-1 transcription factor subunit",protein-coding,NCBI,landmark
|
| 265 |
+
23530,NNT,ENSG00000112992,nicotinamide nucleotide transhydrogenase,protein-coding,NCBI,landmark
|
| 266 |
+
23536,ADAT1,ENSG00000065457,adenosine deaminase tRNA specific 1,protein-coding,NCBI,landmark
|
| 267 |
+
2356,FPGS,ENSG00000136877,folylpolyglutamate synthase,protein-coding,NCBI,landmark
|
| 268 |
+
23585,TMEM50A,ENSG00000183726,transmembrane protein 50A,protein-coding,NCBI,landmark
|
| 269 |
+
23588,KLHDC2,ENSG00000165516,kelch domain containing 2,protein-coding,NCBI,landmark
|
| 270 |
+
23597,ACOT9,ENSG00000123130,acyl-CoA thioesterase 9,protein-coding,NCBI,landmark
|
| 271 |
+
23635,SSBP2,ENSG00000145687,single stranded DNA binding protein 2,protein-coding,NCBI,landmark
|
| 272 |
+
23636,NUP62,ENSG00000213024,nucleoporin 62,protein-coding,NCBI,landmark
|
| 273 |
+
23647,ARFIP2,ENSG00000132254,ADP ribosylation factor interacting protein 2,protein-coding,NCBI,landmark
|
| 274 |
+
23658,LSM5,ENSG00000106355,"LSM5 homolog, U6 small nuclear RNA and mRNA degradation associated",protein-coding,NCBI,landmark
|
| 275 |
+
23659,PLA2G15,ENSG00000103066,phospholipase A2 group XV,protein-coding,NCBI,landmark
|
| 276 |
+
23670,CEMIP2,ENSG00000135048,cell migration inducing hyaluronidase 2,protein-coding,NCBI,landmark
|
| 277 |
+
24149,ZNF318,ENSG00000171467,zinc finger protein 318,protein-coding,NCBI,landmark
|
| 278 |
+
25,ABL1,ENSG00000097007,"ABL proto-oncogene 1, non-receptor tyrosine kinase",protein-coding,NCBI,landmark
|
| 279 |
+
2523,FUT1,ENSG00000174951,fucosyltransferase 1 (H blood group),protein-coding,NCBI,landmark
|
| 280 |
+
2534,FYN,ENSG00000010810,"FYN proto-oncogene, Src family tyrosine kinase",protein-coding,NCBI,landmark
|
| 281 |
+
2542,SLC37A4,ENSG00000137700,solute carrier family 37 member 4,protein-coding,NCBI,landmark
|
| 282 |
+
2548,GAA,ENSG00000171298,"glucosidase alpha, acid",protein-coding,NCBI,landmark
|
| 283 |
+
2553,GABPB1,ENSG00000104064,GA binding protein transcription factor subunit beta 1,protein-coding,NCBI,landmark
|
| 284 |
+
256364,EML3,ENSG00000149499,EMAP like 3,protein-coding,NCBI,landmark
|
| 285 |
+
25793,FBXO7,ENSG00000100225,F-box protein 7,protein-coding,NCBI,landmark
|
| 286 |
+
25803,SPDEF,ENSG00000124664,SAM pointed domain containing ETS transcription factor,protein-coding,NCBI,landmark
|
| 287 |
+
25805,BAMBI,ENSG00000095739,BMP and activin membrane bound inhibitor,protein-coding,NCBI,landmark
|
| 288 |
+
2582,GALE,ENSG00000117308,UDP-galactose-4-epimerase,protein-coding,NCBI,landmark
|
| 289 |
+
25825,BACE2,ENSG00000182240,beta-secretase 2,protein-coding,NCBI,landmark
|
| 290 |
+
25839,COG4,ENSG00000103051,component of oligomeric golgi complex 4,protein-coding,NCBI,landmark
|
| 291 |
+
25874,MPC2,ENSG00000143158,mitochondrial pyruvate carrier 2,protein-coding,NCBI,landmark
|
| 292 |
+
25932,CLIC4,ENSG00000169504,chloride intracellular channel 4,protein-coding,NCBI,landmark
|
| 293 |
+
25966,C2CD2,ENSG00000157617,C2 calcium dependent domain containing 2,protein-coding,NCBI,landmark
|
| 294 |
+
2597,GAPDH,ENSG00000111640,glyceraldehyde-3-phosphate dehydrogenase,protein-coding,NCBI,landmark
|
| 295 |
+
25976,TIPARP,ENSG00000163659,TCDD inducible poly(ADP-ribose) polymerase,protein-coding,NCBI,landmark
|
| 296 |
+
25987,TSKU,ENSG00000182704,"tsukushi, small leucine rich proteoglycan",protein-coding,NCBI,landmark
|
| 297 |
+
26001,RNF167,ENSG00000108523,ring finger protein 167,protein-coding,NCBI,landmark
|
| 298 |
+
26020,LRP10,ENSG00000197324,LDL receptor related protein 10,protein-coding,NCBI,landmark
|
| 299 |
+
26036,ZNF451,ENSG00000112200,zinc finger protein 451,protein-coding,NCBI,landmark
|
| 300 |
+
26054,SENP6,ENSG00000112701,SUMO specific peptidase 6,protein-coding,NCBI,landmark
|
| 301 |
+
26064,RAI14,ENSG00000039560,retinoic acid induced 14,protein-coding,NCBI,landmark
|
| 302 |
+
26128,KIF1BP,ENSG00000198954,KIF1 binding protein,protein-coding,NCBI,landmark
|
| 303 |
+
26136,TES,ENSG00000135269,testin LIM domain protein,protein-coding,NCBI,landmark
|
| 304 |
+
26227,PHGDH,ENSG00000092621,phosphoglycerate dehydrogenase,protein-coding,NCBI,landmark
|
| 305 |
+
2624,GATA2,ENSG00000179348,GATA binding protein 2,protein-coding,NCBI,landmark
|
| 306 |
+
2625,GATA3,ENSG00000107485,GATA binding protein 3,protein-coding,NCBI,landmark
|
| 307 |
+
26292,MYCBP,ENSG00000214114,MYC binding protein,protein-coding,NCBI,landmark
|
| 308 |
+
26511,CHIC2,ENSG00000109220,cysteine rich hydrophobic domain 2,protein-coding,NCBI,landmark
|
| 309 |
+
26520,TIMM9,ENSG00000100575,translocase of inner mitochondrial membrane 9,protein-coding,NCBI,landmark
|
| 310 |
+
2673,GFPT1,ENSG00000198380,glutamine--fructose-6-phosphate transaminase 1,protein-coding,NCBI,landmark
|
| 311 |
+
2690,GHR,ENSG00000112964,growth hormone receptor,protein-coding,NCBI,landmark
|
| 312 |
+
26993,AKAP8L,ENSG00000011243,A-kinase anchoring protein 8 like,protein-coding,NCBI,landmark
|
| 313 |
+
27032,ATP2C1,ENSG00000017260,ATPase secretory pathway Ca2+ transporting 1,protein-coding,NCBI,landmark
|
| 314 |
+
27095,TRAPPC3,ENSG00000054116,trafficking protein particle complex 3,protein-coding,NCBI,landmark
|
| 315 |
+
27109,DMAC2L,ENSG00000125375,distal membrane arm assembly complex 2 like,protein-coding,NCBI,landmark
|
| 316 |
+
27242,TNFRSF21,ENSG00000146072,TNF receptor superfamily member 21,protein-coding,NCBI,landmark
|
| 317 |
+
27244,SESN1,ENSG00000080546,sestrin 1,protein-coding,NCBI,landmark
|
| 318 |
+
27336,HTATSF1,ENSG00000102241,HIV-1 Tat specific factor 1,protein-coding,NCBI,landmark
|
| 319 |
+
27346,TMEM97,ENSG00000109084,transmembrane protein 97,protein-coding,NCBI,landmark
|
| 320 |
+
2736,GLI2,ENSG00000074047,GLI family zinc finger 2,protein-coding,NCBI,landmark
|
| 321 |
+
2745,GLRX,ENSG00000173221,glutaredoxin,protein-coding,NCBI,landmark
|
| 322 |
+
2767,GNA11,ENSG00000088256,G protein subunit alpha 11,protein-coding,NCBI,landmark
|
| 323 |
+
2769,GNA15,ENSG00000060558,G protein subunit alpha 15,protein-coding,NCBI,landmark
|
| 324 |
+
2770,GNAI1,ENSG00000127955,G protein subunit alpha i1,protein-coding,NCBI,landmark
|
| 325 |
+
2771,GNAI2,ENSG00000114353,G protein subunit alpha i2,protein-coding,NCBI,landmark
|
| 326 |
+
2778,GNAS,ENSG00000087460,GNAS complex locus,protein-coding,NCBI,landmark
|
| 327 |
+
2810,SFN,ENSG00000175793,stratifin,protein-coding,NCBI,landmark
|
| 328 |
+
2817,GPC1,ENSG00000063660,glypican 1,protein-coding,NCBI,landmark
|
| 329 |
+
2852,GPER1,ENSG00000164850,G protein-coupled estrogen receptor 1,protein-coding,NCBI,landmark
|
| 330 |
+
2886,GRB7,ENSG00000141738,growth factor receptor bound protein 7,protein-coding,NCBI,landmark
|
| 331 |
+
2887,GRB10,ENSG00000106070,growth factor receptor bound protein 10,protein-coding,NCBI,landmark
|
| 332 |
+
2896,GRN,ENSG00000030582,granulin precursor,protein-coding,NCBI,landmark
|
| 333 |
+
28969,BZW2,ENSG00000136261,basic leucine zipper and W2 domains 2,protein-coding,NCBI,landmark
|
| 334 |
+
2908,NR3C1,ENSG00000113580,nuclear receptor subfamily 3 group C member 1,protein-coding,NCBI,landmark
|
| 335 |
+
29082,CHMP4A,ENSG00000254505,charged multivesicular body protein 4A,protein-coding,NCBI,landmark
|
| 336 |
+
29083,GTPBP8,ENSG00000163607,GTP binding protein 8 (putative),protein-coding,NCBI,landmark
|
| 337 |
+
291,SLC25A4,ENSG00000151729,solute carrier family 25 member 4,protein-coding,NCBI,landmark
|
| 338 |
+
29103,DNAJC15,ENSG00000120675,DnaJ heat shock protein family (Hsp40) member C15,protein-coding,NCBI,landmark
|
| 339 |
+
2920,CXCL2,ENSG00000081041,C-X-C motif chemokine ligand 2,protein-coding,NCBI,landmark
|
| 340 |
+
2946,GSTM2,ENSG00000213366,glutathione S-transferase mu 2,protein-coding,NCBI,landmark
|
| 341 |
+
2954,GSTZ1,ENSG00000100577,glutathione S-transferase zeta 1,protein-coding,NCBI,landmark
|
| 342 |
+
2956,MSH6,ENSG00000116062,mutS homolog 6,protein-coding,NCBI,landmark
|
| 343 |
+
2958,GTF2A2,ENSG00000140307,general transcription factor IIA subunit 2,protein-coding,NCBI,landmark
|
| 344 |
+
2961,GTF2E2,ENSG00000197265,general transcription factor IIE subunit 2,protein-coding,NCBI,landmark
|
| 345 |
+
29763,PACSIN3,ENSG00000165912,protein kinase C and casein kinase substrate in neurons 3,protein-coding,NCBI,landmark
|
| 346 |
+
29890,RBM15B,ENSG00000259956,RNA binding motif protein 15B,protein-coding,NCBI,landmark
|
| 347 |
+
29911,HOOK2,ENSG00000095066,hook microtubule tethering protein 2,protein-coding,NCBI,landmark
|
| 348 |
+
29916,SNX11,ENSG00000002919,sorting nexin 11,protein-coding,NCBI,landmark
|
| 349 |
+
29928,TIMM22,ENSG00000177370,translocase of inner mitochondrial membrane 22,protein-coding,NCBI,landmark
|
| 350 |
+
29937,NENF,ENSG00000117691,neudesin neurotrophic factor,protein-coding,NCBI,landmark
|
| 351 |
+
29978,UBQLN2,ENSG00000188021,ubiquilin 2,protein-coding,NCBI,landmark
|
| 352 |
+
30,ACAA1,ENSG00000060971,acetyl-CoA acyltransferase 1,protein-coding,NCBI,landmark
|
| 353 |
+
30001,ERO1A,ENSG00000197930,endoplasmic reticulum oxidoreductase 1 alpha,protein-coding,NCBI,landmark
|
| 354 |
+
3028,HSD17B10,ENSG00000072506,hydroxysteroid 17-beta dehydrogenase 10,protein-coding,NCBI,landmark
|
| 355 |
+
3033,HADH,ENSG00000138796,hydroxyacyl-CoA dehydrogenase,protein-coding,NCBI,landmark
|
| 356 |
+
3066,HDAC2,ENSG00000196591,histone deacetylase 2,protein-coding,NCBI,landmark
|
| 357 |
+
30836,DNTTIP2,ENSG00000067334,deoxynucleotidyltransferase terminal interacting protein 2,protein-coding,NCBI,landmark
|
| 358 |
+
30849,PIK3R4,ENSG00000196455,phosphoinositide-3-kinase regulatory subunit 4,protein-coding,NCBI,landmark
|
| 359 |
+
3091,HIF1A,ENSG00000100644,hypoxia inducible factor 1 subunit alpha,protein-coding,NCBI,landmark
|
| 360 |
+
3098,HK1,ENSG00000156515,hexokinase 1,protein-coding,NCBI,landmark
|
| 361 |
+
310,ANXA7,ENSG00000138279,annexin A7,protein-coding,NCBI,landmark
|
| 362 |
+
3108,HLA-DMA,ENSG00000204257,"major histocompatibility complex, class II, DM alpha",protein-coding,NCBI,landmark
|
| 363 |
+
3122,HLA-DRA,ENSG00000204287,"major histocompatibility complex, class II, DR alpha",protein-coding,NCBI,landmark
|
| 364 |
+
3156,HMGCR,ENSG00000113161,3-hydroxy-3-methylglutaryl-CoA reductase,protein-coding,NCBI,landmark
|
| 365 |
+
3157,HMGCS1,ENSG00000112972,3-hydroxy-3-methylglutaryl-CoA synthase 1,protein-coding,NCBI,landmark
|
| 366 |
+
3162,HMOX1,ENSG00000100292,heme oxygenase 1,protein-coding,NCBI,landmark
|
| 367 |
+
3202,HOXA5,ENSG00000106004,homeobox A5,protein-coding,NCBI,landmark
|
| 368 |
+
3206,HOXA10,ENSG00000253293,homeobox A10,protein-coding,NCBI,landmark
|
| 369 |
+
323,APBB2,ENSG00000163697,amyloid beta precursor protein binding family B member 2,protein-coding,NCBI,landmark
|
| 370 |
+
3251,HPRT1,ENSG00000165704,hypoxanthine phosphoribosyltransferase 1,protein-coding,NCBI,landmark
|
| 371 |
+
3280,HES1,ENSG00000114315,hes family bHLH transcription factor 1,protein-coding,NCBI,landmark
|
| 372 |
+
329,BIRC2,ENSG00000110330,baculoviral IAP repeat containing 2,protein-coding,NCBI,landmark
|
| 373 |
+
3300,DNAJB2,ENSG00000135924,DnaJ heat shock protein family (Hsp40) member B2,protein-coding,NCBI,landmark
|
| 374 |
+
3303,HSPA1A,ENSG00000204389,heat shock protein family A (Hsp70) member 1A,protein-coding,NCBI,landmark
|
| 375 |
+
3308,HSPA4,ENSG00000170606,heat shock protein family A (Hsp70) member 4,protein-coding,NCBI,landmark
|
| 376 |
+
3312,HSPA8,ENSG00000109971,heat shock protein family A (Hsp70) member 8,protein-coding,NCBI,landmark
|
| 377 |
+
3315,HSPB1,ENSG00000106211,heat shock protein family B (small) member 1,protein-coding,NCBI,landmark
|
| 378 |
+
332,BIRC5,ENSG00000089685,baculoviral IAP repeat containing 5,protein-coding,NCBI,landmark
|
| 379 |
+
3329,HSPD1,ENSG00000144381,heat shock protein family D (Hsp60) member 1,protein-coding,NCBI,landmark
|
| 380 |
+
3337,DNAJB1,ENSG00000132002,DnaJ heat shock protein family (Hsp40) member B1,protein-coding,NCBI,landmark
|
| 381 |
+
3383,ICAM1,ENSG00000090339,intercellular adhesion molecule 1,protein-coding,NCBI,landmark
|
| 382 |
+
3385,ICAM3,ENSG00000076662,intercellular adhesion molecule 3,protein-coding,NCBI,landmark
|
| 383 |
+
3398,ID2,ENSG00000115738,inhibitor of DNA binding 2,protein-coding,NCBI,landmark
|
| 384 |
+
3416,IDE,ENSG00000119912,insulin degrading enzyme,protein-coding,NCBI,landmark
|
| 385 |
+
3454,IFNAR1,ENSG00000142166,interferon alpha and beta receptor subunit 1,protein-coding,NCBI,landmark
|
| 386 |
+
348,APOE,ENSG00000130203,apolipoprotein E,protein-coding,NCBI,landmark
|
| 387 |
+
3480,IGF1R,ENSG00000140443,insulin like growth factor 1 receptor,protein-coding,NCBI,landmark
|
| 388 |
+
3482,IGF2R,ENSG00000197081,insulin like growth factor 2 receptor,protein-coding,NCBI,landmark
|
| 389 |
+
3486,IGFBP3,ENSG00000146674,insulin like growth factor binding protein 3,protein-coding,NCBI,landmark
|
| 390 |
+
3508,IGHMBP2,ENSG00000132740,immunoglobulin mu DNA binding protein 2,protein-coding,NCBI,landmark
|
| 391 |
+
351,APP,ENSG00000142192,amyloid beta precursor protein,protein-coding,NCBI,landmark
|
| 392 |
+
355,FAS,ENSG00000026103,Fas cell surface death receptor,protein-coding,NCBI,landmark
|
| 393 |
+
3551,IKBKB,ENSG00000104365,inhibitor of nuclear factor kappa B kinase subunit beta,protein-coding,NCBI,landmark
|
| 394 |
+
3553,IL1B,ENSG00000125538,interleukin 1 beta,protein-coding,NCBI,landmark
|
| 395 |
+
3566,IL4R,ENSG00000077238,interleukin 4 receptor,protein-coding,NCBI,landmark
|
| 396 |
+
3597,IL13RA1,ENSG00000131724,interleukin 13 receptor subunit alpha 1,protein-coding,NCBI,landmark
|
| 397 |
+
3611,ILK,ENSG00000166333,integrin linked kinase,protein-coding,NCBI,landmark
|
| 398 |
+
3628,INPP1,ENSG00000151689,inositol polyphosphate-1-phosphatase,protein-coding,NCBI,landmark
|
| 399 |
+
3638,INSIG1,ENSG00000186480,insulin induced gene 1,protein-coding,NCBI,landmark
|
| 400 |
+
3682,ITGAE,ENSG00000083457,integrin subunit alpha E,protein-coding,NCBI,landmark
|
| 401 |
+
3693,ITGB5,ENSG00000082781,integrin subunit beta 5,protein-coding,NCBI,landmark
|
| 402 |
+
3725,JUN,ENSG00000177606,"Jun proto-oncogene, AP-1 transcription factor subunit",protein-coding,NCBI,landmark
|
| 403 |
+
375346,STIMATE,ENSG00000213533,STIM activating enhancer,protein-coding,NCBI,landmark
|
| 404 |
+
3775,KCNK1,ENSG00000135750,potassium two pore domain channel subfamily K member 1,protein-coding,NCBI,landmark
|
| 405 |
+
3800,KIF5C,ENSG00000168280,kinesin family member 5C,protein-coding,NCBI,landmark
|
| 406 |
+
3815,KIT,ENSG00000157404,"KIT proto-oncogene, receptor tyrosine kinase",protein-coding,NCBI,landmark
|
| 407 |
+
387,RHOA,ENSG00000067560,ras homolog family member A,protein-coding,NCBI,landmark
|
| 408 |
+
388650,DIPK1A,ENSG00000154511,divergent protein kinase domain 1A,protein-coding,NCBI,landmark
|
| 409 |
+
3895,KTN1,ENSG00000126777,kinectin 1,protein-coding,NCBI,landmark
|
| 410 |
+
39,ACAT2,ENSG00000120437,acetyl-CoA acetyltransferase 2,protein-coding,NCBI,landmark
|
| 411 |
+
3909,LAMA3,ENSG00000053747,laminin subunit alpha 3,protein-coding,NCBI,landmark
|
| 412 |
+
392,ARHGAP1,ENSG00000175220,Rho GTPase activating protein 1,protein-coding,NCBI,landmark
|
| 413 |
+
3925,STMN1,ENSG00000117632,stathmin 1,protein-coding,NCBI,landmark
|
| 414 |
+
3930,LBR,ENSG00000143815,lamin B receptor,protein-coding,NCBI,landmark
|
| 415 |
+
3964,LGALS8,ENSG00000116977,galectin 8,protein-coding,NCBI,landmark
|
| 416 |
+
3978,LIG1,ENSG00000105486,DNA ligase 1,protein-coding,NCBI,landmark
|
| 417 |
+
3988,LIPA,ENSG00000107798,"lipase A, lysosomal acid type",protein-coding,NCBI,landmark
|
| 418 |
+
4016,LOXL1,ENSG00000129038,lysyl oxidase like 1,protein-coding,NCBI,landmark
|
| 419 |
+
4043,LRPAP1,ENSG00000163956,LDL receptor related protein associated protein 1,protein-coding,NCBI,landmark
|
| 420 |
+
4067,LYN,ENSG00000254087,"LYN proto-oncogene, Src family tyrosine kinase",protein-coding,NCBI,landmark
|
| 421 |
+
4088,SMAD3,ENSG00000166949,SMAD family member 3,protein-coding,NCBI,landmark
|
| 422 |
+
4125,MAN2B1,ENSG00000104774,mannosidase alpha class 2B member 1,protein-coding,NCBI,landmark
|
| 423 |
+
4144,MAT2A,ENSG00000168906,methionine adenosyltransferase 2A,protein-coding,NCBI,landmark
|
| 424 |
+
4154,MBNL1,ENSG00000152601,muscleblind like splicing regulator 1,protein-coding,NCBI,landmark
|
| 425 |
+
4172,MCM3,ENSG00000112118,minichromosome maintenance complex component 3,protein-coding,NCBI,landmark
|
| 426 |
+
4200,ME2,ENSG00000082212,malic enzyme 2,protein-coding,NCBI,landmark
|
| 427 |
+
4208,MEF2C,ENSG00000081189,myocyte enhancer factor 2C,protein-coding,NCBI,landmark
|
| 428 |
+
4216,MAP3K4,ENSG00000085511,mitogen-activated protein kinase kinase kinase 4,protein-coding,NCBI,landmark
|
| 429 |
+
4232,MEST,ENSG00000106484,mesoderm specific transcript,protein-coding,NCBI,landmark
|
| 430 |
+
427,ASAH1,ENSG00000104763,N-acylsphingosine amidohydrolase 1,protein-coding,NCBI,landmark
|
| 431 |
+
4282,MIF,ENSG00000240972,macrophage migration inhibitory factor,protein-coding,NCBI,landmark
|
| 432 |
+
4303,FOXO4,ENSG00000184481,forkhead box O4,protein-coding,NCBI,landmark
|
| 433 |
+
4312,MMP1,ENSG00000196611,matrix metallopeptidase 1,protein-coding,NCBI,landmark
|
| 434 |
+
4313,MMP2,ENSG00000087245,matrix metallopeptidase 2,protein-coding,NCBI,landmark
|
| 435 |
+
4331,MNAT1,ENSG00000020426,MNAT1 component of CDK activating kinase,protein-coding,NCBI,landmark
|
| 436 |
+
4482,MSRA,ENSG00000175806,methionine sulfoxide reductase A,protein-coding,NCBI,landmark
|
| 437 |
+
4582,MUC1,ENSG00000185499,"mucin 1, cell surface associated",protein-coding,NCBI,landmark
|
| 438 |
+
4605,MYBL2,ENSG00000101057,MYB proto-oncogene like 2,protein-coding,NCBI,landmark
|
| 439 |
+
4609,MYC,ENSG00000136997,"MYC proto-oncogene, bHLH transcription factor",protein-coding,NCBI,landmark
|
| 440 |
+
4616,GADD45B,ENSG00000099860,growth arrest and DNA damage inducible beta,protein-coding,NCBI,landmark
|
| 441 |
+
4638,MYLK,ENSG00000065534,myosin light chain kinase,protein-coding,NCBI,landmark
|
| 442 |
+
4651,MYO10,ENSG00000145555,myosin X,protein-coding,NCBI,landmark
|
| 443 |
+
466,ATF1,ENSG00000123268,activating transcription factor 1,protein-coding,NCBI,landmark
|
| 444 |
+
4690,NCK1,ENSG00000158092,NCK adaptor protein 1,protein-coding,NCBI,landmark
|
| 445 |
+
47,ACLY,ENSG00000131473,ATP citrate lyase,protein-coding,NCBI,landmark
|
| 446 |
+
4775,NFATC3,ENSG00000072736,nuclear factor of activated T cells 3,protein-coding,NCBI,landmark
|
| 447 |
+
4776,NFATC4,ENSG00000100968,nuclear factor of activated T cells 4,protein-coding,NCBI,landmark
|
| 448 |
+
4780,NFE2L2,ENSG00000116044,"nuclear factor, erythroid 2 like 2",protein-coding,NCBI,landmark
|
| 449 |
+
4783,NFIL3,ENSG00000165030,"nuclear factor, interleukin 3 regulated",protein-coding,NCBI,landmark
|
| 450 |
+
4791,NFKB2,ENSG00000077150,nuclear factor kappa B subunit 2,protein-coding,NCBI,landmark
|
| 451 |
+
4792,NFKBIA,ENSG00000100906,NFKB inhibitor alpha,protein-coding,NCBI,landmark
|
| 452 |
+
4793,NFKBIB,ENSG00000104825,NFKB inhibitor beta,protein-coding,NCBI,landmark
|
| 453 |
+
4794,NFKBIE,ENSG00000146232,NFKB inhibitor epsilon,protein-coding,NCBI,landmark
|
| 454 |
+
481,ATP1B1,ENSG00000143153,ATPase Na+/K+ transporting subunit beta 1,protein-coding,NCBI,landmark
|
| 455 |
+
4817,NIT1,ENSG00000158793,nitrilase 1,protein-coding,NCBI,landmark
|
| 456 |
+
4836,NMT1,ENSG00000136448,N-myristoyltransferase 1,protein-coding,NCBI,landmark
|
| 457 |
+
4846,NOS3,ENSG00000164867,nitric oxide synthase 3,protein-coding,NCBI,landmark
|
| 458 |
+
4850,CNOT4,ENSG00000080802,CCR4-NOT transcription complex subunit 4,protein-coding,NCBI,landmark
|
| 459 |
+
4851,NOTCH1,ENSG00000148400,notch receptor 1,protein-coding,NCBI,landmark
|
| 460 |
+
4860,PNP,ENSG00000198805,purine nucleoside phosphorylase,protein-coding,NCBI,landmark
|
| 461 |
+
4864,NPC1,ENSG00000141458,NPC intracellular cholesterol transporter 1,protein-coding,NCBI,landmark
|
| 462 |
+
4891,SLC11A2,ENSG00000110911,solute carrier family 11 member 2,protein-coding,NCBI,landmark
|
| 463 |
+
4893,NRAS,ENSG00000213281,"NRAS proto-oncogene, GTPase",protein-coding,NCBI,landmark
|
| 464 |
+
4925,NUCB2,ENSG00000070081,nucleobindin 2,protein-coding,NCBI,landmark
|
| 465 |
+
4927,NUP88,ENSG00000108559,nucleoporin 88,protein-coding,NCBI,landmark
|
| 466 |
+
4931,NVL,ENSG00000143748,nuclear VCP like,protein-coding,NCBI,landmark
|
| 467 |
+
4998,ORC1,ENSG00000085840,origin recognition complex subunit 1,protein-coding,NCBI,landmark
|
| 468 |
+
501,ALDH7A1,ENSG00000164904,aldehyde dehydrogenase 7 family member A1,protein-coding,NCBI,landmark
|
| 469 |
+
5018,OXA1L,ENSG00000155463,OXA1L mitochondrial inner membrane protein,protein-coding,NCBI,landmark
|
| 470 |
+
5019,OXCT1,ENSG00000083720,3-oxoacid CoA-transferase 1,protein-coding,NCBI,landmark
|
| 471 |
+
5048,PAFAH1B1,ENSG00000007168,platelet activating factor acetylhydrolase 1b regulatory subunit 1,protein-coding,NCBI,landmark
|
| 472 |
+
5050,PAFAH1B3,ENSG00000079462,platelet activating factor acetylhydrolase 1b catalytic subunit 3,protein-coding,NCBI,landmark
|
| 473 |
+
5054,SERPINE1,ENSG00000106366,serpin family E member 1,protein-coding,NCBI,landmark
|
| 474 |
+
5058,PAK1,ENSG00000149269,p21 (RAC1) activated kinase 1,protein-coding,NCBI,landmark
|
| 475 |
+
50810,HDGFL3,ENSG00000166503,HDGF like 3,protein-coding,NCBI,landmark
|
| 476 |
+
50813,COPS7A,ENSG00000111652,COP9 signalosome subunit 7A,protein-coding,NCBI,landmark
|
| 477 |
+
50814,NSDHL,ENSG00000147383,NAD(P) dependent steroid dehydrogenase-like,protein-coding,NCBI,landmark
|
| 478 |
+
50865,HEBP1,ENSG00000013583,heme binding protein 1,protein-coding,NCBI,landmark
|
| 479 |
+
5092,PCBD1,ENSG00000166228,pterin-4 alpha-carbinolamine dehydratase 1,protein-coding,NCBI,landmark
|
| 480 |
+
5096,PCCB,ENSG00000114054,propionyl-CoA carboxylase subunit beta,protein-coding,NCBI,landmark
|
| 481 |
+
51001,MTERF3,ENSG00000156469,mitochondrial transcription termination factor 3,protein-coding,NCBI,landmark
|
| 482 |
+
51005,AMDHD2,ENSG00000162066,amidohydrolase domain containing 2,protein-coding,NCBI,landmark
|
| 483 |
+
51015,ISOC1,ENSG00000066583,isochorismatase domain containing 1,protein-coding,NCBI,landmark
|
| 484 |
+
51021,MRPS16,ENSG00000182180,mitochondrial ribosomal protein S16,protein-coding,NCBI,landmark
|
| 485 |
+
51024,FIS1,ENSG00000214253,"fission, mitochondrial 1",protein-coding,NCBI,landmark
|
| 486 |
+
51026,GOLT1B,ENSG00000111711,golgi transport 1B,protein-coding,NCBI,landmark
|
| 487 |
+
51031,GLOD4,ENSG00000167699,glyoxalase domain containing 4,protein-coding,NCBI,landmark
|
| 488 |
+
51053,GMNN,ENSG00000112312,geminin DNA replication inhibitor,protein-coding,NCBI,landmark
|
| 489 |
+
51056,LAP3,ENSG00000002549,leucine aminopeptidase 3,protein-coding,NCBI,landmark
|
| 490 |
+
5106,PCK2,ENSG00000100889,"phosphoenolpyruvate carboxykinase 2, mitochondrial",protein-coding,NCBI,landmark
|
| 491 |
+
51070,NOSIP,ENSG00000142546,nitric oxide synthase interacting protein,protein-coding,NCBI,landmark
|
| 492 |
+
51071,DERA,ENSG00000023697,deoxyribose-phosphate aldolase,protein-coding,NCBI,landmark
|
| 493 |
+
5108,PCM1,ENSG00000078674,pericentriolar material 1,protein-coding,NCBI,landmark
|
| 494 |
+
51097,SCCPDH,ENSG00000143653,saccharopine dehydrogenase (putative),protein-coding,NCBI,landmark
|
| 495 |
+
5110,PCMT1,ENSG00000120265,protein-L-isoaspartate (D-aspartate) O-methyltransferase,protein-coding,NCBI,landmark
|
| 496 |
+
5111,PCNA,ENSG00000132646,proliferating cell nuclear antigen,protein-coding,NCBI,landmark
|
| 497 |
+
51116,MRPS2,ENSG00000122140,mitochondrial ribosomal protein S2,protein-coding,NCBI,landmark
|
| 498 |
+
51160,VPS28,ENSG00000160948,VPS28 subunit of ESCRT-I,protein-coding,NCBI,landmark
|
| 499 |
+
51170,HSD17B11,ENSG00000198189,hydroxysteroid 17-beta dehydrogenase 11,protein-coding,NCBI,landmark
|
| 500 |
+
51203,NUSAP1,ENSG00000137804,nucleolar and spindle associated protein 1,protein-coding,NCBI,landmark
|
| 501 |
+
51282,SCAND1,ENSG00000171222,SCAN domain containing 1,protein-coding,NCBI,landmark
|
| 502 |
+
51293,CD320,ENSG00000167775,CD320 molecule,protein-coding,NCBI,landmark
|
| 503 |
+
51335,NGRN,ENSG00000182768,"neugrin, neurite outgrowth associated",protein-coding,NCBI,landmark
|
| 504 |
+
51375,SNX7,ENSG00000162627,sorting nexin 7,protein-coding,NCBI,landmark
|
| 505 |
+
51382,ATP6V1D,ENSG00000100554,ATPase H+ transporting V1 subunit D,protein-coding,NCBI,landmark
|
| 506 |
+
51385,ZNF589,ENSG00000164048,zinc finger protein 589,protein-coding,NCBI,landmark
|
| 507 |
+
51422,PRKAG2,ENSG00000106617,protein kinase AMP-activated non-catalytic subunit gamma 2,protein-coding,NCBI,landmark
|
| 508 |
+
51465,UBE2J1,ENSG00000198833,ubiquitin conjugating enzyme E2 J1,protein-coding,NCBI,landmark
|
| 509 |
+
51466,EVL,ENSG00000196405,Enah/Vasp-like,protein-coding,NCBI,landmark
|
| 510 |
+
51495,HACD3,ENSG00000074696,3-hydroxyacyl-CoA dehydratase 3,protein-coding,NCBI,landmark
|
| 511 |
+
5154,PDGFA,ENSG00000197461,platelet derived growth factor subunit A,protein-coding,NCBI,landmark
|
| 512 |
+
51569,UFM1,ENSG00000120686,ubiquitin fold modifier 1,protein-coding,NCBI,landmark
|
| 513 |
+
51599,LSR,ENSG00000105699,lipolysis stimulated lipoprotein receptor,protein-coding,NCBI,landmark
|
| 514 |
+
51635,DHRS7,ENSG00000100612,dehydrogenase/reductase 7,protein-coding,NCBI,landmark
|
| 515 |
+
51719,CAB39,ENSG00000135932,calcium binding protein 39,protein-coding,NCBI,landmark
|
| 516 |
+
51742,ARID4B,ENSG00000054267,AT-rich interaction domain 4B,protein-coding,NCBI,landmark
|
| 517 |
+
5211,PFKL,ENSG00000141959,"phosphofructokinase, liver type",protein-coding,NCBI,landmark
|
| 518 |
+
5223,PGAM1,ENSG00000171314,phosphoglycerate mutase 1,protein-coding,NCBI,landmark
|
| 519 |
+
5236,PGM1,ENSG00000079739,phosphoglucomutase 1,protein-coding,NCBI,landmark
|
| 520 |
+
5255,PHKA1,ENSG00000067177,phosphorylase kinase regulatory subunit alpha 1,protein-coding,NCBI,landmark
|
| 521 |
+
5257,PHKB,ENSG00000102893,phosphorylase kinase regulatory subunit beta,protein-coding,NCBI,landmark
|
| 522 |
+
5261,PHKG2,ENSG00000156873,phosphorylase kinase catalytic subunit gamma 2,protein-coding,NCBI,landmark
|
| 523 |
+
5287,PIK3C2B,ENSG00000133056,phosphatidylinositol-4-phosphate 3-kinase catalytic subunit type 2 beta,protein-coding,NCBI,landmark
|
| 524 |
+
5289,PIK3C3,ENSG00000078142,phosphatidylinositol 3-kinase catalytic subunit type 3,protein-coding,NCBI,landmark
|
| 525 |
+
5290,PIK3CA,ENSG00000121879,"phosphatidylinositol-4,5-bisphosphate 3-kinase catalytic subunit alpha",protein-coding,NCBI,landmark
|
| 526 |
+
5300,PIN1,ENSG00000127445,"peptidylprolyl cis/trans isomerase, NIMA-interacting 1",protein-coding,NCBI,landmark
|
| 527 |
+
5321,PLA2G4A,ENSG00000116711,phospholipase A2 group IVA,protein-coding,NCBI,landmark
|
| 528 |
+
533,ATP6V0B,ENSG00000117410,ATPase H+ transporting V0 subunit b,protein-coding,NCBI,landmark
|
| 529 |
+
5331,PLCB3,ENSG00000149782,phospholipase C beta 3,protein-coding,NCBI,landmark
|
| 530 |
+
53343,NUDT9,ENSG00000170502,nudix hydrolase 9,protein-coding,NCBI,landmark
|
| 531 |
+
5347,PLK1,ENSG00000166851,polo like kinase 1,protein-coding,NCBI,landmark
|
| 532 |
+
5355,PLP2,ENSG00000102007,proteolipid protein 2,protein-coding,NCBI,landmark
|
| 533 |
+
5357,PLS1,ENSG00000120756,plastin 1,protein-coding,NCBI,landmark
|
| 534 |
+
5359,PLSCR1,ENSG00000188313,phospholipid scramblase 1,protein-coding,NCBI,landmark
|
| 535 |
+
5366,PMAIP1,ENSG00000141682,phorbol-12-myristate-13-acetate-induced protein 1,protein-coding,NCBI,landmark
|
| 536 |
+
5373,PMM2,ENSG00000140650,phosphomannomutase 2,protein-coding,NCBI,landmark
|
| 537 |
+
54205,CYCS,ENSG00000172115,"cytochrome c, somatic",protein-coding,NCBI,landmark
|
| 538 |
+
5423,POLB,ENSG00000070501,DNA polymerase beta,protein-coding,NCBI,landmark
|
| 539 |
+
5427,POLE2,ENSG00000100479,"DNA polymerase epsilon 2, accessory subunit",protein-coding,NCBI,landmark
|
| 540 |
+
5438,POLR2I,ENSG00000105258,RNA polymerase II subunit I,protein-coding,NCBI,landmark
|
| 541 |
+
54386,TERF2IP,ENSG00000166848,TERF2 interacting protein,protein-coding,NCBI,landmark
|
| 542 |
+
5440,POLR2K,ENSG00000147669,RNA polymerase II subunit K,protein-coding,NCBI,landmark
|
| 543 |
+
54438,GFOD1,ENSG00000145990,glucose-fructose oxidoreductase domain containing 1,protein-coding,NCBI,landmark
|
| 544 |
+
54442,KCTD5,ENSG00000167977,potassium channel tetramerization domain containing 5,protein-coding,NCBI,landmark
|
| 545 |
+
54499,TMCO1,ENSG00000143183,transmembrane and coiled-coil domains 1,protein-coding,NCBI,landmark
|
| 546 |
+
54505,DHX29,ENSG00000067248,DExH-box helicase 29,protein-coding,NCBI,landmark
|
| 547 |
+
54512,EXOSC4,ENSG00000178896,exosome component 4,protein-coding,NCBI,landmark
|
| 548 |
+
54541,DDIT4,ENSG00000168209,DNA damage inducible transcript 4,protein-coding,NCBI,landmark
|
| 549 |
+
54623,PAF1,ENSG00000006712,"PAF1 homolog, Paf1/RNA polymerase II complex component",protein-coding,NCBI,landmark
|
| 550 |
+
5467,PPARD,ENSG00000112033,peroxisome proliferator activated receptor delta,protein-coding,NCBI,landmark
|
| 551 |
+
5468,PPARG,ENSG00000132170,peroxisome proliferator activated receptor gamma,protein-coding,NCBI,landmark
|
| 552 |
+
54681,P4HTM,ENSG00000178467,"prolyl 4-hydroxylase, transmembrane",protein-coding,NCBI,landmark
|
| 553 |
+
54733,SLC35F2,ENSG00000110660,solute carrier family 35 member F2,protein-coding,NCBI,landmark
|
| 554 |
+
5480,PPIC,ENSG00000168938,peptidylprolyl isomerase C,protein-coding,NCBI,landmark
|
| 555 |
+
54807,ZNF586,ENSG00000083828,zinc finger protein 586,protein-coding,NCBI,landmark
|
| 556 |
+
54850,FBXL12,ENSG00000127452,F-box and leucine rich repeat protein 12,protein-coding,NCBI,landmark
|
| 557 |
+
54881,TEX10,ENSG00000136891,testis expressed 10,protein-coding,NCBI,landmark
|
| 558 |
+
54915,YTHDF1,ENSG00000149658,YTH N6-methyladenosine RNA binding protein 1,protein-coding,NCBI,landmark
|
| 559 |
+
54957,TXNL4B,ENSG00000140830,thioredoxin like 4B,protein-coding,NCBI,landmark
|
| 560 |
+
5498,PPOX,ENSG00000143224,protoporphyrinogen oxidase,protein-coding,NCBI,landmark
|
| 561 |
+
55008,HERC6,ENSG00000138642,HECT and RLD domain containing E3 ubiquitin protein ligase family member 6,protein-coding,NCBI,landmark
|
| 562 |
+
55011,PIH1D1,ENSG00000104872,PIH1 domain containing 1,protein-coding,NCBI,landmark
|
| 563 |
+
55012,PPP2R3C,ENSG00000092020,protein phosphatase 2 regulatory subunit B''gamma,protein-coding,NCBI,landmark
|
| 564 |
+
55033,FKBP14,ENSG00000106080,FKBP prolyl isomerase 14,protein-coding,NCBI,landmark
|
| 565 |
+
55038,CDCA4,ENSG00000170779,cell division cycle associated 4,protein-coding,NCBI,landmark
|
| 566 |
+
55111,PLEKHJ1,ENSG00000104886,pleckstrin homology domain containing J1,protein-coding,NCBI,landmark
|
| 567 |
+
55127,HEATR1,ENSG00000119285,HEAT repeat containing 1,protein-coding,NCBI,landmark
|
| 568 |
+
55129,ANO10,ENSG00000160746,anoctamin 10,protein-coding,NCBI,landmark
|
| 569 |
+
55148,UBR7,ENSG00000012963,ubiquitin protein ligase E3 component n-recognin 7 (putative),protein-coding,NCBI,landmark
|
| 570 |
+
55179,FAIM,ENSG00000158234,Fas apoptotic inhibitory molecule,protein-coding,NCBI,landmark
|
| 571 |
+
5525,PPP2R5A,ENSG00000066027,protein phosphatase 2 regulatory subunit B'alpha,protein-coding,NCBI,landmark
|
| 572 |
+
55256,ADI1,ENSG00000182551,acireductone dioxygenase 1,protein-coding,NCBI,landmark
|
| 573 |
+
5529,PPP2R5E,ENSG00000154001,protein phosphatase 2 regulatory subunit B'epsilon,protein-coding,NCBI,landmark
|
| 574 |
+
55324,ABCF3,ENSG00000161204,ATP binding cassette subfamily F member 3,protein-coding,NCBI,landmark
|
| 575 |
+
5547,PRCP,ENSG00000137509,prolylcarboxypeptidase,protein-coding,NCBI,landmark
|
| 576 |
+
55556,ENOSF1,ENSG00000132199,enolase superfamily member 1,protein-coding,NCBI,landmark
|
| 577 |
+
55604,CARMIL1,ENSG00000079691,capping protein regulator and myosin 1 linker 1,protein-coding,NCBI,landmark
|
| 578 |
+
55608,ANKRD10,ENSG00000088448,ankyrin repeat domain 10,protein-coding,NCBI,landmark
|
| 579 |
+
55620,STAP2,ENSG00000178078,signal transducing adaptor family member 2,protein-coding,NCBI,landmark
|
| 580 |
+
5566,PRKACA,ENSG00000072062,protein kinase cAMP-activated catalytic subunit alpha,protein-coding,NCBI,landmark
|
| 581 |
+
55699,IARS2,ENSG00000067704,"isoleucyl-tRNA synthetase 2, mitochondrial",protein-coding,NCBI,landmark
|
| 582 |
+
55746,NUP133,ENSG00000069248,nucleoporin 133,protein-coding,NCBI,landmark
|
| 583 |
+
55748,CNDP2,ENSG00000133313,carnosine dipeptidase 2,protein-coding,NCBI,landmark
|
| 584 |
+
55793,MINDY1,ENSG00000143409,MINDY lysine 48 deubiquitinase 1,protein-coding,NCBI,landmark
|
| 585 |
+
5580,PRKCD,ENSG00000163932,protein kinase C delta,protein-coding,NCBI,landmark
|
| 586 |
+
55818,KDM3A,ENSG00000115548,lysine demethylase 3A,protein-coding,NCBI,landmark
|
| 587 |
+
55825,PECR,ENSG00000115425,peroxisomal trans-2-enoyl-CoA reductase,protein-coding,NCBI,landmark
|
| 588 |
+
5583,PRKCH,ENSG00000027075,protein kinase C eta,protein-coding,NCBI,landmark
|
| 589 |
+
55837,EAPP,ENSG00000129518,E2F associated phosphoprotein,protein-coding,NCBI,landmark
|
| 590 |
+
55847,CISD1,ENSG00000122873,CDGSH iron sulfur domain 1,protein-coding,NCBI,landmark
|
| 591 |
+
5588,PRKCQ,ENSG00000065675,protein kinase C theta,protein-coding,NCBI,landmark
|
| 592 |
+
55893,ZNF395,ENSG00000186918,zinc finger protein 395,protein-coding,NCBI,landmark
|
| 593 |
+
55958,KLHL9,ENSG00000198642,kelch like family member 9,protein-coding,NCBI,landmark
|
| 594 |
+
5601,MAPK9,ENSG00000050748,mitogen-activated protein kinase 9,protein-coding,NCBI,landmark
|
| 595 |
+
5603,MAPK13,ENSG00000156711,mitogen-activated protein kinase 13,protein-coding,NCBI,landmark
|
| 596 |
+
5607,MAP2K5,ENSG00000137764,mitogen-activated protein kinase kinase 5,protein-coding,NCBI,landmark
|
| 597 |
+
5613,PRKX,ENSG00000183943,protein kinase X-linked,protein-coding,NCBI,landmark
|
| 598 |
+
5627,PROS1,ENSG00000184500,protein S,protein-coding,NCBI,landmark
|
| 599 |
+
5641,LGMN,ENSG00000100600,legumain,protein-coding,NCBI,landmark
|
| 600 |
+
5654,HTRA1,ENSG00000166033,HtrA serine peptidase 1,protein-coding,NCBI,landmark
|
| 601 |
+
56654,NPDC1,ENSG00000107281,"neural proliferation, differentiation and control 1",protein-coding,NCBI,landmark
|
| 602 |
+
56889,TM9SF3,ENSG00000077147,transmembrane 9 superfamily member 3,protein-coding,NCBI,landmark
|
| 603 |
+
56924,PAK6,ENSG00000137843,p21 (RAC1) activated kinase 6,protein-coding,NCBI,landmark
|
| 604 |
+
56940,DUSP22,ENSG00000112679,dual specificity phosphatase 22,protein-coding,NCBI,landmark
|
| 605 |
+
5696,PSMB8,ENSG00000204264,proteasome subunit beta 8,protein-coding,NCBI,landmark
|
| 606 |
+
5699,PSMB10,ENSG00000205220,proteasome subunit beta 10,protein-coding,NCBI,landmark
|
| 607 |
+
56997,COQ8A,ENSG00000163050,coenzyme Q8A,protein-coding,NCBI,landmark
|
| 608 |
+
57019,CIAPIN1,ENSG00000005194,cytokine induced apoptosis inhibitor 1,protein-coding,NCBI,landmark
|
| 609 |
+
57048,PLSCR3,ENSG00000187838,phospholipid scramblase 3,protein-coding,NCBI,landmark
|
| 610 |
+
5708,PSMD2,ENSG00000175166,"proteasome 26S subunit, non-ATPase 2",protein-coding,NCBI,landmark
|
| 611 |
+
5710,PSMD4,ENSG00000159352,"proteasome 26S subunit, non-ATPase 4",protein-coding,NCBI,landmark
|
| 612 |
+
57147,SCYL3,ENSG00000000457,SCY1 like pseudokinase 3,protein-coding,NCBI,landmark
|
| 613 |
+
57149,LYRM1,ENSG00000102897,LYR motif containing 1,protein-coding,NCBI,landmark
|
| 614 |
+
5715,PSMD9,ENSG00000110801,"proteasome 26S subunit, non-ATPase 9",protein-coding,NCBI,landmark
|
| 615 |
+
5716,PSMD10,ENSG00000101843,"proteasome 26S subunit, non-ATPase 10",protein-coding,NCBI,landmark
|
| 616 |
+
57178,ZMIZ1,ENSG00000108175,zinc finger MIZ-type containing 1,protein-coding,NCBI,landmark
|
| 617 |
+
57192,MCOLN1,ENSG00000090674,mucolipin 1,protein-coding,NCBI,landmark
|
| 618 |
+
572,BAD,ENSG00000002330,BCL2 associated agonist of cell death,protein-coding,NCBI,landmark
|
| 619 |
+
5720,PSME1,ENSG00000092010,proteasome activator subunit 1,protein-coding,NCBI,landmark
|
| 620 |
+
5721,PSME2,ENSG00000100911,proteasome activator subunit 2,protein-coding,NCBI,landmark
|
| 621 |
+
57215,THAP11,ENSG00000168286,THAP domain containing 11,protein-coding,NCBI,landmark
|
| 622 |
+
57406,ABHD6,ENSG00000163686,abhydrolase domain containing 6,protein-coding,NCBI,landmark
|
| 623 |
+
5743,PTGS2,ENSG00000073756,prostaglandin-endoperoxide synthase 2,protein-coding,NCBI,landmark
|
| 624 |
+
5747,PTK2,ENSG00000169398,protein tyrosine kinase 2,protein-coding,NCBI,landmark
|
| 625 |
+
5770,PTPN1,ENSG00000196396,protein tyrosine phosphatase non-receptor type 1,protein-coding,NCBI,landmark
|
| 626 |
+
57761,TRIB3,ENSG00000101255,tribbles pseudokinase 3,protein-coding,NCBI,landmark
|
| 627 |
+
5777,PTPN6,ENSG00000111679,protein tyrosine phosphatase non-receptor type 6,protein-coding,NCBI,landmark
|
| 628 |
+
57804,POLD4,ENSG00000175482,"DNA polymerase delta 4, accessory subunit",protein-coding,NCBI,landmark
|
| 629 |
+
5782,PTPN12,ENSG00000127947,protein tyrosine phosphatase non-receptor type 12,protein-coding,NCBI,landmark
|
| 630 |
+
5788,PTPRC,ENSG00000081237,protein tyrosine phosphatase receptor type C,protein-coding,NCBI,landmark
|
| 631 |
+
5792,PTPRF,ENSG00000142949,protein tyrosine phosphatase receptor type F,protein-coding,NCBI,landmark
|
| 632 |
+
5796,PTPRK,ENSG00000152894,protein tyrosine phosphatase receptor type K,protein-coding,NCBI,landmark
|
| 633 |
+
581,BAX,ENSG00000087088,"BCL2 associated X, apoptosis regulator",protein-coding,NCBI,landmark
|
| 634 |
+
5827,PXMP2,ENSG00000176894,peroxisomal membrane protein 2,protein-coding,NCBI,landmark
|
| 635 |
+
5829,PXN,ENSG00000089159,paxillin,protein-coding,NCBI,landmark
|
| 636 |
+
5831,PYCR1,ENSG00000183010,pyrroline-5-carboxylate reductase 1,protein-coding,NCBI,landmark
|
| 637 |
+
5836,PYGL,ENSG00000100504,glycogen phosphorylase L,protein-coding,NCBI,landmark
|
| 638 |
+
58472,SQOR,ENSG00000137767,sulfide quinone oxidoreductase,protein-coding,NCBI,landmark
|
| 639 |
+
58478,ENOPH1,ENSG00000145293,enolase-phosphatase 1,protein-coding,NCBI,landmark
|
| 640 |
+
58497,PRUNE1,ENSG00000143363,prune exopolyphosphatase 1,protein-coding,NCBI,landmark
|
| 641 |
+
58533,SNX6,ENSG00000129515,sorting nexin 6,protein-coding,NCBI,landmark
|
| 642 |
+
5867,RAB4A,ENSG00000168118,"RAB4A, member RAS oncogene family",protein-coding,NCBI,landmark
|
| 643 |
+
5873,RAB27A,ENSG00000069974,"RAB27A, member RAS oncogene family",protein-coding,NCBI,landmark
|
| 644 |
+
5880,RAC2,ENSG00000128340,Rac family small GTPase 2,protein-coding,NCBI,landmark
|
| 645 |
+
5883,RAD9A,ENSG00000172613,RAD9 checkpoint clamp component A,protein-coding,NCBI,landmark
|
| 646 |
+
5889,RAD51C,ENSG00000108384,RAD51 paralog C,protein-coding,NCBI,landmark
|
| 647 |
+
5891,MOK,ENSG00000080823,MOK protein kinase,protein-coding,NCBI,landmark
|
| 648 |
+
5898,RALA,ENSG00000006451,RAS like proto-oncogene A,protein-coding,NCBI,landmark
|
| 649 |
+
5899,RALB,ENSG00000144118,RAS like proto-oncogene B,protein-coding,NCBI,landmark
|
| 650 |
+
5900,RALGDS,ENSG00000160271,ral guanine nucleotide dissociation stimulator,protein-coding,NCBI,landmark
|
| 651 |
+
5909,RAP1GAP,ENSG00000076864,RAP1 GTPase activating protein,protein-coding,NCBI,landmark
|
| 652 |
+
5921,RASA1,ENSG00000145715,RAS p21 protein activator 1,protein-coding,NCBI,landmark
|
| 653 |
+
5925,RB1,ENSG00000139687,RB transcriptional corepressor 1,protein-coding,NCBI,landmark
|
| 654 |
+
5927,KDM5A,ENSG00000073614,lysine demethylase 5A,protein-coding,NCBI,landmark
|
| 655 |
+
595,CCND1,ENSG00000110092,cyclin D1,protein-coding,NCBI,landmark
|
| 656 |
+
596,BCL2,ENSG00000171791,BCL2 apoptosis regulator,protein-coding,NCBI,landmark
|
| 657 |
+
5971,RELB,ENSG00000104856,"RELB proto-oncogene, NF-kB subunit",protein-coding,NCBI,landmark
|
| 658 |
+
5982,RFC2,ENSG00000049541,replication factor C subunit 2,protein-coding,NCBI,landmark
|
| 659 |
+
5985,RFC5,ENSG00000111445,replication factor C subunit 5,protein-coding,NCBI,landmark
|
| 660 |
+
5986,RFNG,ENSG00000169733,RFNG O-fucosylpeptide 3-beta-N-acetylglucosaminyltransferase,protein-coding,NCBI,landmark
|
| 661 |
+
5993,RFX5,ENSG00000143390,regulatory factor X5,protein-coding,NCBI,landmark
|
| 662 |
+
5997,RGS2,ENSG00000116741,regulator of G protein signaling 2,protein-coding,NCBI,landmark
|
| 663 |
+
6009,RHEB,ENSG00000106615,"Ras homolog, mTORC1 binding",protein-coding,NCBI,landmark
|
| 664 |
+
60493,FASTKD5,ENSG00000215251,FAST kinase domains 5,protein-coding,NCBI,landmark
|
| 665 |
+
6050,RNH1,ENSG00000023191,ribonuclease/angiogenin inhibitor 1,protein-coding,NCBI,landmark
|
| 666 |
+
60528,ELAC2,ENSG00000006744,elaC ribonuclease Z 2,protein-coding,NCBI,landmark
|
| 667 |
+
6117,RPA1,ENSG00000132383,replication protein A1,protein-coding,NCBI,landmark
|
| 668 |
+
6118,RPA2,ENSG00000117748,replication protein A2,protein-coding,NCBI,landmark
|
| 669 |
+
6119,RPA3,ENSG00000106399,replication protein A3,protein-coding,NCBI,landmark
|
| 670 |
+
6182,MRPL12,ENSG00000262814,mitochondrial ribosomal protein L12,protein-coding,NCBI,landmark
|
| 671 |
+
6184,RPN1,ENSG00000163902,ribophorin I,protein-coding,NCBI,landmark
|
| 672 |
+
6193,RPS5,ENSG00000083845,ribosomal protein S5,protein-coding,NCBI,landmark
|
| 673 |
+
6194,RPS6,ENSG00000137154,ribosomal protein S6,protein-coding,NCBI,landmark
|
| 674 |
+
6195,RPS6KA1,ENSG00000117676,ribosomal protein S6 kinase A1,protein-coding,NCBI,landmark
|
| 675 |
+
622,BDH1,ENSG00000161267,3-hydroxybutyrate dehydrogenase 1,protein-coding,NCBI,landmark
|
| 676 |
+
6251,RSU1,ENSG00000148484,Ras suppressor protein 1,protein-coding,NCBI,landmark
|
| 677 |
+
6253,RTN2,ENSG00000125744,reticulon 2,protein-coding,NCBI,landmark
|
| 678 |
+
6275,S100A4,ENSG00000196154,S100 calcium binding protein A4,protein-coding,NCBI,landmark
|
| 679 |
+
6284,S100A13,ENSG00000189171,S100 calcium binding protein A13,protein-coding,NCBI,landmark
|
| 680 |
+
6304,SATB1,ENSG00000182568,SATB homeobox 1,protein-coding,NCBI,landmark
|
| 681 |
+
6342,SCP2,ENSG00000116171,sterol carrier protein 2,protein-coding,NCBI,landmark
|
| 682 |
+
6347,CCL2,ENSG00000108691,C-C motif chemokine ligand 2,protein-coding,NCBI,landmark
|
| 683 |
+
637,BID,ENSG00000015475,BH3 interacting domain death agonist,protein-coding,NCBI,landmark
|
| 684 |
+
63874,ABHD4,ENSG00000100439,abhydrolase domain containing 4,protein-coding,NCBI,landmark
|
| 685 |
+
6390,SDHB,ENSG00000117118,succinate dehydrogenase complex iron sulfur subunit B,protein-coding,NCBI,landmark
|
| 686 |
+
63933,MCUR1,ENSG00000050393,mitochondrial calcium uniporter regulator 1,protein-coding,NCBI,landmark
|
| 687 |
+
64080,RBKS,ENSG00000171174,ribokinase,protein-coding,NCBI,landmark
|
| 688 |
+
642,BLMH,ENSG00000108578,bleomycin hydrolase,protein-coding,NCBI,landmark
|
| 689 |
+
644,BLVRA,ENSG00000106605,biliverdin reductase A,protein-coding,NCBI,landmark
|
| 690 |
+
64422,ATG3,ENSG00000144848,autophagy related 3,protein-coding,NCBI,landmark
|
| 691 |
+
64428,CIAO3,ENSG00000103245,cytosolic iron-sulfur assembly component 3,protein-coding,NCBI,landmark
|
| 692 |
+
64429,ZDHHC6,ENSG00000023041,zinc finger DHHC-type containing 6,protein-coding,NCBI,landmark
|
| 693 |
+
6443,SGCB,ENSG00000163069,sarcoglycan beta,protein-coding,NCBI,landmark
|
| 694 |
+
6461,SHB,ENSG00000107338,SH2 domain containing adaptor protein B,protein-coding,NCBI,landmark
|
| 695 |
+
6464,SHC1,ENSG00000160691,SHC adaptor protein 1,protein-coding,NCBI,landmark
|
| 696 |
+
64746,ACBD3,ENSG00000182827,acyl-CoA binding domain containing 3,protein-coding,NCBI,landmark
|
| 697 |
+
64781,CERK,ENSG00000100422,ceramide kinase,protein-coding,NCBI,landmark
|
| 698 |
+
64943,NT5DC2,ENSG00000168268,5'-nucleotidase domain containing 2,protein-coding,NCBI,landmark
|
| 699 |
+
6499,SKIV2L,ENSG00000204351,Ski2 like RNA helicase,protein-coding,NCBI,landmark
|
| 700 |
+
6500,SKP1,ENSG00000113558,S-phase kinase associated protein 1,protein-coding,NCBI,landmark
|
| 701 |
+
65057,ACD,ENSG00000102977,ACD shelterin complex subunit and telomerase recruitment factor,protein-coding,NCBI,landmark
|
| 702 |
+
6509,SLC1A4,ENSG00000115902,solute carrier family 1 member 4,protein-coding,NCBI,landmark
|
| 703 |
+
65123,INTS3,ENSG00000143624,integrator complex subunit 3,protein-coding,NCBI,landmark
|
| 704 |
+
652,BMP4,ENSG00000125378,bone morphogenetic protein 4,protein-coding,NCBI,landmark
|
| 705 |
+
6597,SMARCA4,ENSG00000127616,"SWI/SNF related, matrix associated, actin dependent regulator of chromatin, subfamily a, member 4",protein-coding,NCBI,landmark
|
| 706 |
+
6599,SMARCC1,ENSG00000173473,"SWI/SNF related, matrix associated, actin dependent regulator of chromatin subfamily c member 1",protein-coding,NCBI,landmark
|
| 707 |
+
66008,TRAK2,ENSG00000115993,trafficking kinesin protein 2,protein-coding,NCBI,landmark
|
| 708 |
+
6603,SMARCD2,ENSG00000108604,"SWI/SNF related, matrix associated, actin dependent regulator of chromatin, subfamily d, member 2",protein-coding,NCBI,landmark
|
| 709 |
+
6616,SNAP25,ENSG00000132639,synaptosome associated protein 25,protein-coding,NCBI,landmark
|
| 710 |
+
6622,SNCA,ENSG00000145335,synuclein alpha,protein-coding,NCBI,landmark
|
| 711 |
+
664,BNIP3,ENSG00000176171,BCL2 interacting protein 3,protein-coding,NCBI,landmark
|
| 712 |
+
665,BNIP3L,ENSG00000104765,BCL2 interacting protein 3 like,protein-coding,NCBI,landmark
|
| 713 |
+
6657,SOX2,ENSG00000181449,SRY-box 2,protein-coding,NCBI,landmark
|
| 714 |
+
6659,SOX4,ENSG00000124766,SRY-box 4,protein-coding,NCBI,landmark
|
| 715 |
+
6676,SPAG4,ENSG00000061656,sperm associated antigen 4,protein-coding,NCBI,landmark
|
| 716 |
+
6696,SPP1,ENSG00000118785,secreted phosphoprotein 1,protein-coding,NCBI,landmark
|
| 717 |
+
6697,SPR,ENSG00000116096,sepiapterin reductase,protein-coding,NCBI,landmark
|
| 718 |
+
670,BPHL,ENSG00000137274,biphenyl hydrolase like,protein-coding,NCBI,landmark
|
| 719 |
+
6709,SPTAN1,ENSG00000197694,"spectrin alpha, non-erythrocytic 1",protein-coding,NCBI,landmark
|
| 720 |
+
6714,SRC,ENSG00000197122,"SRC proto-oncogene, non-receptor tyrosine kinase",protein-coding,NCBI,landmark
|
| 721 |
+
672,BRCA1,ENSG00000012048,BRCA1 DNA repair associated,protein-coding,NCBI,landmark
|
| 722 |
+
6772,STAT1,ENSG00000115415,signal transducer and activator of transcription 1,protein-coding,NCBI,landmark
|
| 723 |
+
6774,STAT3,ENSG00000168610,signal transducer and activator of transcription 3,protein-coding,NCBI,landmark
|
| 724 |
+
6777,STAT5B,ENSG00000173757,signal transducer and activator of transcription 5B,protein-coding,NCBI,landmark
|
| 725 |
+
6790,AURKA,ENSG00000087586,aurora kinase A,protein-coding,NCBI,landmark
|
| 726 |
+
6793,STK10,ENSG00000072786,serine/threonine kinase 10,protein-coding,NCBI,landmark
|
| 727 |
+
6804,STX1A,ENSG00000106089,syntaxin 1A,protein-coding,NCBI,landmark
|
| 728 |
+
6810,STX4,ENSG00000103496,syntaxin 4,protein-coding,NCBI,landmark
|
| 729 |
+
6812,STXBP1,ENSG00000136854,syntaxin binding protein 1,protein-coding,NCBI,landmark
|
| 730 |
+
6813,STXBP2,ENSG00000076944,syntaxin binding protein 2,protein-coding,NCBI,landmark
|
| 731 |
+
6832,SUPV3L1,ENSG00000156502,Suv3 like RNA helicase,protein-coding,NCBI,landmark
|
| 732 |
+
6839,SUV39H1,ENSG00000101945,suppressor of variegation 3-9 homolog 1,protein-coding,NCBI,landmark
|
| 733 |
+
6850,SYK,ENSG00000165025,spleen associated tyrosine kinase,protein-coding,NCBI,landmark
|
| 734 |
+
6856,SYPL1,ENSG00000008282,synaptophysin like 1,protein-coding,NCBI,landmark
|
| 735 |
+
6894,TARBP1,ENSG00000059588,TAR (HIV-1) RNA binding protein 1,protein-coding,NCBI,landmark
|
| 736 |
+
6908,TBP,ENSG00000112592,TATA-box binding protein,protein-coding,NCBI,landmark
|
| 737 |
+
6909,TBX2,ENSG00000121068,T-box 2,protein-coding,NCBI,landmark
|
| 738 |
+
6915,TBXA2R,ENSG00000006638,thromboxane A2 receptor,protein-coding,NCBI,landmark
|
| 739 |
+
6919,TCEA2,ENSG00000171703,transcription elongation factor A2,protein-coding,NCBI,landmark
|
| 740 |
+
6944,VPS72,ENSG00000163159,vacuolar protein sorting 72 homolog,protein-coding,NCBI,landmark
|
| 741 |
+
695,BTK,ENSG00000010671,Bruton tyrosine kinase,protein-coding,NCBI,landmark
|
| 742 |
+
6988,TCTA,ENSG00000145022,T cell leukemia translocation altered,protein-coding,NCBI,landmark
|
| 743 |
+
6990,DYNLT3,ENSG00000165169,dynein light chain Tctex-type 3,protein-coding,NCBI,landmark
|
| 744 |
+
701,BUB1B,ENSG00000156970,BUB1 mitotic checkpoint serine/threonine kinase B,protein-coding,NCBI,landmark
|
| 745 |
+
7015,TERT,ENSG00000164362,telomerase reverse transcriptase,protein-coding,NCBI,landmark
|
| 746 |
+
7016,TESK1,ENSG00000107140,testis associated actin remodelling kinase 1,protein-coding,NCBI,landmark
|
| 747 |
+
7020,TFAP2A,ENSG00000137203,transcription factor AP-2 alpha,protein-coding,NCBI,landmark
|
| 748 |
+
7027,TFDP1,ENSG00000198176,transcription factor Dp-1,protein-coding,NCBI,landmark
|
| 749 |
+
7043,TGFB3,ENSG00000119699,transforming growth factor beta 3,protein-coding,NCBI,landmark
|
| 750 |
+
7048,TGFBR2,ENSG00000163513,transforming growth factor beta receptor 2,protein-coding,NCBI,landmark
|
| 751 |
+
7074,TIAM1,ENSG00000156299,T cell lymphoma invasion and metastasis 1,protein-coding,NCBI,landmark
|
| 752 |
+
7077,TIMP2,ENSG00000035862,TIMP metallopeptidase inhibitor 2,protein-coding,NCBI,landmark
|
| 753 |
+
7082,TJP1,ENSG00000104067,tight junction protein 1,protein-coding,NCBI,landmark
|
| 754 |
+
7088,TLE1,ENSG00000196781,"TLE family member 1, transcriptional corepressor",protein-coding,NCBI,landmark
|
| 755 |
+
7099,TLR4,ENSG00000136869,toll like receptor 4,protein-coding,NCBI,landmark
|
| 756 |
+
7105,TSPAN6,ENSG00000000003,tetraspanin 6,protein-coding,NCBI,landmark
|
| 757 |
+
7106,TSPAN4,ENSG00000214063,tetraspanin 4,protein-coding,NCBI,landmark
|
| 758 |
+
7153,TOP2A,ENSG00000131747,DNA topoisomerase II alpha,protein-coding,NCBI,landmark
|
| 759 |
+
7157,TP53,ENSG00000141510,tumor protein p53,protein-coding,NCBI,landmark
|
| 760 |
+
7158,TP53BP1,ENSG00000067369,tumor protein p53 binding protein 1,protein-coding,NCBI,landmark
|
| 761 |
+
7159,TP53BP2,ENSG00000143514,tumor protein p53 binding protein 2,protein-coding,NCBI,landmark
|
| 762 |
+
7165,TPD52L2,ENSG00000101150,TPD52 like 2,protein-coding,NCBI,landmark
|
| 763 |
+
7168,TPM1,ENSG00000140416,tropomyosin 1,protein-coding,NCBI,landmark
|
| 764 |
+
7264,TSTA3,ENSG00000104522,tissue specific transplantation antigen P35B,protein-coding,NCBI,landmark
|
| 765 |
+
727,C5,ENSG00000106804,complement C5,protein-coding,NCBI,landmark
|
| 766 |
+
7296,TXNRD1,ENSG00000198431,thioredoxin reductase 1,protein-coding,NCBI,landmark
|
| 767 |
+
7319,UBE2A,ENSG00000077721,ubiquitin conjugating enzyme E2 A,protein-coding,NCBI,landmark
|
| 768 |
+
7358,UGDH,ENSG00000109814,UDP-glucose 6-dehydrogenase,protein-coding,NCBI,landmark
|
| 769 |
+
7376,NR1H2,ENSG00000131408,nuclear receptor subfamily 1 group H member 2,protein-coding,NCBI,landmark
|
| 770 |
+
7398,USP1,ENSG00000162607,ubiquitin specific peptidase 1,protein-coding,NCBI,landmark
|
| 771 |
+
7416,VDAC1,ENSG00000213585,voltage dependent anion channel 1,protein-coding,NCBI,landmark
|
| 772 |
+
7466,WFS1,ENSG00000109501,wolframin ER transmembrane glycoprotein,protein-coding,NCBI,landmark
|
| 773 |
+
7485,WRB,ENSG00000182093,tryptophan rich basic protein,protein-coding,NCBI,landmark
|
| 774 |
+
7494,XBP1,ENSG00000100219,X-box binding protein 1,protein-coding,NCBI,landmark
|
| 775 |
+
7511,XPNPEP1,ENSG00000108039,X-prolyl aminopeptidase 1,protein-coding,NCBI,landmark
|
| 776 |
+
7538,ZFP36,ENSG00000128016,ZFP36 ring finger protein,protein-coding,NCBI,landmark
|
| 777 |
+
7690,ZNF131,ENSG00000172262,zinc finger protein 131,protein-coding,NCBI,landmark
|
| 778 |
+
7750,ZMYM2,ENSG00000121741,zinc finger MYM-type containing 2,protein-coding,NCBI,landmark
|
| 779 |
+
780,DDR1,ENSG00000204580,discoidin domain receptor tyrosine kinase 1,protein-coding,NCBI,landmark
|
| 780 |
+
7849,PAX8,ENSG00000125618,paired box 8,protein-coding,NCBI,landmark
|
| 781 |
+
7852,CXCR4,ENSG00000121966,C-X-C motif chemokine receptor 4,protein-coding,NCBI,landmark
|
| 782 |
+
7866,IFRD2,ENSG00000214706,interferon related developmental regulator 2,protein-coding,NCBI,landmark
|
| 783 |
+
7867,MAPKAPK3,ENSG00000114738,mitogen-activated protein kinase-activated protein kinase 3,protein-coding,NCBI,landmark
|
| 784 |
+
7874,USP7,ENSG00000187555,ubiquitin specific peptidase 7,protein-coding,NCBI,landmark
|
| 785 |
+
79006,METRN,ENSG00000103260,"meteorin, glial cell differentiation regulator",protein-coding,NCBI,landmark
|
| 786 |
+
7905,REEP5,ENSG00000129625,receptor accessory protein 5,protein-coding,NCBI,landmark
|
| 787 |
+
79071,ELOVL6,ENSG00000170522,ELOVL fatty acid elongase 6,protein-coding,NCBI,landmark
|
| 788 |
+
79073,TMEM109,ENSG00000110108,transmembrane protein 109,protein-coding,NCBI,landmark
|
| 789 |
+
79080,CCDC86,ENSG00000110104,coiled-coil domain containing 86,protein-coding,NCBI,landmark
|
| 790 |
+
79090,TRAPPC6A,ENSG00000007255,trafficking protein particle complex 6A,protein-coding,NCBI,landmark
|
| 791 |
+
79094,CHAC1,ENSG00000128965,ChaC glutathione specific gamma-glutamylcyclotransferase 1,protein-coding,NCBI,landmark
|
| 792 |
+
79143,MBOAT7,ENSG00000125505,membrane bound O-acyltransferase domain containing 7,protein-coding,NCBI,landmark
|
| 793 |
+
79170,PRR15L,ENSG00000167183,proline rich 15 like,protein-coding,NCBI,landmark
|
| 794 |
+
79174,CRELD2,ENSG00000184164,cysteine rich with EGF like domains 2,protein-coding,NCBI,landmark
|
| 795 |
+
79187,FSD1,ENSG00000105255,fibronectin type III and SPRY domain containing 1,protein-coding,NCBI,landmark
|
| 796 |
+
79600,TCTN1,ENSG00000204852,tectonic family member 1,protein-coding,NCBI,landmark
|
| 797 |
+
79643,CHMP6,ENSG00000176108,charged multivesicular body protein 6,protein-coding,NCBI,landmark
|
| 798 |
+
79716,NPEPL1,ENSG00000215440,aminopeptidase like 1,protein-coding,NCBI,landmark
|
| 799 |
+
7982,ST7,ENSG00000004866,suppression of tumorigenicity 7,protein-coding,NCBI,landmark
|
| 800 |
+
79850,FAM57A,ENSG00000167695,family with sequence similarity 57 member A,protein-coding,NCBI,landmark
|
| 801 |
+
79902,NUP85,ENSG00000125450,nucleoporin 85,protein-coding,NCBI,landmark
|
| 802 |
+
79921,TCEAL4,ENSG00000133142,transcription elongation factor A like 4,protein-coding,NCBI,landmark
|
| 803 |
+
7994,KAT6A,ENSG00000083168,lysine acetyltransferase 6A,protein-coding,NCBI,landmark
|
| 804 |
+
79947,DHDDS,ENSG00000117682,dehydrodolichyl diphosphate synthase subunit,protein-coding,NCBI,landmark
|
| 805 |
+
79961,DENND2D,ENSG00000162777,DENN domain containing 2D,protein-coding,NCBI,landmark
|
| 806 |
+
80204,FBXO11,ENSG00000138081,F-box protein 11,protein-coding,NCBI,landmark
|
| 807 |
+
80212,CCDC92,ENSG00000119242,coiled-coil domain containing 92,protein-coding,NCBI,landmark
|
| 808 |
+
80347,COASY,ENSG00000068120,Coenzyme A synthase,protein-coding,NCBI,landmark
|
| 809 |
+
80349,WDR61,ENSG00000140395,WD repeat domain 61,protein-coding,NCBI,landmark
|
| 810 |
+
8050,PDHX,ENSG00000110435,pyruvate dehydrogenase complex component X,protein-coding,NCBI,landmark
|
| 811 |
+
8061,FOSL1,ENSG00000175592,"FOS like 1, AP-1 transcription factor subunit",protein-coding,NCBI,landmark
|
| 812 |
+
80746,TSEN2,ENSG00000154743,tRNA splicing endonuclease subunit 2,protein-coding,NCBI,landmark
|
| 813 |
+
80758,PRR7,ENSG00000131188,"proline rich 7, synaptic",protein-coding,NCBI,landmark
|
| 814 |
+
808,CALM3,ENSG00000160014,calmodulin 3,protein-coding,NCBI,landmark
|
| 815 |
+
8091,HMGA2,ENSG00000149948,high mobility group AT-hook 2,protein-coding,NCBI,landmark
|
| 816 |
+
813,CALU,ENSG00000128595,calumenin,protein-coding,NCBI,landmark
|
| 817 |
+
81533,ITFG1,ENSG00000129636,integrin alpha FG-GAP repeat containing 1,protein-coding,NCBI,landmark
|
| 818 |
+
81544,GDPD5,ENSG00000158555,glycerophosphodiester phosphodiesterase domain containing 5,protein-coding,NCBI,landmark
|
| 819 |
+
8202,NCOA3,ENSG00000124151,nuclear receptor coactivator 3,protein-coding,NCBI,landmark
|
| 820 |
+
8204,NRIP1,ENSG00000180530,nuclear receptor interacting protein 1,protein-coding,NCBI,landmark
|
| 821 |
+
823,CAPN1,ENSG00000014216,calpain 1,protein-coding,NCBI,landmark
|
| 822 |
+
8243,SMC1A,ENSG00000072501,structural maintenance of chromosomes 1A,protein-coding,NCBI,landmark
|
| 823 |
+
8270,LAGE3,ENSG00000196976,L antigen family member 3,protein-coding,NCBI,landmark
|
| 824 |
+
831,CAST,ENSG00000153113,calpastatin,protein-coding,NCBI,landmark
|
| 825 |
+
8312,AXIN1,ENSG00000103126,axin 1,protein-coding,NCBI,landmark
|
| 826 |
+
8318,CDC45,ENSG00000093009,cell division cycle 45,protein-coding,NCBI,landmark
|
| 827 |
+
8321,FZD1,ENSG00000157240,frizzled class receptor 1,protein-coding,NCBI,landmark
|
| 828 |
+
8324,FZD7,ENSG00000155760,frizzled class receptor 7,protein-coding,NCBI,landmark
|
| 829 |
+
8349,HIST2H2BE,ENSG00000184678,histone cluster 2 H2B family member e,protein-coding,NCBI,landmark
|
| 830 |
+
835,CASP2,ENSG00000106144,caspase 2,protein-coding,NCBI,landmark
|
| 831 |
+
836,CASP3,ENSG00000164305,caspase 3,protein-coding,NCBI,landmark
|
| 832 |
+
83743,GRWD1,ENSG00000105447,glutamate rich WD repeat containing 1,protein-coding,NCBI,landmark
|
| 833 |
+
8396,PIP4K2B,ENSG00000276293,phosphatidylinositol-5-phosphate 4-kinase type 2 beta,protein-coding,NCBI,landmark
|
| 834 |
+
840,CASP7,ENSG00000165806,caspase 7,protein-coding,NCBI,landmark
|
| 835 |
+
84159,ARID5B,ENSG00000150347,AT-rich interaction domain 5B,protein-coding,NCBI,landmark
|
| 836 |
+
843,CASP10,ENSG00000003400,caspase 10,protein-coding,NCBI,landmark
|
| 837 |
+
8440,NCK2,ENSG00000071051,NCK adaptor protein 2,protein-coding,NCBI,landmark
|
| 838 |
+
8444,DYRK3,ENSG00000143479,dual specificity tyrosine phosphorylation regulated kinase 3,protein-coding,NCBI,landmark
|
| 839 |
+
8446,DUSP11,ENSG00000144048,dual specificity phosphatase 11,protein-coding,NCBI,landmark
|
| 840 |
+
84617,TUBB6,ENSG00000176014,tubulin beta 6 class V,protein-coding,NCBI,landmark
|
| 841 |
+
847,CAT,ENSG00000121691,catalase,protein-coding,NCBI,landmark
|
| 842 |
+
84722,PSRC1,ENSG00000134222,proline and serine rich coiled-coil 1,protein-coding,NCBI,landmark
|
| 843 |
+
8480,RAE1,ENSG00000101146,ribonucleic acid export 1,protein-coding,NCBI,landmark
|
| 844 |
+
84890,ADO,ENSG00000181915,2-aminoethanethiol dioxygenase,protein-coding,NCBI,landmark
|
| 845 |
+
8503,PIK3R3,ENSG00000117461,phosphoinositide-3-kinase regulatory subunit 3,protein-coding,NCBI,landmark
|
| 846 |
+
8508,NIPSNAP1,ENSG00000184117,nipsnap homolog 1,protein-coding,NCBI,landmark
|
| 847 |
+
8518,ELP1,ENSG00000070061,elongator complex protein 1,protein-coding,NCBI,landmark
|
| 848 |
+
8520,HAT1,ENSG00000128708,histone acetyltransferase 1,protein-coding,NCBI,landmark
|
| 849 |
+
85236,HIST1H2BK,ENSG00000197903,histone cluster 1 H2B family member k,protein-coding,NCBI,landmark
|
| 850 |
+
85377,MICALL1,ENSG00000100139,MICAL like 1,protein-coding,NCBI,landmark
|
| 851 |
+
8550,MAPKAPK5,ENSG00000089022,mitogen-activated protein kinase-activated protein kinase 5,protein-coding,NCBI,landmark
|
| 852 |
+
8553,BHLHE40,ENSG00000134107,basic helix-loop-helix family member e40,protein-coding,NCBI,landmark
|
| 853 |
+
8569,MKNK1,ENSG00000079277,MAP kinase interacting serine/threonine kinase 1,protein-coding,NCBI,landmark
|
| 854 |
+
8573,CASK,ENSG00000147044,calcium/calmodulin dependent serine protein kinase,protein-coding,NCBI,landmark
|
| 855 |
+
8574,AKR7A2,ENSG00000053371,aldo-keto reductase family 7 member A2,protein-coding,NCBI,landmark
|
| 856 |
+
8607,RUVBL1,ENSG00000175792,RuvB like AAA ATPase 1,protein-coding,NCBI,landmark
|
| 857 |
+
8624,PSMG1,ENSG00000183527,proteasome assembly chaperone 1,protein-coding,NCBI,landmark
|
| 858 |
+
8678,BECN1,ENSG00000126581,beclin 1,protein-coding,NCBI,landmark
|
| 859 |
+
868,CBLB,ENSG00000114423,Cbl proto-oncogene B,protein-coding,NCBI,landmark
|
| 860 |
+
8720,MBTPS1,ENSG00000140943,"membrane bound transcription factor peptidase, site 1",protein-coding,NCBI,landmark
|
| 861 |
+
8726,EED,ENSG00000074266,embryonic ectoderm development,protein-coding,NCBI,landmark
|
| 862 |
+
8727,CTNNAL1,ENSG00000119326,catenin alpha like 1,protein-coding,NCBI,landmark
|
| 863 |
+
873,CBR1,ENSG00000159228,carbonyl reductase 1,protein-coding,NCBI,landmark
|
| 864 |
+
8731,RNMT,ENSG00000101654,RNA guanine-7 methyltransferase,protein-coding,NCBI,landmark
|
| 865 |
+
874,CBR3,ENSG00000159231,carbonyl reductase 3,protein-coding,NCBI,landmark
|
| 866 |
+
8800,PEX11A,ENSG00000166821,peroxisomal biogenesis factor 11 alpha,protein-coding,NCBI,landmark
|
| 867 |
+
8804,CREG1,ENSG00000143162,cellular repressor of E1A stimulated genes 1,protein-coding,NCBI,landmark
|
| 868 |
+
8821,INPP4B,ENSG00000109452,inositol polyphosphate-4-phosphatase type II B,protein-coding,NCBI,landmark
|
| 869 |
+
8826,IQGAP1,ENSG00000140575,IQ motif containing GTPase activating protein 1,protein-coding,NCBI,landmark
|
| 870 |
+
8835,SOCS2,ENSG00000120833,suppressor of cytokine signaling 2,protein-coding,NCBI,landmark
|
| 871 |
+
8837,CFLAR,ENSG00000003402,CASP8 and FADD like apoptosis regulator,protein-coding,NCBI,landmark
|
| 872 |
+
8851,CDK5R1,ENSG00000176749,cyclin dependent kinase 5 regulatory subunit 1,protein-coding,NCBI,landmark
|
| 873 |
+
8869,ST3GAL5,ENSG00000115525,"ST3 beta-galactoside alpha-2,3-sialyltransferase 5",protein-coding,NCBI,landmark
|
| 874 |
+
8870,IER3,ENSG00000137331,immediate early response 3,protein-coding,NCBI,landmark
|
| 875 |
+
8878,SQSTM1,ENSG00000161011,sequestosome 1,protein-coding,NCBI,landmark
|
| 876 |
+
8884,SLC5A6,ENSG00000138074,solute carrier family 5 member 6,protein-coding,NCBI,landmark
|
| 877 |
+
8895,CPNE3,ENSG00000085719,copine 3,protein-coding,NCBI,landmark
|
| 878 |
+
890,CCNA2,ENSG00000145386,cyclin A2,protein-coding,NCBI,landmark
|
| 879 |
+
8900,CCNA1,ENSG00000133101,cyclin A1,protein-coding,NCBI,landmark
|
| 880 |
+
891,CCNB1,ENSG00000134057,cyclin B1,protein-coding,NCBI,landmark
|
| 881 |
+
8914,TIMELESS,ENSG00000111602,timeless circadian regulator,protein-coding,NCBI,landmark
|
| 882 |
+
896,CCND3,ENSG00000112576,cyclin D3,protein-coding,NCBI,landmark
|
| 883 |
+
8974,P4HA2,ENSG00000072682,prolyl 4-hydroxylase subunit alpha 2,protein-coding,NCBI,landmark
|
| 884 |
+
8985,PLOD3,ENSG00000106397,"procollagen-lysine,2-oxoglutarate 5-dioxygenase 3",protein-coding,NCBI,landmark
|
| 885 |
+
899,CCNF,ENSG00000162063,cyclin F,protein-coding,NCBI,landmark
|
| 886 |
+
89910,UBE3B,ENSG00000151148,ubiquitin protein ligase E3B,protein-coding,NCBI,landmark
|
| 887 |
+
8996,NOL3,ENSG00000140939,nucleolar protein 3,protein-coding,NCBI,landmark
|
| 888 |
+
9016,SLC25A14,ENSG00000102078,solute carrier family 25 member 14,protein-coding,NCBI,landmark
|
| 889 |
+
9019,MPZL1,ENSG00000197965,myelin protein zero like 1,protein-coding,NCBI,landmark
|
| 890 |
+
902,CCNH,ENSG00000134480,cyclin H,protein-coding,NCBI,landmark
|
| 891 |
+
9053,MAP7,ENSG00000135525,microtubule associated protein 7,protein-coding,NCBI,landmark
|
| 892 |
+
90861,JPT2,ENSG00000206053,Jupiter microtubule associated homolog 2,protein-coding,NCBI,landmark
|
| 893 |
+
9093,DNAJA3,ENSG00000103423,DnaJ heat shock protein family (Hsp40) member A3,protein-coding,NCBI,landmark
|
| 894 |
+
9097,USP14,ENSG00000101557,ubiquitin specific peptidase 14,protein-coding,NCBI,landmark
|
| 895 |
+
9112,MTA1,ENSG00000182979,metastasis associated 1,protein-coding,NCBI,landmark
|
| 896 |
+
91137,SLC25A46,ENSG00000164209,solute carrier family 25 member 46,protein-coding,NCBI,landmark
|
| 897 |
+
9124,PDLIM1,ENSG00000107438,PDZ and LIM domain 1,protein-coding,NCBI,landmark
|
| 898 |
+
9126,SMC3,ENSG00000108055,structural maintenance of chromosomes 3,protein-coding,NCBI,landmark
|
| 899 |
+
9128,PRPF4,ENSG00000136875,pre-mRNA processing factor 4,protein-coding,NCBI,landmark
|
| 900 |
+
9133,CCNB2,ENSG00000157456,cyclin B2,protein-coding,NCBI,landmark
|
| 901 |
+
9134,CCNE2,ENSG00000175305,cyclin E2,protein-coding,NCBI,landmark
|
| 902 |
+
9143,SYNGR3,ENSG00000127561,synaptogyrin 3,protein-coding,NCBI,landmark
|
| 903 |
+
9170,LPAR2,ENSG00000064547,lysophosphatidic acid receptor 2,protein-coding,NCBI,landmark
|
| 904 |
+
9181,ARHGEF2,ENSG00000116584,Rho/Rac guanine nucleotide exchange factor 2,protein-coding,NCBI,landmark
|
| 905 |
+
9183,ZW10,ENSG00000086827,zw10 kinetochore protein,protein-coding,NCBI,landmark
|
| 906 |
+
91949,COG7,ENSG00000168434,component of oligomeric golgi complex 7,protein-coding,NCBI,landmark
|
| 907 |
+
9212,AURKB,ENSG00000178999,aurora kinase B,protein-coding,NCBI,landmark
|
| 908 |
+
9217,VAPB,ENSG00000124164,VAMP associated protein B and C,protein-coding,NCBI,landmark
|
| 909 |
+
9221,NOLC1,ENSG00000166197,nucleolar and coiled-body phosphoprotein 1,protein-coding,NCBI,landmark
|
| 910 |
+
9246,UBE2L6,ENSG00000156587,ubiquitin conjugating enzyme E2 L6,protein-coding,NCBI,landmark
|
| 911 |
+
9261,MAPKAPK2,ENSG00000162889,mitogen-activated protein kinase-activated protein kinase 2,protein-coding,NCBI,landmark
|
| 912 |
+
9267,CYTH1,ENSG00000108669,cytohesin 1,protein-coding,NCBI,landmark
|
| 913 |
+
9270,ITGB1BP1,ENSG00000119185,integrin subunit beta 1 binding protein 1,protein-coding,NCBI,landmark
|
| 914 |
+
9275,BCL7B,ENSG00000106635,BAF chromatin remodeling complex subunit BCL7B,protein-coding,NCBI,landmark
|
| 915 |
+
9276,COPB2,ENSG00000184432,coatomer protein complex subunit beta 2,protein-coding,NCBI,landmark
|
| 916 |
+
9289,ADGRG1,ENSG00000205336,adhesion G protein-coupled receptor G1,protein-coding,NCBI,landmark
|
| 917 |
+
93487,MAPK1IP1L,ENSG00000168175,mitogen-activated protein kinase 1 interacting protein 1 like,protein-coding,NCBI,landmark
|
| 918 |
+
93594,TBC1D31,ENSG00000156787,TBC1 domain family member 31,protein-coding,NCBI,landmark
|
| 919 |
+
9375,TM9SF2,ENSG00000125304,transmembrane 9 superfamily member 2,protein-coding,NCBI,landmark
|
| 920 |
+
94239,H2AFV,ENSG00000105968,H2A histone family member V,protein-coding,NCBI,landmark
|
| 921 |
+
9448,MAP4K4,ENSG00000071054,mitogen-activated protein kinase kinase kinase kinase 4,protein-coding,NCBI,landmark
|
| 922 |
+
9455,HOMER2,ENSG00000103942,homer scaffold protein 2,protein-coding,NCBI,landmark
|
| 923 |
+
9467,SH3BP5,ENSG00000131370,SH3 domain binding protein 5,protein-coding,NCBI,landmark
|
| 924 |
+
9488,PIGB,ENSG00000069943,phosphatidylinositol glycan anchor biosynthesis class B,protein-coding,NCBI,landmark
|
| 925 |
+
949,SCARB1,ENSG00000073060,scavenger receptor class B member 1,protein-coding,NCBI,landmark
|
| 926 |
+
9491,PSMF1,ENSG00000125818,proteasome inhibitor subunit 1,protein-coding,NCBI,landmark
|
| 927 |
+
9517,SPTLC2,ENSG00000100596,serine palmitoyltransferase long chain base subunit 2,protein-coding,NCBI,landmark
|
| 928 |
+
9519,TBPL1,ENSG00000028839,TATA-box binding protein like 1,protein-coding,NCBI,landmark
|
| 929 |
+
9531,BAG3,ENSG00000151929,BCL2 associated athanogene 3,protein-coding,NCBI,landmark
|
| 930 |
+
9533,POLR1C,ENSG00000171453,RNA polymerase I and III subunit C,protein-coding,NCBI,landmark
|
| 931 |
+
9552,SPAG7,ENSG00000091640,sperm associated antigen 7,protein-coding,NCBI,landmark
|
| 932 |
+
958,CD40,ENSG00000101017,CD40 molecule,protein-coding,NCBI,landmark
|
| 933 |
+
960,CD44,ENSG00000026508,CD44 molecule (Indian blood group),protein-coding,NCBI,landmark
|
| 934 |
+
9637,FEZ2,ENSG00000171055,fasciculation and elongation protein zeta 2,protein-coding,NCBI,landmark
|
| 935 |
+
9641,IKBKE,ENSG00000263528,inhibitor of nuclear factor kappa B kinase subunit epsilon,protein-coding,NCBI,landmark
|
| 936 |
+
965,CD58,ENSG00000116815,CD58 molecule,protein-coding,NCBI,landmark
|
| 937 |
+
9650,MTFR1,ENSG00000066855,mitochondrial fission regulator 1,protein-coding,NCBI,landmark
|
| 938 |
+
9653,HS2ST1,ENSG00000153936,heparan sulfate 2-O-sulfotransferase 1,protein-coding,NCBI,landmark
|
| 939 |
+
9670,IPO13,ENSG00000117408,importin 13,protein-coding,NCBI,landmark
|
| 940 |
+
9686,VGLL4,ENSG00000144560,vestigial like family member 4,protein-coding,NCBI,landmark
|
| 941 |
+
9688,NUP93,ENSG00000102900,nucleoporin 93,protein-coding,NCBI,landmark
|
| 942 |
+
9690,UBE3C,ENSG00000009335,ubiquitin protein ligase E3C,protein-coding,NCBI,landmark
|
| 943 |
+
9695,EDEM1,ENSG00000134109,ER degradation enhancing alpha-mannosidase like protein 1,protein-coding,NCBI,landmark
|
| 944 |
+
9697,TRAM2,ENSG00000065308,translocation associated membrane protein 2,protein-coding,NCBI,landmark
|
| 945 |
+
9702,CEP57,ENSG00000166037,centrosomal protein 57,protein-coding,NCBI,landmark
|
| 946 |
+
9703,KIAA0100,ENSG00000007202,KIAA0100,protein-coding,NCBI,landmark
|
| 947 |
+
9709,HERPUD1,ENSG00000051108,homocysteine inducible ER protein with ubiquitin like domain 1,protein-coding,NCBI,landmark
|
| 948 |
+
9710,KIAA0355,ENSG00000166398,KIAA0355,protein-coding,NCBI,landmark
|
| 949 |
+
9712,USP6NL,ENSG00000148429,USP6 N-terminal like,protein-coding,NCBI,landmark
|
| 950 |
+
9738,CCP110,ENSG00000103540,centriolar coiled-coil protein 110,protein-coding,NCBI,landmark
|
| 951 |
+
976,ADGRE5,ENSG00000123146,adhesion G protein-coupled receptor E5,protein-coding,NCBI,landmark
|
| 952 |
+
9761,MLEC,ENSG00000110917,malectin,protein-coding,NCBI,landmark
|
| 953 |
+
9797,TATDN2,ENSG00000157014,TatD DNase domain containing 2,protein-coding,NCBI,landmark
|
| 954 |
+
9801,MRPL19,ENSG00000115364,mitochondrial ribosomal protein L19,protein-coding,NCBI,landmark
|
| 955 |
+
9805,SCRN1,ENSG00000136193,secernin 1,protein-coding,NCBI,landmark
|
| 956 |
+
9813,EFCAB14,ENSG00000159658,EF-hand calcium binding domain 14,protein-coding,NCBI,landmark
|
| 957 |
+
9817,KEAP1,ENSG00000079999,kelch like ECH associated protein 1,protein-coding,NCBI,landmark
|
| 958 |
+
983,CDK1,ENSG00000170312,cyclin dependent kinase 1,protein-coding,NCBI,landmark
|
| 959 |
+
9833,MELK,ENSG00000165304,maternal embryonic leucine zipper kinase,protein-coding,NCBI,landmark
|
| 960 |
+
9842,PLEKHM1,ENSG00000225190,pleckstrin homology and RUN domain containing M1,protein-coding,NCBI,landmark
|
| 961 |
+
9847,C2CD5,ENSG00000111731,C2 calcium dependent domain containing 5,protein-coding,NCBI,landmark
|
| 962 |
+
9851,KIAA0753,ENSG00000198920,KIAA0753,protein-coding,NCBI,landmark
|
| 963 |
+
9854,C2CD2L,ENSG00000172375,C2CD2 like,protein-coding,NCBI,landmark
|
| 964 |
+
9868,TOMM70,ENSG00000154174,translocase of outer mitochondrial membrane 70,protein-coding,NCBI,landmark
|
| 965 |
+
9897,WASHC5,ENSG00000164961,WASH complex subunit 5,protein-coding,NCBI,landmark
|
| 966 |
+
9903,KLHL21,ENSG00000162413,kelch like family member 21,protein-coding,NCBI,landmark
|
| 967 |
+
991,CDC20,ENSG00000117399,cell division cycle 20,protein-coding,NCBI,landmark
|
| 968 |
+
9915,ARNT2,ENSG00000172379,aryl hydrocarbon receptor nuclear translocator 2,protein-coding,NCBI,landmark
|
| 969 |
+
9917,FAM20B,ENSG00000116199,FAM20B glycosaminoglycan xylosylkinase,protein-coding,NCBI,landmark
|
| 970 |
+
9918,NCAPD2,ENSG00000010292,non-SMC condensin I complex subunit D2,protein-coding,NCBI,landmark
|
| 971 |
+
9924,PAN2,ENSG00000135473,poly(A) specific ribonuclease subunit PAN2,protein-coding,NCBI,landmark
|
| 972 |
+
9926,LPGAT1,ENSG00000123684,lysophosphatidylglycerol acyltransferase 1,protein-coding,NCBI,landmark
|
| 973 |
+
9928,KIF14,ENSG00000118193,kinesin family member 14,protein-coding,NCBI,landmark
|
| 974 |
+
993,CDC25A,ENSG00000164045,cell division cycle 25A,protein-coding,NCBI,landmark
|
| 975 |
+
994,CDC25B,ENSG00000101224,cell division cycle 25B,protein-coding,NCBI,landmark
|
| 976 |
+
9943,OXSR1,ENSG00000172939,oxidative stress responsive kinase 1,protein-coding,NCBI,landmark
|
| 977 |
+
9961,MVP,ENSG00000013364,major vault protein,protein-coding,NCBI,landmark
|
| 978 |
+
998,CDC42,ENSG00000070831,cell division cycle 42,protein-coding,NCBI,landmark
|
| 979 |
+
9988,DMTF1,ENSG00000135164,cyclin D binding myb like transcription factor 1,protein-coding,NCBI,landmark
|
LINCS2020/lincs978_to965.csv
ADDED
|
@@ -0,0 +1,966 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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2
|
| 67 |
+
YKT6
|
| 68 |
+
CGRRF1
|
| 69 |
+
RRAGA
|
| 70 |
+
GNB5
|
| 71 |
+
EBP
|
| 72 |
+
CNPY3
|
| 73 |
+
CETN3
|
| 74 |
+
YME1L1
|
| 75 |
+
TCFL5
|
| 76 |
+
KDM5B
|
| 77 |
+
POP4
|
| 78 |
+
ARPP19
|
| 79 |
+
ZNF274
|
| 80 |
+
MTHFD2
|
| 81 |
+
WASF3
|
| 82 |
+
UTP14A
|
| 83 |
+
FRS2
|
| 84 |
+
CLPX
|
| 85 |
+
PGRMC1
|
| 86 |
+
MALT1
|
| 87 |
+
CPSF4
|
| 88 |
+
BLCAP
|
| 89 |
+
TCERG1
|
| 90 |
+
RNPS1
|
| 91 |
+
TOMM34
|
| 92 |
+
PDIA5
|
| 93 |
+
MLLT11
|
| 94 |
+
EBNA1BP2
|
| 95 |
+
TMED10
|
| 96 |
+
ASCC3
|
| 97 |
+
SLC27A3
|
| 98 |
+
KIF2C
|
| 99 |
+
CCDC85B
|
| 100 |
+
TLK2
|
| 101 |
+
KDELR2
|
| 102 |
+
RAB31
|
| 103 |
+
B4GAT1
|
| 104 |
+
TENT4A
|
| 105 |
+
UBE2C
|
| 106 |
+
DUSP14
|
| 107 |
+
TOPBP1
|
| 108 |
+
PRSS23
|
| 109 |
+
CHEK1
|
| 110 |
+
PWP1
|
| 111 |
+
PKIG
|
| 112 |
+
CORO1A
|
| 113 |
+
LSM6
|
| 114 |
+
PSIP1
|
| 115 |
+
SLC2A6
|
| 116 |
+
NISCH
|
| 117 |
+
CHEK2
|
| 118 |
+
CHN1
|
| 119 |
+
PRAF2
|
| 120 |
+
POLG2
|
| 121 |
+
CHP1
|
| 122 |
+
PNKP
|
| 123 |
+
ECD
|
| 124 |
+
DDX42
|
| 125 |
+
TWF2
|
| 126 |
+
CIRBP
|
| 127 |
+
RPL39L
|
| 128 |
+
CLTB
|
| 129 |
+
CLTC
|
| 130 |
+
CANT1
|
| 131 |
+
COL1A1
|
| 132 |
+
ADH5
|
| 133 |
+
COL4A1
|
| 134 |
+
CREB1
|
| 135 |
+
CRK
|
| 136 |
+
CRKL
|
| 137 |
+
PARP1
|
| 138 |
+
CRYZ
|
| 139 |
+
CSK
|
| 140 |
+
CSNK1A1
|
| 141 |
+
CSNK1E
|
| 142 |
+
CSNK2A2
|
| 143 |
+
CSRP1
|
| 144 |
+
WIPF2
|
| 145 |
+
TICAM1
|
| 146 |
+
CTNND1
|
| 147 |
+
CTSD
|
| 148 |
+
CTSL
|
| 149 |
+
CYB561
|
| 150 |
+
ADRB2
|
| 151 |
+
DAG1
|
| 152 |
+
DAXX
|
| 153 |
+
DCK
|
| 154 |
+
DCTD
|
| 155 |
+
DDB2
|
| 156 |
+
GADD45A
|
| 157 |
+
DDX10
|
| 158 |
+
DECR1
|
| 159 |
+
DFFA
|
| 160 |
+
DFFB
|
| 161 |
+
DLD
|
| 162 |
+
DNM1
|
| 163 |
+
AGL
|
| 164 |
+
DNMT1
|
| 165 |
+
DNMT3A
|
| 166 |
+
DPH2
|
| 167 |
+
DSG2
|
| 168 |
+
TSC22D3
|
| 169 |
+
DUSP3
|
| 170 |
+
DUSP4
|
| 171 |
+
DUSP6
|
| 172 |
+
TOR1A
|
| 173 |
+
E2F2
|
| 174 |
+
ECH1
|
| 175 |
+
EDN1
|
| 176 |
+
EGF
|
| 177 |
+
EGFR
|
| 178 |
+
EGR1
|
| 179 |
+
EIF4EBP1
|
| 180 |
+
EIF4G1
|
| 181 |
+
EIF5
|
| 182 |
+
ELAVL1
|
| 183 |
+
TXLNA
|
| 184 |
+
SPRED2
|
| 185 |
+
CTTN
|
| 186 |
+
EPB41L2
|
| 187 |
+
EPHA3
|
| 188 |
+
EPHB2
|
| 189 |
+
NR2F6
|
| 190 |
+
ERBB2
|
| 191 |
+
ERBB3
|
| 192 |
+
AKT1
|
| 193 |
+
ETFB
|
| 194 |
+
ALAS1
|
| 195 |
+
ETS1
|
| 196 |
+
ETV1
|
| 197 |
+
EXT1
|
| 198 |
+
EZH2
|
| 199 |
+
FAH
|
| 200 |
+
PTK2B
|
| 201 |
+
FAT1
|
| 202 |
+
FDFT1
|
| 203 |
+
ALDOA
|
| 204 |
+
FGFR2
|
| 205 |
+
FGFR4
|
| 206 |
+
FHL2
|
| 207 |
+
CASC3
|
| 208 |
+
COG2
|
| 209 |
+
ATF5
|
| 210 |
+
MTF2
|
| 211 |
+
PUF60
|
| 212 |
+
RAB11FIP2
|
| 213 |
+
FKBP4
|
| 214 |
+
CLSTN1
|
| 215 |
+
FOXJ3
|
| 216 |
+
KHDC4
|
| 217 |
+
EPN2
|
| 218 |
+
SACM1L
|
| 219 |
+
ATF6
|
| 220 |
+
RPIA
|
| 221 |
+
ABCF1
|
| 222 |
+
ALDOC
|
| 223 |
+
RAB21
|
| 224 |
+
SPEN
|
| 225 |
+
FBXO21
|
| 226 |
+
RBM34
|
| 227 |
+
WDTC1
|
| 228 |
+
XPO7
|
| 229 |
+
TBC1D9B
|
| 230 |
+
RRP1B
|
| 231 |
+
MYCBP2
|
| 232 |
+
FOXO3
|
| 233 |
+
CDK19
|
| 234 |
+
GPATCH8
|
| 235 |
+
MAST2
|
| 236 |
+
DCUN1D4
|
| 237 |
+
FCHO1
|
| 238 |
+
SNX13
|
| 239 |
+
ATP11B
|
| 240 |
+
JMJD6
|
| 241 |
+
RRS1
|
| 242 |
+
RRP12
|
| 243 |
+
SYNE2
|
| 244 |
+
PDS5A
|
| 245 |
+
CAMSAP2
|
| 246 |
+
ATMIN
|
| 247 |
+
TRIM2
|
| 248 |
+
WASHC4
|
| 249 |
+
USP22
|
| 250 |
+
WDR7
|
| 251 |
+
JADE2
|
| 252 |
+
ARHGEF12
|
| 253 |
+
PPP1R13B
|
| 254 |
+
RRP8
|
| 255 |
+
NUDCD3
|
| 256 |
+
SIRT3
|
| 257 |
+
SLC35A3
|
| 258 |
+
ICMT
|
| 259 |
+
MACF1
|
| 260 |
+
SUZ12
|
| 261 |
+
KAT6B
|
| 262 |
+
FOS
|
| 263 |
+
NNT
|
| 264 |
+
ADAT1
|
| 265 |
+
FPGS
|
| 266 |
+
TMEM50A
|
| 267 |
+
KLHDC2
|
| 268 |
+
ACOT9
|
| 269 |
+
SSBP2
|
| 270 |
+
NUP62
|
| 271 |
+
ARFIP2
|
| 272 |
+
LSM5
|
| 273 |
+
PLA2G15
|
| 274 |
+
CEMIP2
|
| 275 |
+
ZNF318
|
| 276 |
+
ABL1
|
| 277 |
+
FUT1
|
| 278 |
+
FYN
|
| 279 |
+
SLC37A4
|
| 280 |
+
GAA
|
| 281 |
+
GABPB1
|
| 282 |
+
EML3
|
| 283 |
+
FBXO7
|
| 284 |
+
SPDEF
|
| 285 |
+
BAMBI
|
| 286 |
+
GALE
|
| 287 |
+
BACE2
|
| 288 |
+
COG4
|
| 289 |
+
MPC2
|
| 290 |
+
CLIC4
|
| 291 |
+
C2CD2
|
| 292 |
+
GAPDH
|
| 293 |
+
TIPARP
|
| 294 |
+
TSKU
|
| 295 |
+
RNF167
|
| 296 |
+
LRP10
|
| 297 |
+
ZNF451
|
| 298 |
+
SENP6
|
| 299 |
+
RAI14
|
| 300 |
+
TES
|
| 301 |
+
PHGDH
|
| 302 |
+
GATA2
|
| 303 |
+
GATA3
|
| 304 |
+
MYCBP
|
| 305 |
+
CHIC2
|
| 306 |
+
TIMM9
|
| 307 |
+
GFPT1
|
| 308 |
+
GHR
|
| 309 |
+
AKAP8L
|
| 310 |
+
ATP2C1
|
| 311 |
+
TRAPPC3
|
| 312 |
+
DMAC2L
|
| 313 |
+
TNFRSF21
|
| 314 |
+
SESN1
|
| 315 |
+
HTATSF1
|
| 316 |
+
TMEM97
|
| 317 |
+
GLI2
|
| 318 |
+
GLRX
|
| 319 |
+
GNA11
|
| 320 |
+
GNA15
|
| 321 |
+
GNAI1
|
| 322 |
+
GNAI2
|
| 323 |
+
GNAS
|
| 324 |
+
SFN
|
| 325 |
+
GPC1
|
| 326 |
+
GPER1
|
| 327 |
+
GRB7
|
| 328 |
+
GRB10
|
| 329 |
+
GRN
|
| 330 |
+
BZW2
|
| 331 |
+
NR3C1
|
| 332 |
+
CHMP4A
|
| 333 |
+
GTPBP8
|
| 334 |
+
SLC25A4
|
| 335 |
+
DNAJC15
|
| 336 |
+
CXCL2
|
| 337 |
+
GSTM2
|
| 338 |
+
GSTZ1
|
| 339 |
+
MSH6
|
| 340 |
+
GTF2A2
|
| 341 |
+
GTF2E2
|
| 342 |
+
PACSIN3
|
| 343 |
+
RBM15B
|
| 344 |
+
HOOK2
|
| 345 |
+
SNX11
|
| 346 |
+
TIMM22
|
| 347 |
+
NENF
|
| 348 |
+
UBQLN2
|
| 349 |
+
ACAA1
|
| 350 |
+
ERO1A
|
| 351 |
+
HSD17B10
|
| 352 |
+
HADH
|
| 353 |
+
HDAC2
|
| 354 |
+
DNTTIP2
|
| 355 |
+
PIK3R4
|
| 356 |
+
HIF1A
|
| 357 |
+
HK1
|
| 358 |
+
ANXA7
|
| 359 |
+
HLA-DMA
|
| 360 |
+
HLA-DRA
|
| 361 |
+
HMGCR
|
| 362 |
+
HMGCS1
|
| 363 |
+
HMOX1
|
| 364 |
+
HOXA5
|
| 365 |
+
HOXA10
|
| 366 |
+
APBB2
|
| 367 |
+
HPRT1
|
| 368 |
+
HES1
|
| 369 |
+
BIRC2
|
| 370 |
+
DNAJB2
|
| 371 |
+
HSPA1A
|
| 372 |
+
HSPA4
|
| 373 |
+
HSPA8
|
| 374 |
+
HSPB1
|
| 375 |
+
BIRC5
|
| 376 |
+
HSPD1
|
| 377 |
+
DNAJB1
|
| 378 |
+
ICAM1
|
| 379 |
+
ICAM3
|
| 380 |
+
ID2
|
| 381 |
+
IDE
|
| 382 |
+
IFNAR1
|
| 383 |
+
APOE
|
| 384 |
+
IGF1R
|
| 385 |
+
IGF2R
|
| 386 |
+
IGFBP3
|
| 387 |
+
IGHMBP2
|
| 388 |
+
APP
|
| 389 |
+
FAS
|
| 390 |
+
IKBKB
|
| 391 |
+
IL1B
|
| 392 |
+
IL4R
|
| 393 |
+
IL13RA1
|
| 394 |
+
ILK
|
| 395 |
+
INPP1
|
| 396 |
+
INSIG1
|
| 397 |
+
ITGAE
|
| 398 |
+
ITGB5
|
| 399 |
+
JUN
|
| 400 |
+
STIMATE
|
| 401 |
+
KCNK1
|
| 402 |
+
KIF5C
|
| 403 |
+
KIT
|
| 404 |
+
RHOA
|
| 405 |
+
DIPK1A
|
| 406 |
+
KTN1
|
| 407 |
+
ACAT2
|
| 408 |
+
LAMA3
|
| 409 |
+
ARHGAP1
|
| 410 |
+
STMN1
|
| 411 |
+
LBR
|
| 412 |
+
LGALS8
|
| 413 |
+
LIG1
|
| 414 |
+
LIPA
|
| 415 |
+
LOXL1
|
| 416 |
+
LRPAP1
|
| 417 |
+
LYN
|
| 418 |
+
SMAD3
|
| 419 |
+
MAN2B1
|
| 420 |
+
MAT2A
|
| 421 |
+
MBNL1
|
| 422 |
+
MCM3
|
| 423 |
+
ME2
|
| 424 |
+
MEF2C
|
| 425 |
+
MAP3K4
|
| 426 |
+
MEST
|
| 427 |
+
ASAH1
|
| 428 |
+
MIF
|
| 429 |
+
FOXO4
|
| 430 |
+
MMP1
|
| 431 |
+
MMP2
|
| 432 |
+
MNAT1
|
| 433 |
+
MSRA
|
| 434 |
+
MUC1
|
| 435 |
+
MYBL2
|
| 436 |
+
MYC
|
| 437 |
+
GADD45B
|
| 438 |
+
MYLK
|
| 439 |
+
MYO10
|
| 440 |
+
ATF1
|
| 441 |
+
NCK1
|
| 442 |
+
ACLY
|
| 443 |
+
NFATC3
|
| 444 |
+
NFATC4
|
| 445 |
+
NFE2L2
|
| 446 |
+
NFIL3
|
| 447 |
+
NFKB2
|
| 448 |
+
NFKBIA
|
| 449 |
+
NFKBIB
|
| 450 |
+
NFKBIE
|
| 451 |
+
ATP1B1
|
| 452 |
+
NIT1
|
| 453 |
+
NMT1
|
| 454 |
+
NOS3
|
| 455 |
+
CNOT4
|
| 456 |
+
NOTCH1
|
| 457 |
+
PNP
|
| 458 |
+
NPC1
|
| 459 |
+
SLC11A2
|
| 460 |
+
NRAS
|
| 461 |
+
NUCB2
|
| 462 |
+
NUP88
|
| 463 |
+
NVL
|
| 464 |
+
ORC1
|
| 465 |
+
ALDH7A1
|
| 466 |
+
OXA1L
|
| 467 |
+
OXCT1
|
| 468 |
+
PAFAH1B1
|
| 469 |
+
PAFAH1B3
|
| 470 |
+
SERPINE1
|
| 471 |
+
PAK1
|
| 472 |
+
HDGFL3
|
| 473 |
+
COPS7A
|
| 474 |
+
NSDHL
|
| 475 |
+
HEBP1
|
| 476 |
+
PCBD1
|
| 477 |
+
PCCB
|
| 478 |
+
MTERF3
|
| 479 |
+
AMDHD2
|
| 480 |
+
ISOC1
|
| 481 |
+
MRPS16
|
| 482 |
+
FIS1
|
| 483 |
+
GOLT1B
|
| 484 |
+
GLOD4
|
| 485 |
+
GMNN
|
| 486 |
+
LAP3
|
| 487 |
+
PCK2
|
| 488 |
+
NOSIP
|
| 489 |
+
DERA
|
| 490 |
+
PCM1
|
| 491 |
+
SCCPDH
|
| 492 |
+
PCMT1
|
| 493 |
+
PCNA
|
| 494 |
+
MRPS2
|
| 495 |
+
VPS28
|
| 496 |
+
HSD17B11
|
| 497 |
+
NUSAP1
|
| 498 |
+
SCAND1
|
| 499 |
+
CD320
|
| 500 |
+
NGRN
|
| 501 |
+
SNX7
|
| 502 |
+
ATP6V1D
|
| 503 |
+
ZNF589
|
| 504 |
+
PRKAG2
|
| 505 |
+
UBE2J1
|
| 506 |
+
EVL
|
| 507 |
+
HACD3
|
| 508 |
+
PDGFA
|
| 509 |
+
UFM1
|
| 510 |
+
LSR
|
| 511 |
+
DHRS7
|
| 512 |
+
CAB39
|
| 513 |
+
ARID4B
|
| 514 |
+
PFKL
|
| 515 |
+
PGAM1
|
| 516 |
+
PGM1
|
| 517 |
+
PHKA1
|
| 518 |
+
PHKB
|
| 519 |
+
PHKG2
|
| 520 |
+
PIK3C2B
|
| 521 |
+
PIK3C3
|
| 522 |
+
PIK3CA
|
| 523 |
+
PIN1
|
| 524 |
+
PLA2G4A
|
| 525 |
+
ATP6V0B
|
| 526 |
+
PLCB3
|
| 527 |
+
NUDT9
|
| 528 |
+
PLK1
|
| 529 |
+
PLP2
|
| 530 |
+
PLS1
|
| 531 |
+
PLSCR1
|
| 532 |
+
PMAIP1
|
| 533 |
+
PMM2
|
| 534 |
+
CYCS
|
| 535 |
+
POLB
|
| 536 |
+
POLE2
|
| 537 |
+
POLR2I
|
| 538 |
+
TERF2IP
|
| 539 |
+
POLR2K
|
| 540 |
+
GFOD1
|
| 541 |
+
KCTD5
|
| 542 |
+
TMCO1
|
| 543 |
+
DHX29
|
| 544 |
+
EXOSC4
|
| 545 |
+
DDIT4
|
| 546 |
+
PAF1
|
| 547 |
+
PPARD
|
| 548 |
+
PPARG
|
| 549 |
+
P4HTM
|
| 550 |
+
SLC35F2
|
| 551 |
+
PPIC
|
| 552 |
+
ZNF586
|
| 553 |
+
FBXL12
|
| 554 |
+
TEX10
|
| 555 |
+
YTHDF1
|
| 556 |
+
TXNL4B
|
| 557 |
+
PPOX
|
| 558 |
+
HERC6
|
| 559 |
+
PIH1D1
|
| 560 |
+
PPP2R3C
|
| 561 |
+
FKBP14
|
| 562 |
+
CDCA4
|
| 563 |
+
PLEKHJ1
|
| 564 |
+
HEATR1
|
| 565 |
+
ANO10
|
| 566 |
+
UBR7
|
| 567 |
+
FAIM
|
| 568 |
+
PPP2R5A
|
| 569 |
+
ADI1
|
| 570 |
+
PPP2R5E
|
| 571 |
+
ABCF3
|
| 572 |
+
PRCP
|
| 573 |
+
ENOSF1
|
| 574 |
+
CARMIL1
|
| 575 |
+
ANKRD10
|
| 576 |
+
STAP2
|
| 577 |
+
PRKACA
|
| 578 |
+
IARS2
|
| 579 |
+
NUP133
|
| 580 |
+
CNDP2
|
| 581 |
+
MINDY1
|
| 582 |
+
PRKCD
|
| 583 |
+
KDM3A
|
| 584 |
+
PECR
|
| 585 |
+
PRKCH
|
| 586 |
+
EAPP
|
| 587 |
+
CISD1
|
| 588 |
+
PRKCQ
|
| 589 |
+
ZNF395
|
| 590 |
+
KLHL9
|
| 591 |
+
MAPK9
|
| 592 |
+
MAPK13
|
| 593 |
+
MAP2K5
|
| 594 |
+
PRKX
|
| 595 |
+
PROS1
|
| 596 |
+
LGMN
|
| 597 |
+
HTRA1
|
| 598 |
+
NPDC1
|
| 599 |
+
TM9SF3
|
| 600 |
+
PAK6
|
| 601 |
+
DUSP22
|
| 602 |
+
PSMB8
|
| 603 |
+
PSMB10
|
| 604 |
+
COQ8A
|
| 605 |
+
CIAPIN1
|
| 606 |
+
PLSCR3
|
| 607 |
+
PSMD2
|
| 608 |
+
PSMD4
|
| 609 |
+
SCYL3
|
| 610 |
+
LYRM1
|
| 611 |
+
PSMD9
|
| 612 |
+
PSMD10
|
| 613 |
+
ZMIZ1
|
| 614 |
+
MCOLN1
|
| 615 |
+
BAD
|
| 616 |
+
PSME1
|
| 617 |
+
PSME2
|
| 618 |
+
THAP11
|
| 619 |
+
ABHD6
|
| 620 |
+
PTGS2
|
| 621 |
+
PTK2
|
| 622 |
+
PTPN1
|
| 623 |
+
TRIB3
|
| 624 |
+
PTPN6
|
| 625 |
+
POLD4
|
| 626 |
+
PTPN12
|
| 627 |
+
PTPRC
|
| 628 |
+
PTPRF
|
| 629 |
+
PTPRK
|
| 630 |
+
BAX
|
| 631 |
+
PXMP2
|
| 632 |
+
PXN
|
| 633 |
+
PYCR1
|
| 634 |
+
PYGL
|
| 635 |
+
SQOR
|
| 636 |
+
ENOPH1
|
| 637 |
+
PRUNE1
|
| 638 |
+
SNX6
|
| 639 |
+
RAB4A
|
| 640 |
+
RAB27A
|
| 641 |
+
RAC2
|
| 642 |
+
RAD9A
|
| 643 |
+
RAD51C
|
| 644 |
+
MOK
|
| 645 |
+
RALA
|
| 646 |
+
RALB
|
| 647 |
+
RALGDS
|
| 648 |
+
RAP1GAP
|
| 649 |
+
RASA1
|
| 650 |
+
RB1
|
| 651 |
+
KDM5A
|
| 652 |
+
CCND1
|
| 653 |
+
BCL2
|
| 654 |
+
RELB
|
| 655 |
+
RFC2
|
| 656 |
+
RFC5
|
| 657 |
+
RFNG
|
| 658 |
+
RFX5
|
| 659 |
+
RGS2
|
| 660 |
+
RHEB
|
| 661 |
+
FASTKD5
|
| 662 |
+
RNH1
|
| 663 |
+
ELAC2
|
| 664 |
+
RPA1
|
| 665 |
+
RPA2
|
| 666 |
+
RPA3
|
| 667 |
+
MRPL12
|
| 668 |
+
RPN1
|
| 669 |
+
RPS5
|
| 670 |
+
RPS6
|
| 671 |
+
RPS6KA1
|
| 672 |
+
BDH1
|
| 673 |
+
RSU1
|
| 674 |
+
RTN2
|
| 675 |
+
S100A4
|
| 676 |
+
S100A13
|
| 677 |
+
SATB1
|
| 678 |
+
SCP2
|
| 679 |
+
CCL2
|
| 680 |
+
BID
|
| 681 |
+
ABHD4
|
| 682 |
+
SDHB
|
| 683 |
+
MCUR1
|
| 684 |
+
RBKS
|
| 685 |
+
BLMH
|
| 686 |
+
BLVRA
|
| 687 |
+
ATG3
|
| 688 |
+
CIAO3
|
| 689 |
+
ZDHHC6
|
| 690 |
+
SGCB
|
| 691 |
+
SHB
|
| 692 |
+
SHC1
|
| 693 |
+
ACBD3
|
| 694 |
+
CERK
|
| 695 |
+
NT5DC2
|
| 696 |
+
SKP1
|
| 697 |
+
ACD
|
| 698 |
+
SLC1A4
|
| 699 |
+
INTS3
|
| 700 |
+
BMP4
|
| 701 |
+
SMARCA4
|
| 702 |
+
SMARCC1
|
| 703 |
+
TRAK2
|
| 704 |
+
SMARCD2
|
| 705 |
+
SNAP25
|
| 706 |
+
SNCA
|
| 707 |
+
BNIP3
|
| 708 |
+
BNIP3L
|
| 709 |
+
SOX2
|
| 710 |
+
SOX4
|
| 711 |
+
SPAG4
|
| 712 |
+
SPP1
|
| 713 |
+
SPR
|
| 714 |
+
BPHL
|
| 715 |
+
SPTAN1
|
| 716 |
+
SRC
|
| 717 |
+
BRCA1
|
| 718 |
+
STAT1
|
| 719 |
+
STAT3
|
| 720 |
+
STAT5B
|
| 721 |
+
AURKA
|
| 722 |
+
STK10
|
| 723 |
+
STX1A
|
| 724 |
+
STX4
|
| 725 |
+
STXBP1
|
| 726 |
+
STXBP2
|
| 727 |
+
SUPV3L1
|
| 728 |
+
SUV39H1
|
| 729 |
+
SYK
|
| 730 |
+
SYPL1
|
| 731 |
+
TARBP1
|
| 732 |
+
TBP
|
| 733 |
+
TBX2
|
| 734 |
+
TBXA2R
|
| 735 |
+
TCEA2
|
| 736 |
+
VPS72
|
| 737 |
+
BTK
|
| 738 |
+
TCTA
|
| 739 |
+
DYNLT3
|
| 740 |
+
BUB1B
|
| 741 |
+
TERT
|
| 742 |
+
TESK1
|
| 743 |
+
TFAP2A
|
| 744 |
+
TFDP1
|
| 745 |
+
TGFB3
|
| 746 |
+
TGFBR2
|
| 747 |
+
TIAM1
|
| 748 |
+
TIMP2
|
| 749 |
+
TJP1
|
| 750 |
+
TLE1
|
| 751 |
+
TLR4
|
| 752 |
+
TSPAN6
|
| 753 |
+
TSPAN4
|
| 754 |
+
TOP2A
|
| 755 |
+
TP53
|
| 756 |
+
TP53BP1
|
| 757 |
+
TP53BP2
|
| 758 |
+
TPD52L2
|
| 759 |
+
TPM1
|
| 760 |
+
C5
|
| 761 |
+
TXNRD1
|
| 762 |
+
UBE2A
|
| 763 |
+
UGDH
|
| 764 |
+
NR1H2
|
| 765 |
+
USP1
|
| 766 |
+
VDAC1
|
| 767 |
+
WFS1
|
| 768 |
+
XBP1
|
| 769 |
+
XPNPEP1
|
| 770 |
+
ZFP36
|
| 771 |
+
ZNF131
|
| 772 |
+
ZMYM2
|
| 773 |
+
DDR1
|
| 774 |
+
PAX8
|
| 775 |
+
CXCR4
|
| 776 |
+
IFRD2
|
| 777 |
+
MAPKAPK3
|
| 778 |
+
USP7
|
| 779 |
+
METRN
|
| 780 |
+
REEP5
|
| 781 |
+
ELOVL6
|
| 782 |
+
TMEM109
|
| 783 |
+
CCDC86
|
| 784 |
+
TRAPPC6A
|
| 785 |
+
CHAC1
|
| 786 |
+
MBOAT7
|
| 787 |
+
PRR15L
|
| 788 |
+
CRELD2
|
| 789 |
+
FSD1
|
| 790 |
+
TCTN1
|
| 791 |
+
CHMP6
|
| 792 |
+
NPEPL1
|
| 793 |
+
ST7
|
| 794 |
+
NUP85
|
| 795 |
+
TCEAL4
|
| 796 |
+
KAT6A
|
| 797 |
+
DHDDS
|
| 798 |
+
DENND2D
|
| 799 |
+
FBXO11
|
| 800 |
+
CCDC92
|
| 801 |
+
COASY
|
| 802 |
+
PDHX
|
| 803 |
+
FOSL1
|
| 804 |
+
TSEN2
|
| 805 |
+
PRR7
|
| 806 |
+
CALM3
|
| 807 |
+
HMGA2
|
| 808 |
+
CALU
|
| 809 |
+
ITFG1
|
| 810 |
+
GDPD5
|
| 811 |
+
NCOA3
|
| 812 |
+
NRIP1
|
| 813 |
+
CAPN1
|
| 814 |
+
SMC1A
|
| 815 |
+
LAGE3
|
| 816 |
+
CAST
|
| 817 |
+
AXIN1
|
| 818 |
+
CDC45
|
| 819 |
+
FZD1
|
| 820 |
+
FZD7
|
| 821 |
+
CASP2
|
| 822 |
+
CASP3
|
| 823 |
+
GRWD1
|
| 824 |
+
PIP4K2B
|
| 825 |
+
CASP7
|
| 826 |
+
ARID5B
|
| 827 |
+
CASP10
|
| 828 |
+
NCK2
|
| 829 |
+
DYRK3
|
| 830 |
+
DUSP11
|
| 831 |
+
TUBB6
|
| 832 |
+
CAT
|
| 833 |
+
PSRC1
|
| 834 |
+
RAE1
|
| 835 |
+
ADO
|
| 836 |
+
PIK3R3
|
| 837 |
+
NIPSNAP1
|
| 838 |
+
ELP1
|
| 839 |
+
HAT1
|
| 840 |
+
MICALL1
|
| 841 |
+
MAPKAPK5
|
| 842 |
+
BHLHE40
|
| 843 |
+
MKNK1
|
| 844 |
+
CASK
|
| 845 |
+
AKR7A2
|
| 846 |
+
RUVBL1
|
| 847 |
+
PSMG1
|
| 848 |
+
BECN1
|
| 849 |
+
CBLB
|
| 850 |
+
MBTPS1
|
| 851 |
+
EED
|
| 852 |
+
CTNNAL1
|
| 853 |
+
CBR1
|
| 854 |
+
RNMT
|
| 855 |
+
CBR3
|
| 856 |
+
PEX11A
|
| 857 |
+
CREG1
|
| 858 |
+
INPP4B
|
| 859 |
+
IQGAP1
|
| 860 |
+
SOCS2
|
| 861 |
+
CFLAR
|
| 862 |
+
CDK5R1
|
| 863 |
+
ST3GAL5
|
| 864 |
+
IER3
|
| 865 |
+
SQSTM1
|
| 866 |
+
SLC5A6
|
| 867 |
+
CPNE3
|
| 868 |
+
CCNA2
|
| 869 |
+
CCNA1
|
| 870 |
+
CCNB1
|
| 871 |
+
TIMELESS
|
| 872 |
+
CCND3
|
| 873 |
+
P4HA2
|
| 874 |
+
PLOD3
|
| 875 |
+
CCNF
|
| 876 |
+
UBE3B
|
| 877 |
+
NOL3
|
| 878 |
+
SLC25A14
|
| 879 |
+
MPZL1
|
| 880 |
+
CCNH
|
| 881 |
+
MAP7
|
| 882 |
+
JPT2
|
| 883 |
+
DNAJA3
|
| 884 |
+
USP14
|
| 885 |
+
MTA1
|
| 886 |
+
SLC25A46
|
| 887 |
+
PDLIM1
|
| 888 |
+
SMC3
|
| 889 |
+
PRPF4
|
| 890 |
+
CCNB2
|
| 891 |
+
CCNE2
|
| 892 |
+
SYNGR3
|
| 893 |
+
LPAR2
|
| 894 |
+
ARHGEF2
|
| 895 |
+
ZW10
|
| 896 |
+
COG7
|
| 897 |
+
AURKB
|
| 898 |
+
VAPB
|
| 899 |
+
NOLC1
|
| 900 |
+
UBE2L6
|
| 901 |
+
MAPKAPK2
|
| 902 |
+
CYTH1
|
| 903 |
+
ITGB1BP1
|
| 904 |
+
BCL7B
|
| 905 |
+
COPB2
|
| 906 |
+
ADGRG1
|
| 907 |
+
MAPK1IP1L
|
| 908 |
+
TBC1D31
|
| 909 |
+
TM9SF2
|
| 910 |
+
MAP4K4
|
| 911 |
+
HOMER2
|
| 912 |
+
SH3BP5
|
| 913 |
+
PIGB
|
| 914 |
+
SCARB1
|
| 915 |
+
PSMF1
|
| 916 |
+
SPTLC2
|
| 917 |
+
TBPL1
|
| 918 |
+
BAG3
|
| 919 |
+
POLR1C
|
| 920 |
+
SPAG7
|
| 921 |
+
CD40
|
| 922 |
+
CD44
|
| 923 |
+
FEZ2
|
| 924 |
+
IKBKE
|
| 925 |
+
CD58
|
| 926 |
+
MTFR1
|
| 927 |
+
HS2ST1
|
| 928 |
+
IPO13
|
| 929 |
+
VGLL4
|
| 930 |
+
NUP93
|
| 931 |
+
UBE3C
|
| 932 |
+
EDEM1
|
| 933 |
+
TRAM2
|
| 934 |
+
CEP57
|
| 935 |
+
HERPUD1
|
| 936 |
+
USP6NL
|
| 937 |
+
CCP110
|
| 938 |
+
ADGRE5
|
| 939 |
+
MLEC
|
| 940 |
+
TATDN2
|
| 941 |
+
MRPL19
|
| 942 |
+
SCRN1
|
| 943 |
+
EFCAB14
|
| 944 |
+
KEAP1
|
| 945 |
+
CDK1
|
| 946 |
+
MELK
|
| 947 |
+
PLEKHM1
|
| 948 |
+
C2CD5
|
| 949 |
+
KIAA0753
|
| 950 |
+
C2CD2L
|
| 951 |
+
TOMM70
|
| 952 |
+
WASHC5
|
| 953 |
+
KLHL21
|
| 954 |
+
CDC20
|
| 955 |
+
ARNT2
|
| 956 |
+
FAM20B
|
| 957 |
+
NCAPD2
|
| 958 |
+
PAN2
|
| 959 |
+
LPGAT1
|
| 960 |
+
KIF14
|
| 961 |
+
CDC25A
|
| 962 |
+
CDC25B
|
| 963 |
+
OXSR1
|
| 964 |
+
MVP
|
| 965 |
+
CDC42
|
| 966 |
+
DMTF1
|
LINCS2020/tahoe_gene_names.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRP-BBBC047-Bray/Step1_data_process.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRP-BBBC047-Bray/Step1_data_process_get_CP.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRP-BBBC047-Bray/Step2_align.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRP-BBBC047-Bray/Step3_aggreate_2modality.ipynb
ADDED
|
@@ -0,0 +1,476 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"## 数据聚合:「输入药物 SMILES,输出基因表达 + 细胞形态」的多模态虚拟细胞模型,配对不齐,训练集不均衡。\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"## 策略有3种:\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### 1 是按 SMILES 聚合,对每个 SMILES 在每个模态上 取平均或中位数(或更复杂的 embedding 聚合)。\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"### 2 是多实例学习(Multiple Instance Learning, MIL):思路:把一个 SMILES 的所有 replicate 当作一个 bag,模型学习 bag-level 对齐。\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"### 3 是不对齐 replicate,随机采样:思路:训练时,每个 batch 从两个模态中随机采样该 SMILES 的一个 replicate,逐步逼近两个分布。\n",
|
| 16 |
+
"\n",
|
| 17 |
+
"## 此处用1,最为简单"
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"cell_type": "code",
|
| 22 |
+
"execution_count": 1,
|
| 23 |
+
"metadata": {},
|
| 24 |
+
"outputs": [],
|
| 25 |
+
"source": [
|
| 26 |
+
"import numpy as np\n",
|
| 27 |
+
"import pandas as pd\n",
|
| 28 |
+
"import matplotlib.pyplot as plt\n",
|
| 29 |
+
"import seaborn as sns\n",
|
| 30 |
+
"import os\n",
|
| 31 |
+
"import h5py\n",
|
| 32 |
+
"\n",
|
| 33 |
+
"def load_from_HDF(fname):\n",
|
| 34 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 35 |
+
" data = dict()\n",
|
| 36 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 37 |
+
" for key in f:\n",
|
| 38 |
+
" data[key] = np.asarray(f[key])\n",
|
| 39 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 40 |
+
" data[key] = data[key].astype(str)\n",
|
| 41 |
+
" return data\n"
|
| 42 |
+
]
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"cell_type": "code",
|
| 46 |
+
"execution_count": 2,
|
| 47 |
+
"metadata": {},
|
| 48 |
+
"outputs": [],
|
| 49 |
+
"source": [
|
| 50 |
+
"root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 51 |
+
"\n",
|
| 52 |
+
"CP_path = root + './Processed_Paired_CP.h5'\n",
|
| 53 |
+
"GE_path = root + './Processed_Paired_GE.h5'\n",
|
| 54 |
+
"\n",
|
| 55 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 56 |
+
"GE_CSV = load_from_HDF(GE_path)"
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"cell_type": "code",
|
| 61 |
+
"execution_count": 3,
|
| 62 |
+
"metadata": {},
|
| 63 |
+
"outputs": [
|
| 64 |
+
{
|
| 65 |
+
"data": {
|
| 66 |
+
"text/plain": [
|
| 67 |
+
"(86796, 745)"
|
| 68 |
+
]
|
| 69 |
+
},
|
| 70 |
+
"execution_count": 3,
|
| 71 |
+
"metadata": {},
|
| 72 |
+
"output_type": "execute_result"
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"source": [
|
| 76 |
+
"CP_CSV['target'].shape"
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"cell_type": "code",
|
| 81 |
+
"execution_count": 4,
|
| 82 |
+
"metadata": {},
|
| 83 |
+
"outputs": [
|
| 84 |
+
{
|
| 85 |
+
"name": "stderr",
|
| 86 |
+
"output_type": "stream",
|
| 87 |
+
"text": [
|
| 88 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:118: RuntimeWarning: invalid value encountered in reduce\n",
|
| 89 |
+
" ret = umr_sum(arr, axis, dtype, out, keepdims, where=where)\n",
|
| 90 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:152: RuntimeWarning: invalid value encountered in reduce\n",
|
| 91 |
+
" arrmean = umr_sum(arr, axis, dtype, keepdims=True, where=where)\n",
|
| 92 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:173: RuntimeWarning: invalid value encountered in subtract\n",
|
| 93 |
+
" x = asanyarray(arr - arrmean)\n",
|
| 94 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:118: RuntimeWarning: invalid value encountered in reduce\n",
|
| 95 |
+
" ret = umr_sum(arr, axis, dtype, out, keepdims, where=where)\n",
|
| 96 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:152: RuntimeWarning: invalid value encountered in reduce\n",
|
| 97 |
+
" arrmean = umr_sum(arr, axis, dtype, keepdims=True, where=where)\n",
|
| 98 |
+
"/home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/numpy/core/_methods.py:173: RuntimeWarning: invalid value encountered in subtract\n",
|
| 99 |
+
" x = asanyarray(arr - arrmean)\n"
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "stdout",
|
| 104 |
+
"output_type": "stream",
|
| 105 |
+
"text": [
|
| 106 |
+
">>> 前 10 列明细 <<<\n",
|
| 107 |
+
" set col min max mean std\n",
|
| 108 |
+
"control 0 -0.003959 0.078018 0.024671 0.013316\n",
|
| 109 |
+
"control 1 -0.039080 0.070839 -0.008352 0.008747\n",
|
| 110 |
+
"control 2 -0.078927 0.220322 -0.003043 0.016821\n",
|
| 111 |
+
"control 3 -0.015957 0.186684 0.053808 0.031368\n",
|
| 112 |
+
"control 4 -0.011257 0.261045 0.047642 0.031550\n",
|
| 113 |
+
"control 5 -0.063300 0.086711 -0.000350 0.011541\n",
|
| 114 |
+
"control 6 -0.046063 0.093030 -0.015935 0.011592\n",
|
| 115 |
+
"control 7 -0.013254 0.019495 -0.001661 0.003557\n",
|
| 116 |
+
"control 8 -0.061549 0.004743 -0.017370 0.011673\n",
|
| 117 |
+
"control 9 -0.032541 0.013303 0.000285 0.003969\n",
|
| 118 |
+
" target 0 -1.313544 20.910727 0.110194 0.240215\n",
|
| 119 |
+
" target 1 -3.000090 5.296432 -0.042150 0.181244\n",
|
| 120 |
+
" target 2 -3.415679 5.304324 0.027545 0.308696\n",
|
| 121 |
+
" target 3 -3.018066 40.497417 0.149676 0.529733\n",
|
| 122 |
+
" target 4 -3.267396 130.057816 0.086563 0.833441\n",
|
| 123 |
+
" target 5 -8.066486 3.052383 0.010240 0.222079\n",
|
| 124 |
+
" target 6 -2.858146 3.832927 -0.080404 0.217838\n",
|
| 125 |
+
" target 7 -1.747062 2.119149 -0.017756 0.084344\n",
|
| 126 |
+
" target 8 -5.563820 1.317170 -0.092266 0.185681\n",
|
| 127 |
+
" target 9 -2.521358 2.361632 0.007691 0.096224\n",
|
| 128 |
+
"\n",
|
| 129 |
+
">>> 全局信息 <<<\n",
|
| 130 |
+
"全局最小值 : inf\n",
|
| 131 |
+
"全局最大值 : -inf\n",
|
| 132 |
+
"动态范围 : -inf\n",
|
| 133 |
+
"\n",
|
| 134 |
+
">>> 可能异常列(max > μ+3σ 或 min < μ-3σ)<<<\n",
|
| 135 |
+
"[('control', 0), ('control', 1), ('control', 2), ('control', 3), ('control', 4), ('control', 5), ('control', 6), ('control', 7), ('control', 8), ('control', 9), ('control', 10), ('control', 11), ('control', 12), ('control', 13), ('control', 14), ('control', 15), ('control', 16), ('control', 17), ('control', 18), ('control', 19), ('control', 20), ('control', 21), ('control', 22), ('control', 23), ('control', 24), ('control', 25), ('control', 26), ('control', 27), ('control', 28), ('control', 29), ('control', 30), ('control', 31), ('control', 32), ('control', 33), ('control', 34), ('control', 35), ('control', 42), ('control', 43), ('control', 44), ('control', 45), ('control', 46), ('control', 47), ('control', 48), ('control', 49), ('control', 50), ('control', 51), ('control', 54), ('control', 55), ('control', 56), ('control', 57), ('control', 58), ('control', 59), ('control', 60), ('control', 61), ('control', 62), ('control', 63), ('control', 64), ('control', 65), ('control', 66), ('control', 67), ('control', 68), ('control', 69), ('control', 70), ('control', 71), ('control', 72), ('control', 73), ('control', 74), ('control', 75), ('control', 76), ('control', 77), ('control', 78), ('control', 79), ('control', 80), ('control', 81), ('control', 82), ('control', 83), ('control', 84), ('control', 85), ('control', 86), ('control', 87), ('control', 88), ('control', 89), ('control', 90), ('control', 93), ('control', 94), ('control', 95), ('control', 96), ('control', 97), ('control', 98), ('control', 99), ('control', 100), ('control', 101), ('control', 102), ('control', 103), ('control', 104), ('control', 105), ('control', 106), ('control', 107), ('control', 108), ('control', 109), ('control', 110), ('control', 111), ('control', 112), ('control', 113), ('control', 114), ('control', 115), ('control', 116), ('control', 117), ('control', 118), ('control', 119), ('control', 120), ('control', 121), ('control', 122), ('control', 123), ('control', 124), ('control', 125), ('control', 126), ('control', 127), ('control', 128), ('control', 129), ('control', 130), ('control', 131), ('control', 132), ('control', 133), ('control', 134), ('control', 135), ('control', 137), ('control', 138), ('control', 139), ('control', 140), ('control', 141), ('control', 142), ('control', 143), ('control', 144), ('control', 145), ('control', 146), ('control', 147), ('control', 148), ('control', 149), ('control', 150), ('control', 151), ('control', 152), ('control', 153), ('control', 154), ('control', 155), ('control', 156), ('control', 157), ('control', 158), ('control', 159), ('control', 160), ('control', 161), ('control', 162), ('control', 163), ('control', 164), ('control', 165), ('control', 166), ('control', 167), ('control', 168), ('control', 169), ('control', 170), ('control', 171), ('control', 172), ('control', 173), ('control', 174), ('control', 175), ('control', 176), ('control', 177), ('control', 178), ('control', 179), ('control', 180), ('control', 181), ('control', 182), ('control', 183), ('control', 184), ('control', 185), ('control', 186), ('control', 187), ('control', 188), ('control', 189), ('control', 190), ('control', 191), ('control', 192), ('control', 193), ('control', 194), ('control', 195), ('control', 196), ('control', 197), ('control', 198), ('control', 199), ('control', 200), ('control', 201), ('control', 202), ('control', 203), ('control', 204), ('control', 205), ('control', 206), ('control', 207), ('control', 208), ('control', 210), ('control', 211), ('control', 212), ('control', 213), ('control', 214), ('control', 215), ('control', 216), ('control', 217), ('control', 218), ('control', 219), ('control', 220), ('control', 221), ('control', 222), ('control', 223), ('control', 224), ('control', 225), ('control', 226), ('control', 227), ('control', 228), ('control', 229), ('control', 230), ('control', 231), ('control', 232), ('control', 233), ('control', 234), ('control', 235), ('control', 236), ('control', 237), ('control', 238), ('control', 239), ('control', 240), ('control', 241), ('control', 242), ('control', 243), ('control', 244), ('control', 245), ('control', 246), ('control', 247), ('control', 248), ('control', 249), ('control', 257), ('control', 258), ('control', 259), ('control', 260), ('control', 261), ('control', 262), ('control', 263), ('control', 264), ('control', 265), ('control', 266), ('control', 267), ('control', 268), ('control', 269), ('control', 270), ('control', 271), ('control', 272), ('control', 273), ('control', 274), ('control', 275), ('control', 276), ('control', 277), ('control', 278), ('control', 279), ('control', 280), ('control', 281), ('control', 282), ('control', 283), ('control', 284), ('control', 286), ('control', 287), ('control', 288), ('control', 289), ('control', 290), ('control', 292), ('control', 293), ('control', 294), ('control', 295), ('control', 296), ('control', 297), ('control', 310), ('control', 311), ('control', 312), ('control', 313), ('control', 314), ('control', 315), ('control', 316), ('control', 317), ('control', 318), ('control', 319), ('control', 320), ('control', 321), ('control', 322), ('control', 323), ('control', 324), ('control', 325), ('control', 326), ('control', 327), ('control', 328), ('control', 329), ('control', 330), ('control', 332), ('control', 333), ('control', 334), ('control', 336), ('control', 339), ('control', 340), ('control', 341), ('control', 342), ('control', 343), ('control', 344), ('control', 345), ('control', 346), ('control', 347), ('control', 348), ('control', 349), ('control', 350), ('control', 351), ('control', 352), ('control', 353), ('control', 354), ('control', 355), ('control', 356), ('control', 357), ('control', 358), ('control', 359), ('control', 360), ('control', 361), ('control', 362), ('control', 363), ('control', 364), ('control', 365), ('control', 366), ('control', 367), ('control', 368), ('control', 369), ('control', 370), ('control', 371), ('control', 372), ('control', 373), ('control', 374), ('control', 375), ('control', 376), ('control', 377), ('control', 378), ('control', 379), ('control', 380), ('control', 381), ('control', 382), ('control', 383), ('control', 384), ('control', 385), ('control', 386), ('control', 387), ('control', 388), ('control', 389), ('control', 390), ('control', 391), ('control', 392), ('control', 393), ('control', 394), ('control', 395), ('control', 396), ('control', 397), ('control', 398), ('control', 399), ('control', 400), ('control', 401), ('control', 402), ('control', 403), ('control', 404), ('control', 405), ('control', 406), ('control', 407), ('control', 408), ('control', 409), ('control', 410), ('control', 411), ('control', 412), ('control', 413), ('control', 414), ('control', 415), ('control', 416), ('control', 417), ('control', 418), ('control', 419), ('control', 420), ('control', 421), ('control', 422), ('control', 423), ('control', 424), ('control', 425), ('control', 426), ('control', 427), ('control', 428), ('control', 429), ('control', 430), ('control', 431), ('control', 432), ('control', 433), ('control', 434), ('control', 435), ('control', 436), ('control', 437), ('control', 438), ('control', 439), ('control', 440), ('control', 441), ('control', 442), ('control', 443), ('control', 444), ('control', 445), ('control', 446), ('control', 447), ('control', 448), ('control', 449), ('control', 450), ('control', 451), ('control', 452), ('control', 453), ('control', 454), ('control', 455), ('control', 456), ('control', 457), ('control', 458), ('control', 459), ('control', 460), ('control', 461), ('control', 462), ('control', 463), ('control', 464), ('control', 465), ('control', 466), ('control', 467), ('control', 468), ('control', 469), ('control', 470), ('control', 471), ('control', 472), ('control', 473), ('control', 474), ('control', 475), ('control', 476), ('control', 477), ('control', 478), ('control', 479), ('control', 480), ('control', 481), ('control', 482), ('control', 483), ('control', 484), ('control', 485), ('control', 486), ('control', 487), ('control', 488), ('control', 489), ('control', 490), ('control', 491), ('control', 492), ('control', 493), ('control', 494), ('control', 495), ('control', 496), ('control', 497), ('control', 498), ('control', 499), ('control', 500), ('control', 501), ('control', 502), ('control', 503), ('control', 504), ('control', 505), ('control', 506), ('control', 507), ('control', 508), ('control', 509), ('control', 510), ('control', 511), ('control', 512), ('control', 513), ('control', 514), ('control', 515), ('control', 516), ('control', 517), ('control', 518), ('control', 519), ('control', 520), ('control', 521), ('control', 522), ('control', 523), ('control', 524), ('control', 525), ('control', 526), ('control', 527), ('control', 528), ('control', 529), ('control', 530), ('control', 531), ('control', 533), ('control', 534), ('control', 535), ('control', 536), ('control', 537), ('control', 538), ('control', 539), ('control', 540), ('control', 541), ('control', 542), ('control', 543), ('control', 544), ('control', 545), ('control', 546), ('control', 547), ('control', 548), ('control', 549), ('control', 550), ('control', 551), ('control', 552), ('control', 553), ('control', 554), ('control', 555), ('control', 556), ('control', 557), ('control', 558), ('control', 559), ('control', 560), ('control', 561), ('control', 563), ('control', 566), ('control', 567), ('control', 568), ('control', 569), ('control', 570), ('control', 571), ('control', 572), ('control', 573), ('control', 574), ('control', 575), ('control', 576), ('control', 577), ('control', 578), ('control', 579), ('control', 580), ('control', 581), ('control', 582), ('control', 583), ('control', 584), ('control', 585), ('control', 586), ('control', 587), ('control', 588), ('control', 589), ('control', 590), ('control', 591), ('control', 592), ('control', 593), ('control', 594), ('control', 595), ('control', 596), ('control', 597), ('control', 598), ('control', 599), ('control', 600), ('control', 601), ('control', 602), ('control', 603), ('control', 604), ('control', 605), ('control', 606), ('control', 607), ('control', 608), ('control', 609), ('control', 610), ('control', 611), ('control', 612), ('control', 613), ('control', 614), ('control', 615), ('control', 616), ('control', 617), ('control', 618), ('control', 619), ('control', 620), ('control', 621), ('control', 622), ('control', 623), ('control', 624), ('control', 625), ('control', 626), ('control', 627), ('control', 628), ('control', 629), ('control', 630), ('control', 631), ('control', 632), ('control', 633), ('control', 634), ('control', 635), ('control', 636), ('control', 637), ('control', 638), ('control', 639), ('control', 640), ('control', 641), ('control', 642), ('control', 643), ('control', 644), ('control', 645), ('control', 646), ('control', 647), ('control', 648), ('control', 649), ('control', 650), ('control', 651), ('control', 652), ('control', 653), ('control', 654), ('control', 655), ('control', 656), ('control', 657), ('control', 658), ('control', 659), ('control', 660), ('control', 661), ('control', 662), ('control', 663), ('control', 664), ('control', 665), ('control', 666), ('control', 667), ('control', 668), ('control', 669), ('control', 670), ('control', 671), ('control', 672), ('control', 673), ('control', 674), ('control', 675), ('control', 676), ('control', 677), ('control', 678), ('control', 679), ('control', 680), ('control', 681), ('control', 682), ('control', 683), ('control', 684), ('control', 685), ('control', 686), ('control', 687), ('control', 688), ('control', 689), ('control', 690), ('control', 691), ('control', 692), ('control', 693), ('control', 694), ('control', 695), ('control', 696), ('control', 697), ('control', 698), ('control', 699), ('control', 700), ('control', 701), ('control', 702), ('control', 703), ('control', 704), ('control', 705), ('control', 706), ('control', 707), ('control', 708), ('control', 709), ('control', 710), ('control', 711), ('control', 712), ('control', 713), ('control', 714), ('control', 716), ('control', 717), ('control', 718), ('control', 719), ('control', 720), ('control', 721), ('control', 722), ('control', 723), ('control', 724), ('control', 725), ('control', 726), ('control', 727), ('control', 728), ('control', 729), ('control', 730), ('control', 731), ('control', 732), ('control', 733), ('control', 734), ('control', 735), ('control', 736), ('control', 737), ('control', 738), ('control', 739), ('control', 740), ('control', 741), ('control', 742), ('control', 743), ('control', 744), ('target', 0), ('target', 1), ('target', 2), ('target', 3), ('target', 4), ('target', 5), ('target', 6), ('target', 7), ('target', 8), ('target', 9), ('target', 10), ('target', 11), ('target', 12), ('target', 13), ('target', 14), ('target', 15), ('target', 16), ('target', 17), ('target', 18), ('target', 19), ('target', 20), ('target', 21), ('target', 22), ('target', 23), ('target', 24), ('target', 25), ('target', 26), ('target', 27), ('target', 28), ('target', 29), ('target', 30), ('target', 31), ('target', 32), ('target', 33), ('target', 34), ('target', 35), ('target', 42), ('target', 43), ('target', 44), ('target', 45), ('target', 46), ('target', 47), ('target', 48), ('target', 49), ('target', 50), ('target', 51), ('target', 54), ('target', 55), ('target', 56), ('target', 57), ('target', 58), ('target', 59), ('target', 60), ('target', 61), ('target', 62), ('target', 63), ('target', 64), ('target', 65), ('target', 66), ('target', 67), ('target', 68), ('target', 69), ('target', 70), ('target', 71), ('target', 72), ('target', 73), ('target', 74), ('target', 75), ('target', 76), ('target', 77), ('target', 78), ('target', 79), ('target', 80), ('target', 81), ('target', 82), ('target', 83), ('target', 84), ('target', 85), ('target', 86), ('target', 87), ('target', 88), ('target', 89), ('target', 90), ('target', 94), ('target', 95), ('target', 96), ('target', 97), ('target', 98), ('target', 99), ('target', 100), ('target', 101), ('target', 102), ('target', 103), ('target', 104), ('target', 105), ('target', 106), ('target', 107), ('target', 108), ('target', 109), ('target', 110), ('target', 111), ('target', 112), ('target', 113), ('target', 114), ('target', 115), ('target', 116), ('target', 117), ('target', 118), ('target', 119), ('target', 120), ('target', 121), ('target', 122), ('target', 123), ('target', 124), ('target', 125), ('target', 126), ('target', 127), ('target', 128), ('target', 129), ('target', 130), ('target', 131), ('target', 132), ('target', 133), ('target', 134), ('target', 135), ('target', 136), ('target', 137), ('target', 138), ('target', 139), ('target', 140), ('target', 141), ('target', 142), ('target', 143), ('target', 144), ('target', 145), ('target', 146), ('target', 147), ('target', 148), ('target', 149), ('target', 150), ('target', 151), ('target', 152), ('target', 153), ('target', 154), ('target', 155), ('target', 156), ('target', 157), ('target', 158), ('target', 159), ('target', 160), ('target', 161), ('target', 162), ('target', 163), ('target', 164), ('target', 165), ('target', 166), ('target', 167), ('target', 168), ('target', 169), ('target', 170), ('target', 171), ('target', 172), ('target', 173), ('target', 174), ('target', 175), ('target', 176), ('target', 177), ('target', 178), ('target', 179), ('target', 180), ('target', 181), ('target', 182), ('target', 183), ('target', 184), ('target', 185), ('target', 186), ('target', 187), ('target', 188), ('target', 189), ('target', 190), ('target', 191), ('target', 192), ('target', 193), ('target', 194), ('target', 195), ('target', 196), ('target', 197), ('target', 198), ('target', 199), ('target', 200), ('target', 201), ('target', 202), ('target', 203), ('target', 204), ('target', 205), ('target', 206), ('target', 207), ('target', 208), ('target', 209), ('target', 210), ('target', 211), ('target', 212), ('target', 213), ('target', 214), ('target', 215), ('target', 216), ('target', 217), ('target', 218), ('target', 219), ('target', 220), ('target', 221), ('target', 222), ('target', 223), ('target', 224), ('target', 225), ('target', 226), ('target', 227), ('target', 228), ('target', 229), ('target', 230), ('target', 231), ('target', 232), ('target', 233), ('target', 234), ('target', 235), ('target', 236), ('target', 237), ('target', 238), ('target', 239), ('target', 240), ('target', 241), ('target', 242), ('target', 243), ('target', 244), ('target', 245), ('target', 246), ('target', 247), ('target', 248), ('target', 249), ('target', 257), ('target', 258), ('target', 259), ('target', 260), ('target', 261), ('target', 262), ('target', 263), ('target', 264), ('target', 265), ('target', 266), ('target', 267), ('target', 268), ('target', 269), ('target', 270), ('target', 271), ('target', 272), ('target', 273), ('target', 274), ('target', 275), ('target', 276), ('target', 277), ('target', 278), ('target', 279), ('target', 280), ('target', 281), ('target', 282), ('target', 283), ('target', 284), ('target', 286), ('target', 287), ('target', 288), ('target', 289), ('target', 290), ('target', 292), ('target', 293), ('target', 294), ('target', 295), ('target', 296), ('target', 297), ('target', 310), ('target', 311), ('target', 312), ('target', 313), ('target', 314), ('target', 315), ('target', 316), ('target', 317), ('target', 318), ('target', 319), ('target', 320), ('target', 321), ('target', 322), ('target', 323), ('target', 324), ('target', 325), ('target', 326), ('target', 327), ('target', 328), ('target', 329), ('target', 330), ('target', 332), ('target', 333), ('target', 334), ('target', 336), ('target', 337), ('target', 339), ('target', 340), ('target', 341), ('target', 342), ('target', 343), ('target', 344), ('target', 345), ('target', 346), ('target', 347), ('target', 348), ('target', 349), ('target', 350), ('target', 351), ('target', 352), ('target', 353), ('target', 354), ('target', 355), ('target', 356), ('target', 357), ('target', 358), ('target', 359), ('target', 360), ('target', 361), ('target', 362), ('target', 363), ('target', 364), ('target', 365), ('target', 366), ('target', 367), ('target', 368), ('target', 369), ('target', 370), ('target', 371), ('target', 372), ('target', 373), ('target', 374), ('target', 375), ('target', 376), ('target', 377), ('target', 378), ('target', 379), ('target', 380), ('target', 381), ('target', 382), ('target', 384), ('target', 385), ('target', 386), ('target', 388), ('target', 389), ('target', 391), ('target', 392), ('target', 393), ('target', 394), ('target', 395), ('target', 396), ('target', 397), ('target', 398), ('target', 399), ('target', 400), ('target', 401), ('target', 402), ('target', 403), ('target', 404), ('target', 405), ('target', 406), ('target', 407), ('target', 408), ('target', 409), ('target', 410), ('target', 411), ('target', 412), ('target', 413), ('target', 414), ('target', 415), ('target', 416), ('target', 417), ('target', 418), ('target', 419), ('target', 420), ('target', 421), ('target', 422), ('target', 423), ('target', 424), ('target', 425), ('target', 426), ('target', 427), ('target', 428), ('target', 429), ('target', 430), ('target', 431), ('target', 432), ('target', 433), ('target', 434), ('target', 435), ('target', 436), ('target', 437), ('target', 438), ('target', 439), ('target', 440), ('target', 441), ('target', 442), ('target', 443), ('target', 444), ('target', 445), ('target', 446), ('target', 447), ('target', 448), ('target', 449), ('target', 450), ('target', 451), ('target', 452), ('target', 453), ('target', 454), ('target', 455), ('target', 456), ('target', 457), ('target', 458), ('target', 459), ('target', 460), ('target', 461), ('target', 462), ('target', 463), ('target', 464), ('target', 465), ('target', 466), ('target', 467), ('target', 468), ('target', 469), ('target', 470), ('target', 471), ('target', 472), ('target', 473), ('target', 474), ('target', 475), ('target', 476), ('target', 477), ('target', 478), ('target', 479), ('target', 480), ('target', 481), ('target', 482), ('target', 483), ('target', 484), ('target', 485), ('target', 486), ('target', 487), ('target', 488), ('target', 489), ('target', 490), ('target', 491), ('target', 492), ('target', 493), ('target', 494), ('target', 495), ('target', 496), ('target', 497), ('target', 498), ('target', 499), ('target', 500), ('target', 501), ('target', 502), ('target', 503), ('target', 504), ('target', 505), ('target', 506), ('target', 507), ('target', 508), ('target', 509), ('target', 510), ('target', 511), ('target', 512), ('target', 513), ('target', 514), ('target', 515), ('target', 516), ('target', 517), ('target', 518), ('target', 519), ('target', 520), ('target', 521), ('target', 522), ('target', 523), ('target', 524), ('target', 525), ('target', 526), ('target', 527), ('target', 528), ('target', 529), ('target', 530), ('target', 531), ('target', 533), ('target', 534), ('target', 535), ('target', 536), ('target', 537), ('target', 538), ('target', 539), ('target', 540), ('target', 541), ('target', 542), ('target', 543), ('target', 544), ('target', 545), ('target', 546), ('target', 547), ('target', 548), ('target', 549), ('target', 550), ('target', 551), ('target', 552), ('target', 553), ('target', 554), ('target', 555), ('target', 556), ('target', 557), ('target', 558), ('target', 559), ('target', 560), ('target', 561), ('target', 563), ('target', 566), ('target', 567), ('target', 568), ('target', 569), ('target', 570), ('target', 571), ('target', 572), ('target', 573), ('target', 574), ('target', 575), ('target', 576), ('target', 577), ('target', 578), ('target', 579), ('target', 580), ('target', 581), ('target', 582), ('target', 583), ('target', 584), ('target', 585), ('target', 586), ('target', 587), ('target', 588), ('target', 589), ('target', 590), ('target', 591), ('target', 592), ('target', 593), ('target', 594), ('target', 595), ('target', 596), ('target', 597), ('target', 598), ('target', 599), ('target', 600), ('target', 601), ('target', 602), ('target', 603), ('target', 604), ('target', 605), ('target', 606), ('target', 607), ('target', 608), ('target', 609), ('target', 610), ('target', 611), ('target', 612), ('target', 613), ('target', 614), ('target', 615), ('target', 616), ('target', 617), ('target', 618), ('target', 619), ('target', 620), ('target', 621), ('target', 622), ('target', 623), ('target', 624), ('target', 625), ('target', 626), ('target', 627), ('target', 628), ('target', 629), ('target', 630), ('target', 631), ('target', 632), ('target', 633), ('target', 634), ('target', 635), ('target', 636), ('target', 637), ('target', 638), ('target', 639), ('target', 640), ('target', 641), ('target', 642), ('target', 643), ('target', 644), ('target', 645), ('target', 646), ('target', 647), ('target', 648), ('target', 649), ('target', 650), ('target', 651), ('target', 652), ('target', 653), ('target', 654), ('target', 655), ('target', 656), ('target', 657), ('target', 658), ('target', 659), ('target', 660), ('target', 661), ('target', 662), ('target', 663), ('target', 664), ('target', 665), ('target', 666), ('target', 667), ('target', 668), ('target', 669), ('target', 670), ('target', 671), ('target', 672), ('target', 673), ('target', 674), ('target', 675), ('target', 676), ('target', 677), ('target', 678), ('target', 679), ('target', 680), ('target', 681), ('target', 682), ('target', 683), ('target', 684), ('target', 685), ('target', 686), ('target', 687), ('target', 688), ('target', 689), ('target', 690), ('target', 691), ('target', 692), ('target', 693), ('target', 694), ('target', 695), ('target', 696), ('target', 697), ('target', 698), ('target', 699), ('target', 700), ('target', 701), ('target', 702), ('target', 703), ('target', 704), ('target', 705), ('target', 706), ('target', 707), ('target', 708), ('target', 709), ('target', 710), ('target', 711), ('target', 712), ('target', 713), ('target', 714), ('target', 715), ('target', 716), ('target', 717), ('target', 718), ('target', 719), ('target', 720), ('target', 721), ('target', 722), ('target', 723), ('target', 724), ('target', 725), ('target', 726), ('target', 727), ('target', 728), ('target', 729), ('target', 730), ('target', 731), ('target', 732), ('target', 733), ('target', 734), ('target', 735), ('target', 736), ('target', 737), ('target', 738), ('target', 739), ('target', 740), ('target', 741), ('target', 742), ('target', 743), ('target', 744)]\n"
|
| 136 |
+
]
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"source": [
|
| 140 |
+
"import numpy as np\n",
|
| 141 |
+
"import pandas as pd\n",
|
| 142 |
+
"\n",
|
| 143 |
+
"def scan_range(dic, keys=('control', 'target'), head=10):\n",
|
| 144 |
+
" \"\"\"\n",
|
| 145 |
+
" 快速扫描字典中指定 key 的数值范围\n",
|
| 146 |
+
" dic : dict{'control':(N,745), 'target':(N,745), ...}\n",
|
| 147 |
+
" head: 只打印前 head 列,省屏;想看全部设 745\n",
|
| 148 |
+
" \"\"\"\n",
|
| 149 |
+
" stats = [] # 收集每列统计\n",
|
| 150 |
+
" global_min, global_max = np.inf, -np.inf\n",
|
| 151 |
+
"\n",
|
| 152 |
+
" for k in keys:\n",
|
| 153 |
+
" X = dic[k]\n",
|
| 154 |
+
" amin = X.min(axis=0) # (745,)\n",
|
| 155 |
+
" amax = X.max(axis=0)\n",
|
| 156 |
+
" mean = X.mean(axis=0)\n",
|
| 157 |
+
" std = X.std(axis=0)\n",
|
| 158 |
+
" global_min = min(global_min, amin.min())\n",
|
| 159 |
+
" global_max = max(global_max, amax.max())\n",
|
| 160 |
+
"\n",
|
| 161 |
+
" # 前 head 列明细\n",
|
| 162 |
+
" for c in range(min(head, X.shape[1])):\n",
|
| 163 |
+
" stats.append({'set':k, 'col':c,\n",
|
| 164 |
+
" 'min':amin[c], 'max':amax[c],\n",
|
| 165 |
+
" 'mean':mean[c], 'std':std[c]})\n",
|
| 166 |
+
"\n",
|
| 167 |
+
" df = pd.DataFrame(stats)\n",
|
| 168 |
+
" print('>>> 前 {} 列明细 <<<'.format(head))\n",
|
| 169 |
+
" print(df.to_string(index=False))\n",
|
| 170 |
+
"\n",
|
| 171 |
+
" print('\\n>>> 全局信息 <<<')\n",
|
| 172 |
+
" print('全局最小值 :', global_min)\n",
|
| 173 |
+
" print('全局最大值 :', global_max)\n",
|
| 174 |
+
" print('动态范围 :', global_max - global_min)\n",
|
| 175 |
+
"\n",
|
| 176 |
+
" # 3σ 异常列检测(任意 set 中只要有一列异常就报)\n",
|
| 177 |
+
" print('\\n>>> 可能异常列(max > μ+3σ 或 min < μ-3σ)<<<')\n",
|
| 178 |
+
" abnormal = []\n",
|
| 179 |
+
" for k in keys:\n",
|
| 180 |
+
" X = dic[k]\n",
|
| 181 |
+
" mean = X.mean(axis=0)\n",
|
| 182 |
+
" std = X.std(axis=0)\n",
|
| 183 |
+
" amin, amax = X.min(axis=0), X.max(axis=0)\n",
|
| 184 |
+
" mask = (amax > mean + 3*std) | (amin < mean - 3*std)\n",
|
| 185 |
+
" if mask.any():\n",
|
| 186 |
+
" cols = np.where(mask)[0]\n",
|
| 187 |
+
" abnormal.extend([(k, int(c)) for c in cols])\n",
|
| 188 |
+
" if abnormal:\n",
|
| 189 |
+
" print(abnormal)\n",
|
| 190 |
+
" else:\n",
|
| 191 |
+
" print('无异常列')\n",
|
| 192 |
+
"\n",
|
| 193 |
+
"# -------------- 运行 --------------\n",
|
| 194 |
+
"scan_range(CP_CSV, keys=('control', 'target'), head=10)"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"cell_type": "code",
|
| 199 |
+
"execution_count": 5,
|
| 200 |
+
"metadata": {},
|
| 201 |
+
"outputs": [
|
| 202 |
+
{
|
| 203 |
+
"name": "stdout",
|
| 204 |
+
"output_type": "stream",
|
| 205 |
+
"text": [
|
| 206 |
+
"control → 均值绝对最大值: nan\n",
|
| 207 |
+
"control → 标准差最大值: nan\n",
|
| 208 |
+
"target → 均值绝对最大值: nan\n",
|
| 209 |
+
"target → 标准差最大值: nan\n"
|
| 210 |
+
]
|
| 211 |
+
}
|
| 212 |
+
],
|
| 213 |
+
"source": [
|
| 214 |
+
"for k in ('control', 'target'):\n",
|
| 215 |
+
" X = CP_CSV[k]\n",
|
| 216 |
+
" print(k, '→ 均值绝对最大值:', np.abs(X.mean(axis=0)).max())\n",
|
| 217 |
+
" print(k, '→ 标准差最大值:', X.std(axis=0).max())"
|
| 218 |
+
]
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"cell_type": "code",
|
| 222 |
+
"execution_count": null,
|
| 223 |
+
"metadata": {},
|
| 224 |
+
"outputs": [],
|
| 225 |
+
"source": []
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"cell_type": "code",
|
| 229 |
+
"execution_count": 6,
|
| 230 |
+
"metadata": {},
|
| 231 |
+
"outputs": [
|
| 232 |
+
{
|
| 233 |
+
"name": "stderr",
|
| 234 |
+
"output_type": "stream",
|
| 235 |
+
"text": [
|
| 236 |
+
"/tmp/ipykernel_207036/3124577792.py:19: RuntimeWarning: Mean of empty slice\n",
|
| 237 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 238 |
+
"/tmp/ipykernel_207036/3124577792.py:19: RuntimeWarning: Mean of empty slice\n",
|
| 239 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n"
|
| 240 |
+
]
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"name": "stdout",
|
| 244 |
+
"output_type": "stream",
|
| 245 |
+
"text": [
|
| 246 |
+
"✅ 聚合后的数据已保存到 /home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/./Aggregated_CP_GE.h5,所有 NaN 已处理为 0.0\n"
|
| 247 |
+
]
|
| 248 |
+
}
|
| 249 |
+
],
|
| 250 |
+
"source": [
|
| 251 |
+
"import h5py\n",
|
| 252 |
+
"import numpy as np\n",
|
| 253 |
+
"import pandas as pd\n",
|
| 254 |
+
"\n",
|
| 255 |
+
"def aggregate_modalities(CP, GE, out_path):\n",
|
| 256 |
+
" # 转成 DataFrame 方便聚合\n",
|
| 257 |
+
" CP_df = pd.DataFrame({\n",
|
| 258 |
+
" \"SMILES\": CP[\"canonical_smiles\"],\n",
|
| 259 |
+
" \"control\": list(CP[\"control\"]),\n",
|
| 260 |
+
" \"target\": list(CP[\"target\"])\n",
|
| 261 |
+
" })\n",
|
| 262 |
+
" GE_df = pd.DataFrame({\n",
|
| 263 |
+
" \"SMILES\": GE[\"canonical_smiles\"],\n",
|
| 264 |
+
" \"control\": list(GE[\"control\"]),\n",
|
| 265 |
+
" \"target\": list(GE[\"target\"])\n",
|
| 266 |
+
" })\n",
|
| 267 |
+
"\n",
|
| 268 |
+
" # groupby + mean pooling\n",
|
| 269 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 270 |
+
" GE_grouped = GE_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 271 |
+
"\n",
|
| 272 |
+
" # merge 保证对齐\n",
|
| 273 |
+
" merged = pd.merge(CP_grouped, GE_grouped, on=\"SMILES\", how=\"inner\", suffixes=(\"_CP\", \"_GE\"))\n",
|
| 274 |
+
"\n",
|
| 275 |
+
" # 转 numpy array 并替换剩余 NaN\n",
|
| 276 |
+
" def clean_array(arr_list):\n",
|
| 277 |
+
" arr = np.stack(arr_list.to_numpy())\n",
|
| 278 |
+
" arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0) # 替换 NaN/Inf\n",
|
| 279 |
+
" return arr.astype(np.float32)\n",
|
| 280 |
+
"\n",
|
| 281 |
+
" smiles_array = merged[\"SMILES\"].to_numpy(dtype=\"S\")\n",
|
| 282 |
+
" control_CP_array = clean_array(merged[\"control_CP\"])\n",
|
| 283 |
+
" target_CP_array = clean_array(merged[\"target_CP\"])\n",
|
| 284 |
+
" control_GE_array = clean_array(merged[\"control_GE\"])\n",
|
| 285 |
+
" target_GE_array = clean_array(merged[\"target_GE\"])\n",
|
| 286 |
+
"\n",
|
| 287 |
+
" # 存 HDF5\n",
|
| 288 |
+
" with h5py.File(out_path, \"w\") as f:\n",
|
| 289 |
+
" f.create_dataset(\"canonical_smiles\", data=smiles_array)\n",
|
| 290 |
+
" f.create_dataset(\"control_CP\", data=control_CP_array)\n",
|
| 291 |
+
" f.create_dataset(\"target_CP\", data=target_CP_array)\n",
|
| 292 |
+
" f.create_dataset(\"control_GE\", data=control_GE_array)\n",
|
| 293 |
+
" f.create_dataset(\"target_GE\", data=target_GE_array)\n",
|
| 294 |
+
"\n",
|
| 295 |
+
" print(f\"✅ 聚合后的数据已保存到 {out_path},所有 NaN 已处理为 0.0\")\n",
|
| 296 |
+
"\n",
|
| 297 |
+
"# 用法\n",
|
| 298 |
+
"root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 299 |
+
"CP_path = root + './Processed_Paired_CP.h5'\n",
|
| 300 |
+
"GE_path = root + './Processed_Paired_GE.h5'\n",
|
| 301 |
+
"\n",
|
| 302 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 303 |
+
"GE_CSV = load_from_HDF(GE_path)\n",
|
| 304 |
+
"\n",
|
| 305 |
+
"out_path = root + './Aggregated_CP_GE.h5'\n",
|
| 306 |
+
"aggregate_modalities(CP_CSV, GE_CSV, out_path)\n"
|
| 307 |
+
]
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"cell_type": "code",
|
| 311 |
+
"execution_count": 38,
|
| 312 |
+
"metadata": {},
|
| 313 |
+
"outputs": [
|
| 314 |
+
{
|
| 315 |
+
"data": {
|
| 316 |
+
"text/plain": [
|
| 317 |
+
"{'canonical_smiles': array(['Brc1c(CSc2nc3ccccc3s2)nc2ncccn12', 'Brc1c(NC2=NCCN2)ccc2nccnc12',\n",
|
| 318 |
+
" 'Brc1ccc(CSc2nnc(-c3ccccn3)n2Cc2ccco2)cc1', ...,\n",
|
| 319 |
+
" 'c1nc(CC2CCNCC2)c[nH]1', 'c1nc(CCCC2CCNCC2)c[nH]1',\n",
|
| 320 |
+
" 'c1ncn(CCOCCOc2ccc3c(c2)CCC3)n1'], dtype='<U227'),\n",
|
| 321 |
+
" 'control_CP': array([[ 3.2161873e-02, -1.7372804e-02, -1.0016474e-02, ...,\n",
|
| 322 |
+
" 4.8336964e-03, 9.2573617e-05, 1.3814055e-02],\n",
|
| 323 |
+
" [ 3.0686287e-02, -1.1331222e-02, -3.4925649e-03, ...,\n",
|
| 324 |
+
" 2.5207591e-03, 1.7474355e-03, 8.4845992e-03],\n",
|
| 325 |
+
" [ 3.6669757e-02, -1.6801117e-02, -5.4300507e-03, ...,\n",
|
| 326 |
+
" 5.7292758e-03, -8.5048133e-04, 3.2608695e-02],\n",
|
| 327 |
+
" ...,\n",
|
| 328 |
+
" [ 2.9445987e-02, -1.6279269e-02, -9.0824757e-03, ...,\n",
|
| 329 |
+
" 3.4394469e-03, 2.6764136e-03, 1.5279663e-02],\n",
|
| 330 |
+
" [ 3.0686287e-02, -1.1331222e-02, -3.4925649e-03, ...,\n",
|
| 331 |
+
" 2.5207591e-03, 1.7474355e-03, 8.4845992e-03],\n",
|
| 332 |
+
" [ 2.2611173e-02, -1.0286282e-02, 1.6986302e-03, ...,\n",
|
| 333 |
+
" 6.0957628e-03, 6.0581490e-03, 1.8283216e-02]], dtype=float32),\n",
|
| 334 |
+
" 'control_GE': array([[-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 335 |
+
" -0.01134733, -0.01150297],\n",
|
| 336 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 337 |
+
" -0.01134733, -0.01150297],\n",
|
| 338 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 339 |
+
" -0.01134733, -0.01150297],\n",
|
| 340 |
+
" ...,\n",
|
| 341 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 342 |
+
" -0.01134733, -0.01150297],\n",
|
| 343 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 344 |
+
" -0.01134733, -0.01150297],\n",
|
| 345 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 346 |
+
" -0.01134733, -0.01150297]], dtype=float32),\n",
|
| 347 |
+
" 'target_CP': array([[ 1.5516217e-01, -1.2652491e-01, -1.5108880e-01, ...,\n",
|
| 348 |
+
" 5.1517323e-02, 4.3028165e-02, -3.2104313e-01],\n",
|
| 349 |
+
" [ 1.3919285e-01, -7.0041016e-02, 5.6847539e-02, ...,\n",
|
| 350 |
+
" -6.6846021e-02, 2.0045139e-02, 3.1137601e-01],\n",
|
| 351 |
+
" [-4.1009387e-01, 4.8901412e-01, 9.5608789e-01, ...,\n",
|
| 352 |
+
" 5.4136354e-01, 4.3033558e-01, -1.5829408e-01],\n",
|
| 353 |
+
" ...,\n",
|
| 354 |
+
" [ 1.6184693e-02, -3.3477028e-03, 6.8760978e-04, ...,\n",
|
| 355 |
+
" -1.0370575e-01, -9.1575049e-02, -7.9115279e-02],\n",
|
| 356 |
+
" [ 1.4948754e-01, -8.7920934e-02, 5.6048077e-02, ...,\n",
|
| 357 |
+
" -1.9580002e-01, -8.4258631e-02, -5.9720445e-02],\n",
|
| 358 |
+
" [ 4.1791059e-02, 2.5397958e-02, 2.0725157e-02, ...,\n",
|
| 359 |
+
" 2.7885816e-01, 9.2793293e-02, 1.4922591e-02]], dtype=float32),\n",
|
| 360 |
+
" 'target_GE': array([[ 0.09065 , 0.0786 , -0.06155 , ..., -0.1333 ,\n",
|
| 361 |
+
" 0.097875 , 0.15165 ],\n",
|
| 362 |
+
" [-0.07302775, 0.0460825 , -0.02222175, ..., 0.17655624,\n",
|
| 363 |
+
" -0.154201 , 0.033125 ],\n",
|
| 364 |
+
" [-0.03446667, -0.01266667, 0.04358333, ..., 0.27253333,\n",
|
| 365 |
+
" -0.06081 , 0.28026667],\n",
|
| 366 |
+
" ...,\n",
|
| 367 |
+
" [ 0.224725 , 0.2090425 , -0.2872 , ..., -0.2203515 ,\n",
|
| 368 |
+
" 0.5861085 , 0.278331 ],\n",
|
| 369 |
+
" [ 0.01292225, 0.0713975 , -0.13613375, ..., -0.16344374,\n",
|
| 370 |
+
" 0.053449 , -0.200645 ],\n",
|
| 371 |
+
" [ 0.14866666, -0.054 , 0.04613333, ..., 0.22286667,\n",
|
| 372 |
+
" -0.09675 , -0.01868333]], dtype=float32)}"
|
| 373 |
+
]
|
| 374 |
+
},
|
| 375 |
+
"execution_count": 38,
|
| 376 |
+
"metadata": {},
|
| 377 |
+
"output_type": "execute_result"
|
| 378 |
+
}
|
| 379 |
+
],
|
| 380 |
+
"source": [
|
| 381 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 382 |
+
"\n",
|
| 383 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 384 |
+
"agg_data"
|
| 385 |
+
]
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"cell_type": "code",
|
| 389 |
+
"execution_count": 42,
|
| 390 |
+
"metadata": {},
|
| 391 |
+
"outputs": [
|
| 392 |
+
{
|
| 393 |
+
"data": {
|
| 394 |
+
"text/plain": [
|
| 395 |
+
"(20341, 745)"
|
| 396 |
+
]
|
| 397 |
+
},
|
| 398 |
+
"execution_count": 42,
|
| 399 |
+
"metadata": {},
|
| 400 |
+
"output_type": "execute_result"
|
| 401 |
+
}
|
| 402 |
+
],
|
| 403 |
+
"source": [
|
| 404 |
+
"agg_data['control_CP'].shape"
|
| 405 |
+
]
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"cell_type": "code",
|
| 409 |
+
"execution_count": 28,
|
| 410 |
+
"metadata": {},
|
| 411 |
+
"outputs": [
|
| 412 |
+
{
|
| 413 |
+
"data": {
|
| 414 |
+
"text/plain": [
|
| 415 |
+
"(20341, 977)"
|
| 416 |
+
]
|
| 417 |
+
},
|
| 418 |
+
"execution_count": 28,
|
| 419 |
+
"metadata": {},
|
| 420 |
+
"output_type": "execute_result"
|
| 421 |
+
}
|
| 422 |
+
],
|
| 423 |
+
"source": [
|
| 424 |
+
"agg_data['control_GE'].shape # 查看前5个 SMILES"
|
| 425 |
+
]
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"cell_type": "code",
|
| 429 |
+
"execution_count": 21,
|
| 430 |
+
"metadata": {},
|
| 431 |
+
"outputs": [
|
| 432 |
+
{
|
| 433 |
+
"data": {
|
| 434 |
+
"text/plain": [
|
| 435 |
+
"True"
|
| 436 |
+
]
|
| 437 |
+
},
|
| 438 |
+
"execution_count": 21,
|
| 439 |
+
"metadata": {},
|
| 440 |
+
"output_type": "execute_result"
|
| 441 |
+
}
|
| 442 |
+
],
|
| 443 |
+
"source": [
|
| 444 |
+
"'O=C(C[C@@H]1CC[C@@H]2[C@H](COC[C@H](O)CN2Cc2cc(F)cc(F)c2)O1)Nc1nccs1' in agg_data['canonical_smiles']"
|
| 445 |
+
]
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"cell_type": "code",
|
| 449 |
+
"execution_count": null,
|
| 450 |
+
"metadata": {},
|
| 451 |
+
"outputs": [],
|
| 452 |
+
"source": []
|
| 453 |
+
}
|
| 454 |
+
],
|
| 455 |
+
"metadata": {
|
| 456 |
+
"kernelspec": {
|
| 457 |
+
"display_name": "boom",
|
| 458 |
+
"language": "python",
|
| 459 |
+
"name": "python3"
|
| 460 |
+
},
|
| 461 |
+
"language_info": {
|
| 462 |
+
"codemirror_mode": {
|
| 463 |
+
"name": "ipython",
|
| 464 |
+
"version": 3
|
| 465 |
+
},
|
| 466 |
+
"file_extension": ".py",
|
| 467 |
+
"mimetype": "text/x-python",
|
| 468 |
+
"name": "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|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 处理异常数据\n"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": null,
|
| 14 |
+
"id": "917fa110",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [],
|
| 17 |
+
"source": [
|
| 18 |
+
"import numpy as np\n",
|
| 19 |
+
"import pandas as pd\n",
|
| 20 |
+
"import matplotlib.pyplot as plt\n",
|
| 21 |
+
"import seaborn as sns\n",
|
| 22 |
+
"import os\n",
|
| 23 |
+
"import h5py\n",
|
| 24 |
+
"\n",
|
| 25 |
+
"def load_from_HDF(fname):\n",
|
| 26 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 27 |
+
" data = dict()\n",
|
| 28 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 29 |
+
" for key in f:\n",
|
| 30 |
+
" data[key] = np.asarray(f[key])\n",
|
| 31 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 32 |
+
" data[key] = data[key].astype(str)\n",
|
| 33 |
+
" return data"
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"cell_type": "code",
|
| 38 |
+
"execution_count": 2,
|
| 39 |
+
"id": "cddb976e",
|
| 40 |
+
"metadata": {},
|
| 41 |
+
"outputs": [],
|
| 42 |
+
"source": [
|
| 43 |
+
"path47 = 'Aggregated_CP_GE.h5'\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 46 |
+
"data47 = load_from_HDF(path47)"
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"cell_type": "code",
|
| 51 |
+
"execution_count": 5,
|
| 52 |
+
"id": "54e51b05",
|
| 53 |
+
"metadata": {},
|
| 54 |
+
"outputs": [
|
| 55 |
+
{
|
| 56 |
+
"name": "stdout",
|
| 57 |
+
"output_type": "stream",
|
| 58 |
+
"text": [
|
| 59 |
+
"整个数组的数据范围:[-20.614704132080078, 2870874.0]\n",
|
| 60 |
+
"------------------------------\n",
|
| 61 |
+
"整个数组的数据范围:[-1249.9088134765625, 19152610.0]\n",
|
| 62 |
+
"------------------------------\n"
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"source": [
|
| 67 |
+
"import numpy as np\n",
|
| 68 |
+
"\n",
|
| 69 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 70 |
+
"data_min = data47['control_CP'].min()\n",
|
| 71 |
+
"data_max = data47['control_CP'].max()\n",
|
| 72 |
+
"\n",
|
| 73 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 74 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 75 |
+
"min_per_column = np.min(data47['control_CP'], axis=0)\n",
|
| 76 |
+
"max_per_column = np.max(data47['control_CP'], axis=0)\n",
|
| 77 |
+
"\n",
|
| 78 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 79 |
+
"print(\"-\" * 30)\n",
|
| 80 |
+
"\n",
|
| 81 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 82 |
+
"data_min = data47['target_CP'].min()\n",
|
| 83 |
+
"data_max = data47['target_CP'].max()\n",
|
| 84 |
+
"\n",
|
| 85 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 86 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 87 |
+
"min_per_column = np.min(data47['target_CP'], axis=0)\n",
|
| 88 |
+
"max_per_column = np.max(data47['target_CP'], axis=0)\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 91 |
+
"print(\"-\" * 30)"
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"cell_type": "code",
|
| 96 |
+
"execution_count": 7,
|
| 97 |
+
"id": "bde80b4c",
|
| 98 |
+
"metadata": {},
|
| 99 |
+
"outputs": [
|
| 100 |
+
{
|
| 101 |
+
"name": "stdout",
|
| 102 |
+
"output_type": "stream",
|
| 103 |
+
"text": [
|
| 104 |
+
"整个数组的数据范围:[-2.230109453201294, 1.6778349876403809]\n",
|
| 105 |
+
"------------------------------\n",
|
| 106 |
+
"整个数组的数据范围:[-6.4108500480651855, 9.534767150878906]\n",
|
| 107 |
+
"------------------------------\n"
|
| 108 |
+
]
|
| 109 |
+
}
|
| 110 |
+
],
|
| 111 |
+
"source": [
|
| 112 |
+
"import numpy as np\n",
|
| 113 |
+
"\n",
|
| 114 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 115 |
+
"data_min = data47['control_GE'].min()\n",
|
| 116 |
+
"data_max = data47['control_GE'].max()\n",
|
| 117 |
+
"\n",
|
| 118 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 119 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 120 |
+
"min_per_column = np.min(data47['control_GE'], axis=0)\n",
|
| 121 |
+
"max_per_column = np.max(data47['control_GE'], axis=0)\n",
|
| 122 |
+
"\n",
|
| 123 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 124 |
+
"print(\"-\" * 30)\n",
|
| 125 |
+
"\n",
|
| 126 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 127 |
+
"data_min = data47['target_GE'].min()\n",
|
| 128 |
+
"data_max = data47['target_GE'].max()\n",
|
| 129 |
+
"\n",
|
| 130 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 131 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 132 |
+
"min_per_column = np.min(data47['target_GE'], axis=0)\n",
|
| 133 |
+
"max_per_column = np.max(data47['target_GE'], axis=0)\n",
|
| 134 |
+
"\n",
|
| 135 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 136 |
+
"print(\"-\" * 30)"
|
| 137 |
+
]
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"cell_type": "markdown",
|
| 141 |
+
"id": "053cfaa7",
|
| 142 |
+
"metadata": {},
|
| 143 |
+
"source": [
|
| 144 |
+
"## 看看 cpg0016 的数值范围"
|
| 145 |
+
]
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"cell_type": "code",
|
| 149 |
+
"execution_count": 9,
|
| 150 |
+
"id": "c81440ab",
|
| 151 |
+
"metadata": {},
|
| 152 |
+
"outputs": [
|
| 153 |
+
{
|
| 154 |
+
"name": "stdout",
|
| 155 |
+
"output_type": "stream",
|
| 156 |
+
"text": [
|
| 157 |
+
"整个数组的数据范围:[-1.2491892576217651, 1.3490736484527588]\n",
|
| 158 |
+
"------------------------------\n",
|
| 159 |
+
"整个数组的数据范围:[-6.057624816894531, 6.188350677490234]\n",
|
| 160 |
+
"------------------------------\n"
|
| 161 |
+
]
|
| 162 |
+
}
|
| 163 |
+
],
|
| 164 |
+
"source": [
|
| 165 |
+
"cpg0016_data = '/home/bob/boom/VCBench/data/Image/cpg0016_data.h5'\n",
|
| 166 |
+
"\n",
|
| 167 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 168 |
+
"cpg0016_data = load_from_HDF(cpg0016_data)\n",
|
| 169 |
+
"\n",
|
| 170 |
+
"import numpy as np\n",
|
| 171 |
+
"\n",
|
| 172 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 173 |
+
"data_min = cpg0016_data['control'].min()\n",
|
| 174 |
+
"data_max = cpg0016_data['control'].max()\n",
|
| 175 |
+
"\n",
|
| 176 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 177 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 178 |
+
"min_per_column = np.min(cpg0016_data['control'], axis=0)\n",
|
| 179 |
+
"max_per_column = np.max(cpg0016_data['control'], axis=0)\n",
|
| 180 |
+
"\n",
|
| 181 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 182 |
+
"print(\"-\" * 30)\n",
|
| 183 |
+
"\n",
|
| 184 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 185 |
+
"data_min = cpg0016_data['target'].min()\n",
|
| 186 |
+
"data_max = cpg0016_data['target'].max()\n",
|
| 187 |
+
"\n",
|
| 188 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 189 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 190 |
+
"min_per_column = np.min(cpg0016_data['target'], axis=0)\n",
|
| 191 |
+
"max_per_column = np.max(cpg0016_data['target'], axis=0)\n",
|
| 192 |
+
"\n",
|
| 193 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 194 |
+
"print(\"-\" * 30)"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"cell_type": "code",
|
| 199 |
+
"execution_count": 22,
|
| 200 |
+
"id": "2b2f331e",
|
| 201 |
+
"metadata": {},
|
| 202 |
+
"outputs": [
|
| 203 |
+
{
|
| 204 |
+
"name": "stdout",
|
| 205 |
+
"output_type": "stream",
|
| 206 |
+
"text": [
|
| 207 |
+
"\n",
|
| 208 |
+
"标准化后的整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n"
|
| 209 |
+
]
|
| 210 |
+
}
|
| 211 |
+
],
|
| 212 |
+
"source": [
|
| 213 |
+
"import numpy as np\n",
|
| 214 |
+
"\n",
|
| 215 |
+
"# 假设 data47['target_CP'] 是你的原始数据, target_CP, \n",
|
| 216 |
+
"data_with_outlier = data47['control_CP']\n",
|
| 217 |
+
"\n",
|
| 218 |
+
"# 1. 异常值处理 - 使用截断法 (Clipping)\n",
|
| 219 |
+
"# 设定一个更保守的上限,例如基于分位数\n",
|
| 220 |
+
"q99 = np.percentile(data_with_outlier, 99)\n",
|
| 221 |
+
"clip_max = q99 * 2 # 或者直接用一个固定值,比如 5\n",
|
| 222 |
+
"data_clipped = np.clip(data_with_outlier, a_min=None, a_max=clip_max)\n",
|
| 223 |
+
"# 2. 数据标准化 - Z-score Normalization\n",
|
| 224 |
+
"# 计算每列(特征)的均值和标准差\n",
|
| 225 |
+
"mu = data_clipped.mean(axis=0)\n",
|
| 226 |
+
"sigma = data_clipped.std(axis=0)\n",
|
| 227 |
+
"\n",
|
| 228 |
+
"# 初始化一个与数据形状相同的零数组\n",
|
| 229 |
+
"data_normalized = np.zeros_like(data_clipped, dtype=float)\n",
|
| 230 |
+
"\n",
|
| 231 |
+
"# 找到标准差不为0的列\n",
|
| 232 |
+
"# 为了避免浮点数误差,使用一个非常小的阈值来检查\n",
|
| 233 |
+
"epsilon = 1e-8\n",
|
| 234 |
+
"nonzero_sigma_cols = sigma > epsilon\n",
|
| 235 |
+
"\n",
|
| 236 |
+
"# 对这些列进行零均值化\n",
|
| 237 |
+
"data_normalized[:, nonzero_sigma_cols] = (data_clipped[:, nonzero_sigma_cols] - mu[nonzero_sigma_cols]) / sigma[nonzero_sigma_cols]\n",
|
| 238 |
+
"\n",
|
| 239 |
+
"# 检查结果\n",
|
| 240 |
+
"data_min = data_normalized.min()\n",
|
| 241 |
+
"data_max = data_normalized.max()\n",
|
| 242 |
+
"\n",
|
| 243 |
+
"print(f\"\\n标准化后的整个数组的数据范围:[{data_min}, {data_max}]\")"
|
| 244 |
+
]
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"cell_type": "code",
|
| 248 |
+
"execution_count": 23,
|
| 249 |
+
"id": "9ccda958",
|
| 250 |
+
"metadata": {},
|
| 251 |
+
"outputs": [],
|
| 252 |
+
"source": [
|
| 253 |
+
"control_CP = data_normalized.copy()\n",
|
| 254 |
+
"# print(control_CP.shape)\n",
|
| 255 |
+
"# target_CP = data_normalized.copy()"
|
| 256 |
+
]
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"cell_type": "code",
|
| 260 |
+
"execution_count": 24,
|
| 261 |
+
"id": "6e515034",
|
| 262 |
+
"metadata": {},
|
| 263 |
+
"outputs": [
|
| 264 |
+
{
|
| 265 |
+
"name": "stdout",
|
| 266 |
+
"output_type": "stream",
|
| 267 |
+
"text": [
|
| 268 |
+
"整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n",
|
| 269 |
+
"------------------------------\n",
|
| 270 |
+
"整个数组的数据范围:[-129.0272979736328, 64.47639465332031]\n",
|
| 271 |
+
"------------------------------\n"
|
| 272 |
+
]
|
| 273 |
+
}
|
| 274 |
+
],
|
| 275 |
+
"source": [
|
| 276 |
+
"import numpy as np\n",
|
| 277 |
+
"\n",
|
| 278 |
+
"data_min = control_CP.min()\n",
|
| 279 |
+
"data_max = control_CP.max()\n",
|
| 280 |
+
"\n",
|
| 281 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 282 |
+
"print(\"-\" * 30)\n",
|
| 283 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 284 |
+
"data_min = target_CP.min()\n",
|
| 285 |
+
"data_max = target_CP.max()\n",
|
| 286 |
+
"\n",
|
| 287 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 288 |
+
"print(\"-\" * 30)"
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"cell_type": "code",
|
| 293 |
+
"execution_count": 25,
|
| 294 |
+
"id": "481b57e7",
|
| 295 |
+
"metadata": {},
|
| 296 |
+
"outputs": [
|
| 297 |
+
{
|
| 298 |
+
"name": "stdout",
|
| 299 |
+
"output_type": "stream",
|
| 300 |
+
"text": [
|
| 301 |
+
"float64 float64\n",
|
| 302 |
+
"float32 float32\n"
|
| 303 |
+
]
|
| 304 |
+
}
|
| 305 |
+
],
|
| 306 |
+
"source": [
|
| 307 |
+
"print(control_CP.dtype, target_CP.dtype)\n",
|
| 308 |
+
"\n",
|
| 309 |
+
"control_CP_float32 = control_CP.astype(np.float32)\n",
|
| 310 |
+
"target_CP_float32 = target_CP.astype(np.float32)\n",
|
| 311 |
+
"print(control_CP_float32.dtype, target_CP_float32.dtype)"
|
| 312 |
+
]
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"cell_type": "code",
|
| 316 |
+
"execution_count": 26,
|
| 317 |
+
"id": "6e2d6030",
|
| 318 |
+
"metadata": {},
|
| 319 |
+
"outputs": [
|
| 320 |
+
{
|
| 321 |
+
"name": "stdout",
|
| 322 |
+
"output_type": "stream",
|
| 323 |
+
"text": [
|
| 324 |
+
"已删除旧的 'control_CP' 数据集。\n",
|
| 325 |
+
"已删除旧的 'target_CP' 数据集。\n",
|
| 326 |
+
"已成��写入新的 'control_CP' 和 'target_CP' 数据集。\n",
|
| 327 |
+
"操作完成。\n"
|
| 328 |
+
]
|
| 329 |
+
}
|
| 330 |
+
],
|
| 331 |
+
"source": [
|
| 332 |
+
"file_path = 'Aggregated_CP_GE.h5'\n",
|
| 333 |
+
"# 使用 'a' (append) 模式打开文件\n",
|
| 334 |
+
"with h5py.File(file_path, 'a') as f:\n",
|
| 335 |
+
" \n",
|
| 336 |
+
" # 1. 删除旧的数据集(如果存在)\n",
|
| 337 |
+
" if \"control_CP\" in f:\n",
|
| 338 |
+
" del f[\"control_CP\"]\n",
|
| 339 |
+
" print(\"已删除旧的 'control_CP' 数据集。\")\n",
|
| 340 |
+
" \n",
|
| 341 |
+
" if \"target_CP\" in f:\n",
|
| 342 |
+
" del f[\"target_CP\"]\n",
|
| 343 |
+
" print(\"已删除旧的 'target_CP' 数据集。\")\n",
|
| 344 |
+
" \n",
|
| 345 |
+
" # 2. 创建并写入新的数据集\n",
|
| 346 |
+
" f.create_dataset(\"control_CP\", data=control_CP_float32)\n",
|
| 347 |
+
" f.create_dataset(\"target_CP\", data=target_CP_float32)\n",
|
| 348 |
+
" \n",
|
| 349 |
+
" print(\"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\")\n",
|
| 350 |
+
"\n",
|
| 351 |
+
"print(\"操作完成。\")\n"
|
| 352 |
+
]
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"cell_type": "code",
|
| 356 |
+
"execution_count": null,
|
| 357 |
+
"id": "b131c13e",
|
| 358 |
+
"metadata": {},
|
| 359 |
+
"outputs": [],
|
| 360 |
+
"source": []
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"cell_type": "markdown",
|
| 364 |
+
"id": "5a82372f",
|
| 365 |
+
"metadata": {},
|
| 366 |
+
"source": [
|
| 367 |
+
"# 看基因数据是否异常 -- 没有"
|
| 368 |
+
]
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"cell_type": "code",
|
| 372 |
+
"execution_count": 28,
|
| 373 |
+
"id": "a81ddc86",
|
| 374 |
+
"metadata": {},
|
| 375 |
+
"outputs": [
|
| 376 |
+
{
|
| 377 |
+
"name": "stdout",
|
| 378 |
+
"output_type": "stream",
|
| 379 |
+
"text": [
|
| 380 |
+
"整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n",
|
| 381 |
+
"------------------------------\n",
|
| 382 |
+
"每列数据的最小值(前10个):\n",
|
| 383 |
+
"[-1.7736303 -2.8932922 -1.9792434 -1.3063283 -1.5805442 -2.5623124\n",
|
| 384 |
+
" -2.9260125 -3.1737845 -3.493395 -5.5112543]\n",
|
| 385 |
+
"------------------------------\n",
|
| 386 |
+
"每列数据的最大值(前10个):\n",
|
| 387 |
+
"[3.8115907 4.765787 9.468964 3.2014632 2.3736608 4.2486434 4.5805535\n",
|
| 388 |
+
" 4.513591 1.7128 2.9639645]\n"
|
| 389 |
+
]
|
| 390 |
+
}
|
| 391 |
+
],
|
| 392 |
+
"source": [
|
| 393 |
+
"import numpy as np\n",
|
| 394 |
+
"\n",
|
| 395 |
+
"data47 = load_from_HDF( 'Aggregated_CP_GE.h5')\n",
|
| 396 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 397 |
+
"data_min = data47['control_CP'].min()\n",
|
| 398 |
+
"data_max = data47['control_CP'].max()\n",
|
| 399 |
+
"\n",
|
| 400 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 401 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 402 |
+
"min_per_column = np.min(data47['control_CP'], axis=0)\n",
|
| 403 |
+
"max_per_column = np.max(data47['control_CP'], axis=0)\n",
|
| 404 |
+
"\n",
|
| 405 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 406 |
+
"print(\"-\" * 30)\n",
|
| 407 |
+
"print(\"每列数据的最小值(前10个):\")\n",
|
| 408 |
+
"print(min_per_column[:10])\n",
|
| 409 |
+
"print(\"-\" * 30)\n",
|
| 410 |
+
"print(\"每列数据的最大值(前10个):\")\n",
|
| 411 |
+
"print(max_per_column[:10])"
|
| 412 |
+
]
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"cell_type": "code",
|
| 416 |
+
"execution_count": null,
|
| 417 |
+
"id": "770f3727",
|
| 418 |
+
"metadata": {},
|
| 419 |
+
"outputs": [],
|
| 420 |
+
"source": [
|
| 421 |
+
"# 看看方差\n"
|
| 422 |
+
]
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"cell_type": "code",
|
| 426 |
+
"execution_count": null,
|
| 427 |
+
"id": "10693804",
|
| 428 |
+
"metadata": {},
|
| 429 |
+
"outputs": [],
|
| 430 |
+
"source": []
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"cell_type": "code",
|
| 434 |
+
"execution_count": null,
|
| 435 |
+
"id": "c072eea5",
|
| 436 |
+
"metadata": {},
|
| 437 |
+
"outputs": [],
|
| 438 |
+
"source": []
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"metadata": {
|
| 442 |
+
"kernelspec": {
|
| 443 |
+
"display_name": "boom",
|
| 444 |
+
"language": "python",
|
| 445 |
+
"name": "python3"
|
| 446 |
+
},
|
| 447 |
+
"language_info": {
|
| 448 |
+
"codemirror_mode": {
|
| 449 |
+
"name": "ipython",
|
| 450 |
+
"version": 3
|
| 451 |
+
},
|
| 452 |
+
"file_extension": ".py",
|
| 453 |
+
"mimetype": "text/x-python",
|
| 454 |
+
"name": "python",
|
| 455 |
+
"nbconvert_exporter": "python",
|
| 456 |
+
"pygments_lexer": "ipython3",
|
| 457 |
+
"version": "3.11.10"
|
| 458 |
+
}
|
| 459 |
+
},
|
| 460 |
+
"nbformat": 4,
|
| 461 |
+
"nbformat_minor": 5
|
| 462 |
+
}
|
MVC/CDRP-BBBC047-Bray/make_paired_data_47_36.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRPBIO-BBBC036-Bray/Step1_data_process.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRPBIO-BBBC036-Bray/Step1_data_process_get_CP.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRPBIO-BBBC036-Bray/Step2_align.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/CDRPBIO-BBBC036-Bray/Step3_aggreate_2modality.ipynb
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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模型,配对不齐,训练集不均衡。\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"## 策略有3种:\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### 1 是按 SMILES 聚合,对每个 SMILES 在每个模态上 取平均或中位数(或更复杂的 embedding 聚合)。\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"### 2 是多实例学习(Multiple Instance Learning, MIL):思路:把一个 SMILES 的所有 replicate 当作一个 bag,模型学习 bag-level 对齐。\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"### 3 是不对齐 replicate,随机采样:思路:训练时,每个 batch 从两个模态中随机采样该 SMILES 的一个 replicate,逐步逼近两个分布。\n",
|
| 16 |
+
"\n",
|
| 17 |
+
"## 此处用1,最为简单"
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"cell_type": "code",
|
| 22 |
+
"execution_count": 8,
|
| 23 |
+
"metadata": {},
|
| 24 |
+
"outputs": [],
|
| 25 |
+
"source": [
|
| 26 |
+
"import numpy as np\n",
|
| 27 |
+
"import pandas as pd\n",
|
| 28 |
+
"import matplotlib.pyplot as plt\n",
|
| 29 |
+
"import seaborn as sns\n",
|
| 30 |
+
"import os\n",
|
| 31 |
+
"import h5py\n",
|
| 32 |
+
"\n",
|
| 33 |
+
"def load_from_HDF(fname):\n",
|
| 34 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 35 |
+
" data = dict()\n",
|
| 36 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 37 |
+
" for key in f:\n",
|
| 38 |
+
" data[key] = np.asarray(f[key])\n",
|
| 39 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 40 |
+
" data[key] = data[key].astype(str)\n",
|
| 41 |
+
" return data\n"
|
| 42 |
+
]
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"cell_type": "code",
|
| 46 |
+
"execution_count": 9,
|
| 47 |
+
"metadata": {},
|
| 48 |
+
"outputs": [],
|
| 49 |
+
"source": [
|
| 50 |
+
"root = '/home/bob/boom/VCBench/data/MVC/CDRPBIO-BBBC036-Bray/'\n",
|
| 51 |
+
"\n",
|
| 52 |
+
"CP_path = root + './Processed_Paired_CP.h5'\n",
|
| 53 |
+
"GE_path = root + './Processed_Paired_GE.h5'\n",
|
| 54 |
+
"\n",
|
| 55 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 56 |
+
"GE_CSV = load_from_HDF(GE_path)"
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"cell_type": "code",
|
| 61 |
+
"execution_count": 10,
|
| 62 |
+
"metadata": {},
|
| 63 |
+
"outputs": [
|
| 64 |
+
{
|
| 65 |
+
"name": "stdout",
|
| 66 |
+
"output_type": "stream",
|
| 67 |
+
"text": [
|
| 68 |
+
"✅ 聚合后的数据已保存到 /home/bob/boom/VCBench/data/MVC/CDRPBIO-BBBC036-Bray/./Aggregated_CP_GE.h5,所有 NaN 已处理为 0.0\n"
|
| 69 |
+
]
|
| 70 |
+
}
|
| 71 |
+
],
|
| 72 |
+
"source": [
|
| 73 |
+
"import h5py\n",
|
| 74 |
+
"import numpy as np\n",
|
| 75 |
+
"import pandas as pd\n",
|
| 76 |
+
"\n",
|
| 77 |
+
"def aggregate_modalities(CP, GE, out_path):\n",
|
| 78 |
+
" # 转成 DataFrame 方便聚合\n",
|
| 79 |
+
" CP_df = pd.DataFrame({\n",
|
| 80 |
+
" \"SMILES\": CP[\"canonical_smiles\"],\n",
|
| 81 |
+
" \"control\": list(CP[\"control\"]),\n",
|
| 82 |
+
" \"target\": list(CP[\"target\"])\n",
|
| 83 |
+
" })\n",
|
| 84 |
+
" GE_df = pd.DataFrame({\n",
|
| 85 |
+
" \"SMILES\": GE[\"canonical_smiles\"],\n",
|
| 86 |
+
" \"control\": list(GE[\"control\"]),\n",
|
| 87 |
+
" \"target\": list(GE[\"target\"])\n",
|
| 88 |
+
" })\n",
|
| 89 |
+
"\n",
|
| 90 |
+
" # groupby + mean pooling\n",
|
| 91 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 92 |
+
" GE_grouped = GE_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 93 |
+
"\n",
|
| 94 |
+
" # merge 保证对齐\n",
|
| 95 |
+
" merged = pd.merge(CP_grouped, GE_grouped, on=\"SMILES\", how=\"inner\", suffixes=(\"_CP\", \"_GE\"))\n",
|
| 96 |
+
"\n",
|
| 97 |
+
" # 转 numpy array 并替换剩余 NaN\n",
|
| 98 |
+
" def clean_array(arr_list):\n",
|
| 99 |
+
" arr = np.stack(arr_list.to_numpy())\n",
|
| 100 |
+
" arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0) # 替换 NaN/Inf\n",
|
| 101 |
+
" return arr.astype(np.float32)\n",
|
| 102 |
+
"\n",
|
| 103 |
+
" smiles_array = merged[\"SMILES\"].to_numpy(dtype=\"S\")\n",
|
| 104 |
+
" control_CP_array = clean_array(merged[\"control_CP\"])\n",
|
| 105 |
+
" target_CP_array = clean_array(merged[\"target_CP\"])\n",
|
| 106 |
+
" control_GE_array = clean_array(merged[\"control_GE\"])\n",
|
| 107 |
+
" target_GE_array = clean_array(merged[\"target_GE\"])\n",
|
| 108 |
+
"\n",
|
| 109 |
+
" # 存 HDF5\n",
|
| 110 |
+
" with h5py.File(out_path, \"w\") as f:\n",
|
| 111 |
+
" f.create_dataset(\"canonical_smiles\", data=smiles_array)\n",
|
| 112 |
+
" f.create_dataset(\"control_CP\", data=control_CP_array)\n",
|
| 113 |
+
" f.create_dataset(\"target_CP\", data=target_CP_array)\n",
|
| 114 |
+
" f.create_dataset(\"control_GE\", data=control_GE_array)\n",
|
| 115 |
+
" f.create_dataset(\"target_GE\", data=target_GE_array)\n",
|
| 116 |
+
"\n",
|
| 117 |
+
" print(f\"✅ 聚合后的数据已保存到 {out_path},所有 NaN 已处理为 0.0\")\n",
|
| 118 |
+
"\n",
|
| 119 |
+
"# 用法\n",
|
| 120 |
+
"# root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 121 |
+
"CP_path = root + './Processed_Paired_CP.h5'\n",
|
| 122 |
+
"GE_path = root + './Processed_Paired_GE.h5'\n",
|
| 123 |
+
"\n",
|
| 124 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 125 |
+
"GE_CSV = load_from_HDF(GE_path)\n",
|
| 126 |
+
"\n",
|
| 127 |
+
"out_path = root + './Aggregated_CP_GE.h5'\n",
|
| 128 |
+
"aggregate_modalities(CP_CSV, GE_CSV, out_path)\n"
|
| 129 |
+
]
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"cell_type": "code",
|
| 133 |
+
"execution_count": 11,
|
| 134 |
+
"metadata": {},
|
| 135 |
+
"outputs": [
|
| 136 |
+
{
|
| 137 |
+
"data": {
|
| 138 |
+
"text/plain": [
|
| 139 |
+
"{'canonical_smiles': array(['Brc1c(NC2=NCCN2)ccc2nccnc12', 'C#CCN(C)CCCOc1ccc(Cl)cc1Cl',\n",
|
| 140 |
+
" 'C#CCN1C(C)=C(C(=O)CCO)C(c2cccc(-n3oo3)c2)C(C(=O)OC)=C1C', ...,\n",
|
| 141 |
+
" 'c1coc(CNc2ncnc3[nH]cnc23)c1', 'c1nc(CC2CCNCC2)c[nH]1',\n",
|
| 142 |
+
" 'c1nc(CCCC2CCNCC2)c[nH]1'], dtype='<U227'),\n",
|
| 143 |
+
" 'control_CP': array([[ 0.00068819, 0.03068629, -0.01133122, ..., -0.00035833,\n",
|
| 144 |
+
" -0.0068023 , 0.00832675],\n",
|
| 145 |
+
" [ 0.00068819, 0.03068629, -0.01133122, ..., -0.00035833,\n",
|
| 146 |
+
" -0.0068023 , 0.00832675],\n",
|
| 147 |
+
" [-0.00018166, 0.01862261, -0.00605156, ..., 0.01070234,\n",
|
| 148 |
+
" 0.01840025, 0.03512387],\n",
|
| 149 |
+
" ...,\n",
|
| 150 |
+
" [ 0.00068819, 0.03068629, -0.01133122, ..., -0.00035833,\n",
|
| 151 |
+
" -0.0068023 , 0.00832675],\n",
|
| 152 |
+
" [-0.00193635, 0.02944599, -0.01627927, ..., 0.0022546 ,\n",
|
| 153 |
+
" -0.00520131, 0.01978289],\n",
|
| 154 |
+
" [ 0.00068819, 0.03068629, -0.01133122, ..., -0.00035833,\n",
|
| 155 |
+
" -0.0068023 , 0.00832675]]),\n",
|
| 156 |
+
" 'control_GE': array([[-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 157 |
+
" -0.01134733, -0.01150297],\n",
|
| 158 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 159 |
+
" -0.01134733, -0.01150297],\n",
|
| 160 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 161 |
+
" -0.01134733, -0.01150297],\n",
|
| 162 |
+
" ...,\n",
|
| 163 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 164 |
+
" -0.01134733, -0.01150297],\n",
|
| 165 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 166 |
+
" -0.01134733, -0.01150297],\n",
|
| 167 |
+
" [-0.00217228, -0.00637228, -0.00293138, ..., -0.00425048,\n",
|
| 168 |
+
" -0.01134733, -0.01150297]]),\n",
|
| 169 |
+
" 'target_CP': array([[ 0.06232562, 0.13919284, -0.07004101, ..., 0.00523225,\n",
|
| 170 |
+
" -0.0840081 , 0.3163032 ],\n",
|
| 171 |
+
" [-0.02893378, -0.0963472 , 0.02897743, ..., 0.03984685,\n",
|
| 172 |
+
" -0.06590394, -0.04551435],\n",
|
| 173 |
+
" [ 0.05013672, 0.00352105, 0.0064943 , ..., -0.05595761,\n",
|
| 174 |
+
" -0.08462357, -0.1268212 ],\n",
|
| 175 |
+
" ...,\n",
|
| 176 |
+
" [-0.01697117, -0.06073245, 0.04498612, ..., 0.06319024,\n",
|
| 177 |
+
" 0.03119937, 0.02412124],\n",
|
| 178 |
+
" [ 0.02098823, 0.01618469, -0.0033477 , ..., -0.07113561,\n",
|
| 179 |
+
" -0.06343231, -0.06900362],\n",
|
| 180 |
+
" [-0.05296022, 0.14948754, -0.08792093, ..., -0.06916199,\n",
|
| 181 |
+
" -0.13310869, -0.03078984]]),\n",
|
| 182 |
+
" 'target_GE': array([[-0.07302775, 0.0460825 , -0.02222175, ..., 0.17655625,\n",
|
| 183 |
+
" -0.154201 , 0.033125 ],\n",
|
| 184 |
+
" [ 0.1019155 , -0.2480317 , 0.119545 , ..., -0.16921 ,\n",
|
| 185 |
+
" 0.02239785, -0.0529015 ],\n",
|
| 186 |
+
" [-0.034165 , 0.048892 , 0.1231085 , ..., 0.42318 ,\n",
|
| 187 |
+
" 0.034605 , 0.21026 ],\n",
|
| 188 |
+
" ...,\n",
|
| 189 |
+
" [ 0.0316805 , -0.1364167 , 0.02315 , ..., 0.10307 ,\n",
|
| 190 |
+
" 0.17449785, 0.1486385 ],\n",
|
| 191 |
+
" [ 0.224725 , 0.2090425 , -0.2872 , ..., -0.2203515 ,\n",
|
| 192 |
+
" 0.5861085 , 0.278331 ],\n",
|
| 193 |
+
" [ 0.01292225, 0.0713975 , -0.13613375, ..., -0.16344375,\n",
|
| 194 |
+
" 0.053449 , -0.200645 ]])}"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
"execution_count": 11,
|
| 198 |
+
"metadata": {},
|
| 199 |
+
"output_type": "execute_result"
|
| 200 |
+
}
|
| 201 |
+
],
|
| 202 |
+
"source": [
|
| 203 |
+
"# load aggregated data\n",
|
| 204 |
+
"# agg_data = load_from_HDF(out_path)\n",
|
| 205 |
+
"agg_data"
|
| 206 |
+
]
|
| 207 |
+
}
|
| 208 |
+
],
|
| 209 |
+
"metadata": {
|
| 210 |
+
"kernelspec": {
|
| 211 |
+
"display_name": "boom",
|
| 212 |
+
"language": "python",
|
| 213 |
+
"name": "python3"
|
| 214 |
+
},
|
| 215 |
+
"language_info": {
|
| 216 |
+
"codemirror_mode": {
|
| 217 |
+
"name": "ipython",
|
| 218 |
+
"version": 3
|
| 219 |
+
},
|
| 220 |
+
"file_extension": ".py",
|
| 221 |
+
"mimetype": "text/x-python",
|
| 222 |
+
"name": "python",
|
| 223 |
+
"nbconvert_exporter": "python",
|
| 224 |
+
"pygments_lexer": "ipython3",
|
| 225 |
+
"version": "3.11.10"
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
"nbformat": 4,
|
| 229 |
+
"nbformat_minor": 2
|
| 230 |
+
}
|
MVC/CDRPBIO-BBBC036-Bray/Step4_outlier_process.ipynb
ADDED
|
@@ -0,0 +1,491 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "389cd136",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 处理异常数据\n"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": 1,
|
| 14 |
+
"id": "917fa110",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [],
|
| 17 |
+
"source": [
|
| 18 |
+
"import numpy as np\n",
|
| 19 |
+
"import pandas as pd\n",
|
| 20 |
+
"import matplotlib.pyplot as plt\n",
|
| 21 |
+
"import seaborn as sns\n",
|
| 22 |
+
"import os\n",
|
| 23 |
+
"import h5py\n",
|
| 24 |
+
"\n",
|
| 25 |
+
"def load_from_HDF(fname):\n",
|
| 26 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 27 |
+
" data = dict()\n",
|
| 28 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 29 |
+
" for key in f:\n",
|
| 30 |
+
" data[key] = np.asarray(f[key])\n",
|
| 31 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 32 |
+
" data[key] = data[key].astype(str)\n",
|
| 33 |
+
" return data"
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"cell_type": "code",
|
| 38 |
+
"execution_count": 2,
|
| 39 |
+
"id": "cddb976e",
|
| 40 |
+
"metadata": {},
|
| 41 |
+
"outputs": [],
|
| 42 |
+
"source": [
|
| 43 |
+
"path47 = 'Aggregated_CP_GE.h5'\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 46 |
+
"data36 = load_from_HDF(path47)"
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"cell_type": "code",
|
| 51 |
+
"execution_count": 4,
|
| 52 |
+
"id": "92260f6e",
|
| 53 |
+
"metadata": {},
|
| 54 |
+
"outputs": [
|
| 55 |
+
{
|
| 56 |
+
"data": {
|
| 57 |
+
"text/plain": [
|
| 58 |
+
"(1916, 602)"
|
| 59 |
+
]
|
| 60 |
+
},
|
| 61 |
+
"execution_count": 4,
|
| 62 |
+
"metadata": {},
|
| 63 |
+
"output_type": "execute_result"
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"source": [
|
| 67 |
+
"data36['control_CP'].shape"
|
| 68 |
+
]
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"cell_type": "code",
|
| 72 |
+
"execution_count": 5,
|
| 73 |
+
"id": "54e51b05",
|
| 74 |
+
"metadata": {},
|
| 75 |
+
"outputs": [
|
| 76 |
+
{
|
| 77 |
+
"name": "stdout",
|
| 78 |
+
"output_type": "stream",
|
| 79 |
+
"text": [
|
| 80 |
+
"整个数组的数据范围:[-0.15427954494953156, 32876.36328125]\n",
|
| 81 |
+
"------------------------------\n",
|
| 82 |
+
"整个数组的数据范围:[-8.007139205932617, 370889.125]\n",
|
| 83 |
+
"------------------------------\n"
|
| 84 |
+
]
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"source": [
|
| 88 |
+
"import numpy as np\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 91 |
+
"data_min = data36['control_CP'].min()\n",
|
| 92 |
+
"data_max = data36['control_CP'].max()\n",
|
| 93 |
+
"\n",
|
| 94 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 95 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 96 |
+
"min_per_column = np.min(data36['control_CP'], axis=0)\n",
|
| 97 |
+
"max_per_column = np.max(data36['control_CP'], axis=0)\n",
|
| 98 |
+
"\n",
|
| 99 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 100 |
+
"print(\"-\" * 30)\n",
|
| 101 |
+
"\n",
|
| 102 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 103 |
+
"data_min = data36['target_CP'].min()\n",
|
| 104 |
+
"data_max = data36['target_CP'].max()\n",
|
| 105 |
+
"\n",
|
| 106 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 107 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 108 |
+
"min_per_column = np.min(data36['target_CP'], axis=0)\n",
|
| 109 |
+
"max_per_column = np.max(data36['target_CP'], axis=0)\n",
|
| 110 |
+
"\n",
|
| 111 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 112 |
+
"print(\"-\" * 30)"
|
| 113 |
+
]
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"cell_type": "code",
|
| 117 |
+
"execution_count": 6,
|
| 118 |
+
"id": "bde80b4c",
|
| 119 |
+
"metadata": {},
|
| 120 |
+
"outputs": [
|
| 121 |
+
{
|
| 122 |
+
"name": "stdout",
|
| 123 |
+
"output_type": "stream",
|
| 124 |
+
"text": [
|
| 125 |
+
"整个数组的数据范围:[-0.059715718030929565, 0.10131344199180603]\n",
|
| 126 |
+
"------------------------------\n",
|
| 127 |
+
"整个数组的数据范围:[-4.208789825439453, 6.420098304748535]\n",
|
| 128 |
+
"------------------------------\n"
|
| 129 |
+
]
|
| 130 |
+
}
|
| 131 |
+
],
|
| 132 |
+
"source": [
|
| 133 |
+
"import numpy as np\n",
|
| 134 |
+
"\n",
|
| 135 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 136 |
+
"data_min = data36['control_GE'].min()\n",
|
| 137 |
+
"data_max = data36['control_GE'].max()\n",
|
| 138 |
+
"\n",
|
| 139 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 140 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 141 |
+
"min_per_column = np.min(data36['control_GE'], axis=0)\n",
|
| 142 |
+
"max_per_column = np.max(data36['control_GE'], axis=0)\n",
|
| 143 |
+
"\n",
|
| 144 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 145 |
+
"print(\"-\" * 30)\n",
|
| 146 |
+
"\n",
|
| 147 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 148 |
+
"data_min = data36['target_GE'].min()\n",
|
| 149 |
+
"data_max = data36['target_GE'].max()\n",
|
| 150 |
+
"\n",
|
| 151 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 152 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 153 |
+
"min_per_column = np.min(data36['target_GE'], axis=0)\n",
|
| 154 |
+
"max_per_column = np.max(data36['target_GE'], axis=0)\n",
|
| 155 |
+
"\n",
|
| 156 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 157 |
+
"print(\"-\" * 30)"
|
| 158 |
+
]
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"cell_type": "markdown",
|
| 162 |
+
"id": "053cfaa7",
|
| 163 |
+
"metadata": {},
|
| 164 |
+
"source": [
|
| 165 |
+
"## 看看 cpg0016 的数值范围"
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"cell_type": "code",
|
| 170 |
+
"execution_count": null,
|
| 171 |
+
"id": "c81440ab",
|
| 172 |
+
"metadata": {},
|
| 173 |
+
"outputs": [
|
| 174 |
+
{
|
| 175 |
+
"name": "stdout",
|
| 176 |
+
"output_type": "stream",
|
| 177 |
+
"text": [
|
| 178 |
+
"整个数组的数据范围:[-1.2491892576217651, 1.3490736484527588]\n",
|
| 179 |
+
"------------------------------\n",
|
| 180 |
+
"整个数组的数据范围:[-6.057624816894531, 6.188350677490234]\n",
|
| 181 |
+
"------------------------------\n"
|
| 182 |
+
]
|
| 183 |
+
}
|
| 184 |
+
],
|
| 185 |
+
"source": [
|
| 186 |
+
"# cpg0016_data = '/home/bob/boom/VCBench/data/Image/cpg0016_data.h5'\n",
|
| 187 |
+
"\n",
|
| 188 |
+
"# # data36 = load_from_HDF(path36)\n",
|
| 189 |
+
"# cpg0016_data = load_from_HDF(cpg0016_data)\n",
|
| 190 |
+
"\n",
|
| 191 |
+
"# import numpy as np\n",
|
| 192 |
+
"\n",
|
| 193 |
+
"# # 计算整个数组的最小值和最大值\n",
|
| 194 |
+
"# data_min = cpg0016_data['control'].min()\n",
|
| 195 |
+
"# data_max = cpg0016_data['control'].max()\n",
|
| 196 |
+
"\n",
|
| 197 |
+
"# # 计算每列(即每个特征)的最小值和最大值\n",
|
| 198 |
+
"# # axis=0 表示对每一列进行操作\n",
|
| 199 |
+
"# min_per_column = np.min(cpg0016_data['control'], axis=0)\n",
|
| 200 |
+
"# max_per_column = np.max(cpg0016_data['control'], axis=0)\n",
|
| 201 |
+
"\n",
|
| 202 |
+
"# print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 203 |
+
"# print(\"-\" * 30)\n",
|
| 204 |
+
"\n",
|
| 205 |
+
"# # 计算整个数组的最小值和最大值\n",
|
| 206 |
+
"# data_min = cpg0016_data['target'].min()\n",
|
| 207 |
+
"# data_max = cpg0016_data['target'].max()\n",
|
| 208 |
+
"\n",
|
| 209 |
+
"# # 计算每列(即每个特征)的最小值和最大值\n",
|
| 210 |
+
"# # axis=0 表示对每一列进行操作\n",
|
| 211 |
+
"# min_per_column = np.min(cpg0016_data['target'], axis=0)\n",
|
| 212 |
+
"# max_per_column = np.max(cpg0016_data['target'], axis=0)\n",
|
| 213 |
+
"\n",
|
| 214 |
+
"# print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 215 |
+
"# print(\"-\" * 30)"
|
| 216 |
+
]
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"cell_type": "code",
|
| 220 |
+
"execution_count": null,
|
| 221 |
+
"id": "c7005461",
|
| 222 |
+
"metadata": {},
|
| 223 |
+
"outputs": [],
|
| 224 |
+
"source": []
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"cell_type": "code",
|
| 228 |
+
"execution_count": 9,
|
| 229 |
+
"id": "2b2f331e",
|
| 230 |
+
"metadata": {},
|
| 231 |
+
"outputs": [
|
| 232 |
+
{
|
| 233 |
+
"name": "stdout",
|
| 234 |
+
"output_type": "stream",
|
| 235 |
+
"text": [
|
| 236 |
+
"\n",
|
| 237 |
+
"标准化后的整个数组的数据范围:[-19.69989776611328, 31.564712524414062]\n"
|
| 238 |
+
]
|
| 239 |
+
}
|
| 240 |
+
],
|
| 241 |
+
"source": [
|
| 242 |
+
"import numpy as np\n",
|
| 243 |
+
"\n",
|
| 244 |
+
"# 假设 data36['target_CP'] 是你的原始数据, target_CP, control_CP\n",
|
| 245 |
+
"data_with_outlier = data36['target_CP']\n",
|
| 246 |
+
"\n",
|
| 247 |
+
"# 1. 异常值处理 - 使用截断法 (Clipping)\n",
|
| 248 |
+
"# 设定一个更保守的上限,例如基于分位数\n",
|
| 249 |
+
"q99 = np.percentile(data_with_outlier, 99)\n",
|
| 250 |
+
"clip_max = q99 * 2 # 或者直接用一个固定值,比如 5\n",
|
| 251 |
+
"data_clipped = np.clip(data_with_outlier, a_min=None, a_max=clip_max)\n",
|
| 252 |
+
"# 2. 数据标准化 - Z-score Normalization\n",
|
| 253 |
+
"# 计算每列(特征)的均值和标准差\n",
|
| 254 |
+
"mu = data_clipped.mean(axis=0)\n",
|
| 255 |
+
"sigma = data_clipped.std(axis=0)\n",
|
| 256 |
+
"\n",
|
| 257 |
+
"# 初始化一个与数据形状相同的零数组\n",
|
| 258 |
+
"data_normalized = np.zeros_like(data_clipped, dtype=float)\n",
|
| 259 |
+
"\n",
|
| 260 |
+
"# 找到标准差不为0的列\n",
|
| 261 |
+
"# 为了避免浮点数误差,使用一个非常小的阈值来检查\n",
|
| 262 |
+
"epsilon = 1e-8\n",
|
| 263 |
+
"nonzero_sigma_cols = sigma > epsilon\n",
|
| 264 |
+
"\n",
|
| 265 |
+
"# 对这些列进行零均值化\n",
|
| 266 |
+
"data_normalized[:, nonzero_sigma_cols] = (data_clipped[:, nonzero_sigma_cols] - mu[nonzero_sigma_cols]) / sigma[nonzero_sigma_cols]\n",
|
| 267 |
+
"\n",
|
| 268 |
+
"# 检查结果\n",
|
| 269 |
+
"data_min = data_normalized.min()\n",
|
| 270 |
+
"data_max = data_normalized.max()\n",
|
| 271 |
+
"\n",
|
| 272 |
+
"print(f\"\\n标准化后的整个数组的数据范围:[{data_min}, {data_max}]\")"
|
| 273 |
+
]
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"cell_type": "code",
|
| 277 |
+
"execution_count": 10,
|
| 278 |
+
"id": "9ccda958",
|
| 279 |
+
"metadata": {},
|
| 280 |
+
"outputs": [],
|
| 281 |
+
"source": [
|
| 282 |
+
"# control_CP = data_normalized.copy()\n",
|
| 283 |
+
"# print(control_CP.shape)\n",
|
| 284 |
+
"target_CP = data_normalized.copy()"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"cell_type": "code",
|
| 289 |
+
"execution_count": 11,
|
| 290 |
+
"id": "6e515034",
|
| 291 |
+
"metadata": {},
|
| 292 |
+
"outputs": [
|
| 293 |
+
{
|
| 294 |
+
"name": "stdout",
|
| 295 |
+
"output_type": "stream",
|
| 296 |
+
"text": [
|
| 297 |
+
"整个数组的数据范围:[-43.761436462402344, 6.348904132843018]\n",
|
| 298 |
+
"------------------------------\n",
|
| 299 |
+
"整个数组的数据范围:[-19.69989776611328, 31.564712524414062]\n",
|
| 300 |
+
"------------------------------\n"
|
| 301 |
+
]
|
| 302 |
+
}
|
| 303 |
+
],
|
| 304 |
+
"source": [
|
| 305 |
+
"import numpy as np\n",
|
| 306 |
+
"\n",
|
| 307 |
+
"data_min = control_CP.min()\n",
|
| 308 |
+
"data_max = control_CP.max()\n",
|
| 309 |
+
"\n",
|
| 310 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 311 |
+
"print(\"-\" * 30)\n",
|
| 312 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 313 |
+
"data_min = target_CP.min()\n",
|
| 314 |
+
"data_max = target_CP.max()\n",
|
| 315 |
+
"\n",
|
| 316 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 317 |
+
"print(\"-\" * 30)"
|
| 318 |
+
]
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"cell_type": "code",
|
| 322 |
+
"execution_count": 12,
|
| 323 |
+
"id": "481b57e7",
|
| 324 |
+
"metadata": {},
|
| 325 |
+
"outputs": [
|
| 326 |
+
{
|
| 327 |
+
"name": "stdout",
|
| 328 |
+
"output_type": "stream",
|
| 329 |
+
"text": [
|
| 330 |
+
"float64 float64\n",
|
| 331 |
+
"float32 float32\n"
|
| 332 |
+
]
|
| 333 |
+
}
|
| 334 |
+
],
|
| 335 |
+
"source": [
|
| 336 |
+
"print(control_CP.dtype, target_CP.dtype)\n",
|
| 337 |
+
"\n",
|
| 338 |
+
"control_CP_float32 = control_CP.astype(np.float32)\n",
|
| 339 |
+
"target_CP_float32 = target_CP.astype(np.float32)\n",
|
| 340 |
+
"print(control_CP_float32.dtype, target_CP_float32.dtype)"
|
| 341 |
+
]
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"cell_type": "code",
|
| 345 |
+
"execution_count": 13,
|
| 346 |
+
"id": "6e2d6030",
|
| 347 |
+
"metadata": {},
|
| 348 |
+
"outputs": [
|
| 349 |
+
{
|
| 350 |
+
"name": "stdout",
|
| 351 |
+
"output_type": "stream",
|
| 352 |
+
"text": [
|
| 353 |
+
"已删除旧的 'control_CP' 数据集。\n",
|
| 354 |
+
"已删除旧的 'target_CP' 数据集。\n",
|
| 355 |
+
"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\n",
|
| 356 |
+
"操作完成。\n"
|
| 357 |
+
]
|
| 358 |
+
}
|
| 359 |
+
],
|
| 360 |
+
"source": [
|
| 361 |
+
"file_path = 'Aggregated_CP_GE.h5'\n",
|
| 362 |
+
"# 使用 'a' (append) 模式打开文件\n",
|
| 363 |
+
"with h5py.File(file_path, 'a') as f:\n",
|
| 364 |
+
" \n",
|
| 365 |
+
" # 1. 删除旧的数据集(如果存在)\n",
|
| 366 |
+
" if \"control_CP\" in f:\n",
|
| 367 |
+
" del f[\"control_CP\"]\n",
|
| 368 |
+
" print(\"已删除旧的 'control_CP' 数据集。\")\n",
|
| 369 |
+
" \n",
|
| 370 |
+
" if \"target_CP\" in f:\n",
|
| 371 |
+
" del f[\"target_CP\"]\n",
|
| 372 |
+
" print(\"已删除旧的 'target_CP' 数据集。\")\n",
|
| 373 |
+
" \n",
|
| 374 |
+
" # 2. 创建并写入新的数据集\n",
|
| 375 |
+
" f.create_dataset(\"control_CP\", data=control_CP_float32)\n",
|
| 376 |
+
" f.create_dataset(\"target_CP\", data=target_CP_float32)\n",
|
| 377 |
+
" \n",
|
| 378 |
+
" print(\"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\")\n",
|
| 379 |
+
"\n",
|
| 380 |
+
"print(\"操作完成。\")\n"
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"cell_type": "code",
|
| 385 |
+
"execution_count": null,
|
| 386 |
+
"id": "b131c13e",
|
| 387 |
+
"metadata": {},
|
| 388 |
+
"outputs": [],
|
| 389 |
+
"source": []
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"cell_type": "markdown",
|
| 393 |
+
"id": "5a82372f",
|
| 394 |
+
"metadata": {},
|
| 395 |
+
"source": [
|
| 396 |
+
"# 看基因数据是否异常 -- 没有"
|
| 397 |
+
]
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"cell_type": "code",
|
| 401 |
+
"execution_count": 14,
|
| 402 |
+
"id": "a81ddc86",
|
| 403 |
+
"metadata": {},
|
| 404 |
+
"outputs": [
|
| 405 |
+
{
|
| 406 |
+
"name": "stdout",
|
| 407 |
+
"output_type": "stream",
|
| 408 |
+
"text": [
|
| 409 |
+
"整个数组的数据范围:[-43.761436462402344, 6.348904132843018]\n",
|
| 410 |
+
"------------------------------\n",
|
| 411 |
+
"每列数据的最小值(前10个):\n",
|
| 412 |
+
"[-1.6301312 -1.4819461 -1.9675876 -2.272238 -3.393242 -1.1765975\n",
|
| 413 |
+
" -2.6176555 -1.2396002 -2.462905 -2.8029377]\n",
|
| 414 |
+
"------------------------------\n",
|
| 415 |
+
"每列数据的最大值(前10个):\n",
|
| 416 |
+
"[3.0697236 1.985853 1.09526 1.1315886 2.1168044 2.9211075 2.1078165\n",
|
| 417 |
+
" 2.3139157 2.1509798 1.5131917]\n"
|
| 418 |
+
]
|
| 419 |
+
}
|
| 420 |
+
],
|
| 421 |
+
"source": [
|
| 422 |
+
"import numpy as np\n",
|
| 423 |
+
"\n",
|
| 424 |
+
"data36 = load_from_HDF( 'Aggregated_CP_GE.h5')\n",
|
| 425 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 426 |
+
"data_min = data36['control_CP'].min()\n",
|
| 427 |
+
"data_max = data36['control_CP'].max()\n",
|
| 428 |
+
"\n",
|
| 429 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 430 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 431 |
+
"min_per_column = np.min(data36['control_CP'], axis=0)\n",
|
| 432 |
+
"max_per_column = np.max(data36['control_CP'], axis=0)\n",
|
| 433 |
+
"\n",
|
| 434 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 435 |
+
"print(\"-\" * 30)\n",
|
| 436 |
+
"print(\"每列数据的最小值(前10个):\")\n",
|
| 437 |
+
"print(min_per_column[:10])\n",
|
| 438 |
+
"print(\"-\" * 30)\n",
|
| 439 |
+
"print(\"每列数据的最大值(前10个):\")\n",
|
| 440 |
+
"print(max_per_column[:10])"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"cell_type": "code",
|
| 445 |
+
"execution_count": null,
|
| 446 |
+
"id": "770f3727",
|
| 447 |
+
"metadata": {},
|
| 448 |
+
"outputs": [],
|
| 449 |
+
"source": [
|
| 450 |
+
"# 看看方差\n"
|
| 451 |
+
]
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"cell_type": "code",
|
| 455 |
+
"execution_count": null,
|
| 456 |
+
"id": "10693804",
|
| 457 |
+
"metadata": {},
|
| 458 |
+
"outputs": [],
|
| 459 |
+
"source": []
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"cell_type": "code",
|
| 463 |
+
"execution_count": null,
|
| 464 |
+
"id": "c072eea5",
|
| 465 |
+
"metadata": {},
|
| 466 |
+
"outputs": [],
|
| 467 |
+
"source": []
|
| 468 |
+
}
|
| 469 |
+
],
|
| 470 |
+
"metadata": {
|
| 471 |
+
"kernelspec": {
|
| 472 |
+
"display_name": "boom",
|
| 473 |
+
"language": "python",
|
| 474 |
+
"name": "python3"
|
| 475 |
+
},
|
| 476 |
+
"language_info": {
|
| 477 |
+
"codemirror_mode": {
|
| 478 |
+
"name": "ipython",
|
| 479 |
+
"version": 3
|
| 480 |
+
},
|
| 481 |
+
"file_extension": ".py",
|
| 482 |
+
"mimetype": "text/x-python",
|
| 483 |
+
"name": "python",
|
| 484 |
+
"nbconvert_exporter": "python",
|
| 485 |
+
"pygments_lexer": "ipython3",
|
| 486 |
+
"version": "3.11.10"
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
"nbformat": 4,
|
| 490 |
+
"nbformat_minor": 5
|
| 491 |
+
}
|
MVC/MVC_BBBC036/Step1_data_process.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/MVC_BBBC036/Step2_align.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/MVC_BBBC036/Step3_aggreate_2modality copy.ipynb
ADDED
|
@@ -0,0 +1,786 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"## 数据聚合:「输入药物 SMILES,输出基因表达 + 细胞形态」的多模态虚拟细胞模型,配对不齐,训练集不均衡。\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"## 策略有3种:\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### 1 是按 SMILES 聚合,对每个 SMILES 在每个模态上 取平均或中位数(或更复杂的 embedding 聚合)。\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"### 2 是多实例学习(Multiple Instance Learning, MIL):思路:把一个 SMILES 的所有 replicate 当作一个 bag,模型学习 bag-level 对齐。\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"### 3 是不对齐 replicate,随机采样:思路:训练时,每个 batch 从两个模态中随机采样该 SMILES 的一个 replicate,逐步逼近两个分布。"
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"cell_type": "code",
|
| 20 |
+
"execution_count": 6,
|
| 21 |
+
"metadata": {},
|
| 22 |
+
"outputs": [],
|
| 23 |
+
"source": [
|
| 24 |
+
"import numpy as np\n",
|
| 25 |
+
"import pandas as pd\n",
|
| 26 |
+
"import matplotlib.pyplot as plt\n",
|
| 27 |
+
"import seaborn as sns\n",
|
| 28 |
+
"import os\n",
|
| 29 |
+
"import h5py\n",
|
| 30 |
+
"\n",
|
| 31 |
+
"def load_from_HDF(fname):\n",
|
| 32 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 33 |
+
" data = dict()\n",
|
| 34 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 35 |
+
" for key in f:\n",
|
| 36 |
+
" data[key] = np.asarray(f[key])\n",
|
| 37 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 38 |
+
" data[key] = data[key].astype(str)\n",
|
| 39 |
+
" return data\n"
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"cell_type": "code",
|
| 44 |
+
"execution_count": 7,
|
| 45 |
+
"metadata": {},
|
| 46 |
+
"outputs": [],
|
| 47 |
+
"source": [
|
| 48 |
+
"CP_path = './Processed_Paired_CP.h5'\n",
|
| 49 |
+
"GE_path = './Processed_Paired_GE.h5'\n",
|
| 50 |
+
"\n",
|
| 51 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 52 |
+
"GE_CSV = load_from_HDF(GE_path)"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"cell_type": "code",
|
| 57 |
+
"execution_count": 3,
|
| 58 |
+
"metadata": {},
|
| 59 |
+
"outputs": [
|
| 60 |
+
{
|
| 61 |
+
"data": {
|
| 62 |
+
"text/plain": [
|
| 63 |
+
"{'canonical_smiles': array(['C#CCOC(=O)C1=CCCN(C)C1',\n",
|
| 64 |
+
" 'C#C[C@]1(O)CC[C@H]2[C@@H]3CCC4=CC(=O)CC[C@@H]4[C@H]3CC[C@@]21CC',\n",
|
| 65 |
+
" 'C#C[C@]1(O)CC[C@H]2[C@@H]3CCc4cc(OC)ccc4[C@H]3CC[C@@]21C', ...,\n",
|
| 66 |
+
" 'c1cncc(C2=NCCC2)c1', 'c1coc(CNc2ncnc3[nH]cnc23)c1',\n",
|
| 67 |
+
" 'c1nc(CCCC2CCNCC2)c[nH]1'], dtype='<U227'),\n",
|
| 68 |
+
" 'control': array([[-0.06009524, -0.2170542 , 0.21140526, ..., 0.1283901 ,\n",
|
| 69 |
+
" 0.2584292 , 0.20108473],\n",
|
| 70 |
+
" [-0.06009524, -0.2170542 , 0.21140526, ..., 0.1283901 ,\n",
|
| 71 |
+
" 0.2584292 , 0.20108473],\n",
|
| 72 |
+
" [-0.06009524, -0.2170542 , 0.21140526, ..., 0.1283901 ,\n",
|
| 73 |
+
" 0.2584292 , 0.20108473],\n",
|
| 74 |
+
" ...,\n",
|
| 75 |
+
" [-0.04660993, -0.15566814, 0.16524817, ..., 0.13523042,\n",
|
| 76 |
+
" 0.2184239 , 0.12808448],\n",
|
| 77 |
+
" [-0.04660993, -0.15566814, 0.16524817, ..., 0.13523042,\n",
|
| 78 |
+
" 0.2184239 , 0.12808448],\n",
|
| 79 |
+
" [-0.04660993, -0.15566814, 0.16524817, ..., 0.13523042,\n",
|
| 80 |
+
" 0.2184239 , 0.12808448]], dtype=float32),\n",
|
| 81 |
+
" 'target': array([[ 0.20242606, 0.37789968, -0.12808509, ..., -0.40345412,\n",
|
| 82 |
+
" -0.02612734, 0.8973323 ],\n",
|
| 83 |
+
" [-0.40302846, -0.21528135, 0.54286873, ..., -0.7699544 ,\n",
|
| 84 |
+
" -0.06759822, 0.1704398 ],\n",
|
| 85 |
+
" [-0.10030121, -0.23437162, 0.40763763, ..., 0.08733866,\n",
|
| 86 |
+
" 0.31274182, 0.99544084],\n",
|
| 87 |
+
" ...,\n",
|
| 88 |
+
" [-0.9691039 , -0.2935919 , 0.6202567 , ..., -0.3105628 ,\n",
|
| 89 |
+
" -0.07092339, -0.30973706],\n",
|
| 90 |
+
" [ 0.23442163, -0.12433557, -0.10770472, ..., -0.13565809,\n",
|
| 91 |
+
" 0.6637088 , -0.52422494],\n",
|
| 92 |
+
" [-0.7016537 , 0.645092 , -0.4753387 , ..., -0.77215654,\n",
|
| 93 |
+
" -0.44080254, 0.06545502]], dtype=float32)}"
|
| 94 |
+
]
|
| 95 |
+
},
|
| 96 |
+
"execution_count": 3,
|
| 97 |
+
"metadata": {},
|
| 98 |
+
"output_type": "execute_result"
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"source": [
|
| 102 |
+
"CP_CSV"
|
| 103 |
+
]
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"cell_type": "code",
|
| 107 |
+
"execution_count": 4,
|
| 108 |
+
"metadata": {},
|
| 109 |
+
"outputs": [
|
| 110 |
+
{
|
| 111 |
+
"data": {
|
| 112 |
+
"text/plain": [
|
| 113 |
+
"((14996, 602), (3451, 977))"
|
| 114 |
+
]
|
| 115 |
+
},
|
| 116 |
+
"execution_count": 4,
|
| 117 |
+
"metadata": {},
|
| 118 |
+
"output_type": "execute_result"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"source": [
|
| 122 |
+
"CP_CSV['target'].shape, GE_CSV['target'].shape"
|
| 123 |
+
]
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"cell_type": "code",
|
| 127 |
+
"execution_count": null,
|
| 128 |
+
"metadata": {},
|
| 129 |
+
"outputs": [],
|
| 130 |
+
"source": []
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"cell_type": "markdown",
|
| 134 |
+
"metadata": {},
|
| 135 |
+
"source": [
|
| 136 |
+
"# 按照第一种方式直接 mean"
|
| 137 |
+
]
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"cell_type": "code",
|
| 141 |
+
"execution_count": 3,
|
| 142 |
+
"metadata": {},
|
| 143 |
+
"outputs": [
|
| 144 |
+
{
|
| 145 |
+
"name": "stdout",
|
| 146 |
+
"output_type": "stream",
|
| 147 |
+
"text": [
|
| 148 |
+
"✅ 聚合后的数据已保存到 ./Aggregated_CP_GE.h5\n"
|
| 149 |
+
]
|
| 150 |
+
}
|
| 151 |
+
],
|
| 152 |
+
"source": [
|
| 153 |
+
"import h5py\n",
|
| 154 |
+
"import numpy as np\n",
|
| 155 |
+
"import pandas as pd\n",
|
| 156 |
+
"\n",
|
| 157 |
+
"def aggregate_modalities(CP, GE, out_path):\n",
|
| 158 |
+
" # 转成 DataFrame 方便聚合\n",
|
| 159 |
+
" CP_df = pd.DataFrame({\n",
|
| 160 |
+
" \"SMILES\": CP[\"canonical_smiles\"],\n",
|
| 161 |
+
" \"control\": list(CP[\"control\"]),\n",
|
| 162 |
+
" \"target\": list(CP[\"target\"])\n",
|
| 163 |
+
" })\n",
|
| 164 |
+
" GE_df = pd.DataFrame({\n",
|
| 165 |
+
" \"SMILES\": GE[\"canonical_smiles\"],\n",
|
| 166 |
+
" \"control\": list(GE[\"control\"]),\n",
|
| 167 |
+
" \"target\": list(GE[\"target\"])\n",
|
| 168 |
+
" })\n",
|
| 169 |
+
"\n",
|
| 170 |
+
" # groupby + mean pooling\n",
|
| 171 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 172 |
+
" GE_grouped = GE_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 173 |
+
"\n",
|
| 174 |
+
" # merge 保证对齐\n",
|
| 175 |
+
" merged = pd.merge(CP_grouped, GE_grouped, on=\"SMILES\", how=\"inner\", suffixes=(\"_CP\", \"_GE\"))\n",
|
| 176 |
+
"\n",
|
| 177 |
+
" # 转 numpy array 并替换剩余 NaN\n",
|
| 178 |
+
" def clean_array(arr_list):\n",
|
| 179 |
+
" arr = np.stack(arr_list.to_numpy())\n",
|
| 180 |
+
" arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0) # 替换 NaN/Inf\n",
|
| 181 |
+
" return arr.astype(np.float32)\n",
|
| 182 |
+
"\n",
|
| 183 |
+
" smiles_array = merged[\"SMILES\"].to_numpy(dtype=\"S\")\n",
|
| 184 |
+
" control_CP_array = clean_array(merged[\"control_CP\"])\n",
|
| 185 |
+
" target_CP_array = clean_array(merged[\"target_CP\"])\n",
|
| 186 |
+
" control_GE_array = clean_array(merged[\"control_GE\"])\n",
|
| 187 |
+
" target_GE_array = clean_array(merged[\"target_GE\"])\n",
|
| 188 |
+
"\n",
|
| 189 |
+
" # 存 HDF5\n",
|
| 190 |
+
" with h5py.File(out_path, \"w\") as f:\n",
|
| 191 |
+
" f.create_dataset(\"canonical_smiles\", data=smiles_array)\n",
|
| 192 |
+
" f.create_dataset(\"control_CP\", data=control_CP_array)\n",
|
| 193 |
+
" f.create_dataset(\"target_CP\", data=target_CP_array)\n",
|
| 194 |
+
" f.create_dataset(\"control_GE\", data=control_GE_array)\n",
|
| 195 |
+
" f.create_dataset(\"target_GE\", data=target_GE_array)\n",
|
| 196 |
+
"\n",
|
| 197 |
+
" print(f\"✅ 聚合后的数据已保存到 {out_path}\")\n",
|
| 198 |
+
"\n",
|
| 199 |
+
"# 用法\n",
|
| 200 |
+
"# root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 201 |
+
"CP_path = './Processed_Paired_CP.h5'\n",
|
| 202 |
+
"GE_path = './Processed_Paired_GE.h5'\n",
|
| 203 |
+
"\n",
|
| 204 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 205 |
+
"GE_CSV = load_from_HDF(GE_path)\n",
|
| 206 |
+
"\n",
|
| 207 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 208 |
+
"aggregate_modalities(CP_CSV, GE_CSV, out_path)\n"
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"cell_type": "code",
|
| 213 |
+
"execution_count": 4,
|
| 214 |
+
"metadata": {},
|
| 215 |
+
"outputs": [
|
| 216 |
+
{
|
| 217 |
+
"data": {
|
| 218 |
+
"text/plain": [
|
| 219 |
+
"{'canonical_smiles': array(['Brc1c(NC2=NCCN2)ccc2nccnc12', 'C#CCN(C)CCCOc1ccc(Cl)cc1Cl',\n",
|
| 220 |
+
" 'C#CCN1C(C)=C(C(=O)CCO)C(c2cccc(-n3oo3)c2)C(C(=O)OC)=C1C', ...,\n",
|
| 221 |
+
" 'c1coc(CNc2ncnc3[nH]cnc23)c1', 'c1nc(CC2CCNCC2)c[nH]1',\n",
|
| 222 |
+
" 'c1nc(CCCC2CCNCC2)c[nH]1'], dtype='<U227'),\n",
|
| 223 |
+
" 'control_CP': array([[-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 224 |
+
" 0.21078211, 0.13338298],\n",
|
| 225 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 226 |
+
" 0.21078211, 0.13338298],\n",
|
| 227 |
+
" [-0.03419905, -0.1922472 , 0.18566999, ..., 0.17574853,\n",
|
| 228 |
+
" 0.33123744, 0.21626002],\n",
|
| 229 |
+
" ...,\n",
|
| 230 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 231 |
+
" 0.21078211, 0.13338298],\n",
|
| 232 |
+
" [-0.04489063, -0.14671806, 0.12026446, ..., 0.12773524,\n",
|
| 233 |
+
" 0.21260148, 0.16793586],\n",
|
| 234 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 235 |
+
" 0.21078211, 0.13338298]], dtype=float32),\n",
|
| 236 |
+
" 'control_GE': array([[ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 237 |
+
" -0.02412532, 0.08308113],\n",
|
| 238 |
+
" [-0.05236533, -0.00944031, 0.01470257, ..., -0.1302189 ,\n",
|
| 239 |
+
" 0.1095909 , -0.00176817],\n",
|
| 240 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 241 |
+
" -0.04355722, -0.13316433],\n",
|
| 242 |
+
" ...,\n",
|
| 243 |
+
" [-0.05236533, -0.00944031, 0.01470257, ..., -0.1302189 ,\n",
|
| 244 |
+
" 0.1095909 , -0.00176817],\n",
|
| 245 |
+
" [ 0.02062 , -0.00183125, -0.13683268, ..., -0.17978694,\n",
|
| 246 |
+
" 0.21799538, 0.17114288],\n",
|
| 247 |
+
" [ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 248 |
+
" -0.02412532, 0.08308113]], dtype=float32),\n",
|
| 249 |
+
" 'target_CP': array([[ 0.47359726, 0.3149385 , -0.2134298 , ..., 0.14258505,\n",
|
| 250 |
+
" -0.23095778, 1.3368101 ],\n",
|
| 251 |
+
" [-0.2682222 , -0.6758744 , 0.3996619 , ..., 0.35662955,\n",
|
| 252 |
+
" -0.12905961, -0.09158537],\n",
|
| 253 |
+
" [ 0.37451744, -0.25577283, 0.26045328, ..., -0.23579153,\n",
|
| 254 |
+
" -0.23442191, -0.41257128],\n",
|
| 255 |
+
" ...,\n",
|
| 256 |
+
" [-0.1709819 , -0.5260589 , 0.4987828 , ..., 0.5009768 ,\n",
|
| 257 |
+
" 0.41748047, 0.18332437],\n",
|
| 258 |
+
" [ 0.13757834, -0.20250246, 0.19951464, ..., -0.3296469 ,\n",
|
| 259 |
+
" -0.11514819, -0.1843171 ],\n",
|
| 260 |
+
" [-0.46352574, 0.35824373, -0.32413673, ..., -0.31744272,\n",
|
| 261 |
+
" -0.5073174 , -0.03345545]], dtype=float32),\n",
|
| 262 |
+
" 'target_GE': array([[-0.07302775, 0.0460825 , -0.02222175, ..., 0.17655626,\n",
|
| 263 |
+
" -0.154201 , 0.033125 ],\n",
|
| 264 |
+
" [ 0.10191549, -0.24803169, 0.11954501, ..., -0.16921 ,\n",
|
| 265 |
+
" 0.02239785, -0.0529015 ],\n",
|
| 266 |
+
" [-0.034165 , 0.048892 , 0.1231085 , ..., 0.42318 ,\n",
|
| 267 |
+
" 0.034605 , 0.21026 ],\n",
|
| 268 |
+
" ...,\n",
|
| 269 |
+
" [ 0.0316805 , -0.1364167 , 0.02315 , ..., 0.10307 ,\n",
|
| 270 |
+
" 0.17449784, 0.1486385 ],\n",
|
| 271 |
+
" [ 0.22472501, 0.20904249, -0.2872 , ..., -0.22035149,\n",
|
| 272 |
+
" 0.5861085 , 0.278331 ],\n",
|
| 273 |
+
" [ 0.01292225, 0.07139751, -0.13613375, ..., -0.16344374,\n",
|
| 274 |
+
" 0.053449 , -0.200645 ]], dtype=float32)}"
|
| 275 |
+
]
|
| 276 |
+
},
|
| 277 |
+
"execution_count": 4,
|
| 278 |
+
"metadata": {},
|
| 279 |
+
"output_type": "execute_result"
|
| 280 |
+
}
|
| 281 |
+
],
|
| 282 |
+
"source": [
|
| 283 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 284 |
+
"\n",
|
| 285 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 286 |
+
"agg_data"
|
| 287 |
+
]
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"cell_type": "code",
|
| 291 |
+
"execution_count": 5,
|
| 292 |
+
"metadata": {},
|
| 293 |
+
"outputs": [
|
| 294 |
+
{
|
| 295 |
+
"data": {
|
| 296 |
+
"text/plain": [
|
| 297 |
+
"((1916, 602), (1916, 602), (1916, 977), (1916, 977))"
|
| 298 |
+
]
|
| 299 |
+
},
|
| 300 |
+
"execution_count": 5,
|
| 301 |
+
"metadata": {},
|
| 302 |
+
"output_type": "execute_result"
|
| 303 |
+
}
|
| 304 |
+
],
|
| 305 |
+
"source": [
|
| 306 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 307 |
+
]
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"cell_type": "code",
|
| 311 |
+
"execution_count": 21,
|
| 312 |
+
"metadata": {},
|
| 313 |
+
"outputs": [
|
| 314 |
+
{
|
| 315 |
+
"data": {
|
| 316 |
+
"text/plain": [
|
| 317 |
+
"True"
|
| 318 |
+
]
|
| 319 |
+
},
|
| 320 |
+
"execution_count": 21,
|
| 321 |
+
"metadata": {},
|
| 322 |
+
"output_type": "execute_result"
|
| 323 |
+
}
|
| 324 |
+
],
|
| 325 |
+
"source": [
|
| 326 |
+
"'O=C(C[C@@H]1CC[C@@H]2[C@H](COC[C@H](O)CN2Cc2cc(F)cc(F)c2)O1)Nc1nccs1' in agg_data['canonical_smiles']"
|
| 327 |
+
]
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"cell_type": "markdown",
|
| 331 |
+
"metadata": {},
|
| 332 |
+
"source": [
|
| 333 |
+
"# 复杂点,样本级别的配对"
|
| 334 |
+
]
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"cell_type": "code",
|
| 338 |
+
"execution_count": 6,
|
| 339 |
+
"metadata": {},
|
| 340 |
+
"outputs": [
|
| 341 |
+
{
|
| 342 |
+
"name": "stdout",
|
| 343 |
+
"output_type": "stream",
|
| 344 |
+
"text": [
|
| 345 |
+
"共有化合物: 1916\n",
|
| 346 |
+
"总配对样本数: 26948\n",
|
| 347 |
+
"数据集形状:\n",
|
| 348 |
+
" control_CP: (26948, 602)\n",
|
| 349 |
+
" target_CP: (26948, 602)\n",
|
| 350 |
+
" control_GE: (26948, 977)\n",
|
| 351 |
+
" target_GE: (26948, 977)\n",
|
| 352 |
+
"✅ 配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 353 |
+
]
|
| 354 |
+
}
|
| 355 |
+
],
|
| 356 |
+
"source": [
|
| 357 |
+
"import h5py\n",
|
| 358 |
+
"import numpy as np\n",
|
| 359 |
+
"import pandas as pd\n",
|
| 360 |
+
"from collections import defaultdict\n",
|
| 361 |
+
"\n",
|
| 362 |
+
"def create_paired_dataset(CP_data, GE_data, out_path):\n",
|
| 363 |
+
" \"\"\"\n",
|
| 364 |
+
" 创建样本级配对的多模态数据集\n",
|
| 365 |
+
" 保持原始样本的完整性,只配对真正对应的样本\n",
|
| 366 |
+
" \"\"\"\n",
|
| 367 |
+
" \n",
|
| 368 |
+
" # 构建SMILES到索引列表的映射\n",
|
| 369 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 370 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 371 |
+
" \n",
|
| 372 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 373 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 374 |
+
" \n",
|
| 375 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 376 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 377 |
+
" \n",
|
| 378 |
+
" # 找到共有的SMILES\n",
|
| 379 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 380 |
+
" print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 381 |
+
" \n",
|
| 382 |
+
" # 收集所有有效配对\n",
|
| 383 |
+
" paired_samples = []\n",
|
| 384 |
+
" \n",
|
| 385 |
+
" for smiles in common_smiles:\n",
|
| 386 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 387 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 388 |
+
" \n",
|
| 389 |
+
" # 为每个SMILES创建所有可能的CP-GE配对\n",
|
| 390 |
+
" for cp_idx in cp_indices:\n",
|
| 391 |
+
" for ge_idx in ge_indices:\n",
|
| 392 |
+
" paired_samples.append({\n",
|
| 393 |
+
" 'canonical_smiles': smiles,\n",
|
| 394 |
+
" 'cp_index': cp_idx,\n",
|
| 395 |
+
" 'ge_index': ge_idx\n",
|
| 396 |
+
" })\n",
|
| 397 |
+
" \n",
|
| 398 |
+
" print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 399 |
+
" \n",
|
| 400 |
+
" # 创建最终的字典形数据集\n",
|
| 401 |
+
" dataset_dict = {\n",
|
| 402 |
+
" 'canonical_smiles': [],\n",
|
| 403 |
+
" 'control_CP': [],\n",
|
| 404 |
+
" 'target_CP': [], \n",
|
| 405 |
+
" 'control_GE': [],\n",
|
| 406 |
+
" 'target_GE': []\n",
|
| 407 |
+
" }\n",
|
| 408 |
+
" \n",
|
| 409 |
+
" for sample in paired_samples:\n",
|
| 410 |
+
" dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 411 |
+
" dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 412 |
+
" dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 413 |
+
" dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 414 |
+
" dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 415 |
+
" \n",
|
| 416 |
+
" # 转换为numpy数组\n",
|
| 417 |
+
" final_dataset = {}\n",
|
| 418 |
+
" final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 419 |
+
" final_dataset['control_CP'] = np.array(dataset_dict['control_CP'], dtype=np.float32)\n",
|
| 420 |
+
" final_dataset['target_CP'] = np.array(dataset_dict['target_CP'], dtype=np.float32)\n",
|
| 421 |
+
" final_dataset['control_GE'] = np.array(dataset_dict['control_GE'], dtype=np.float32)\n",
|
| 422 |
+
" final_dataset['target_GE'] = np.array(dataset_dict['target_GE'], dtype=np.float32)\n",
|
| 423 |
+
" \n",
|
| 424 |
+
" print(f\"数据集形状:\")\n",
|
| 425 |
+
" print(f\" control_CP: {final_dataset['control_CP'].shape}\")\n",
|
| 426 |
+
" print(f\" target_CP: {final_dataset['target_CP'].shape}\")\n",
|
| 427 |
+
" print(f\" control_GE: {final_dataset['control_GE'].shape}\")\n",
|
| 428 |
+
" print(f\" target_GE: {final_dataset['target_GE'].shape}\")\n",
|
| 429 |
+
" \n",
|
| 430 |
+
" # 保存为HDF5\n",
|
| 431 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 432 |
+
" for key, value in final_dataset.items():\n",
|
| 433 |
+
" f.create_dataset(key, data=value)\n",
|
| 434 |
+
" \n",
|
| 435 |
+
" print(f\"✅ 配对数据集已保存到: {out_path}\")\n",
|
| 436 |
+
" return final_dataset\n",
|
| 437 |
+
"\n",
|
| 438 |
+
"# 使用方案\n",
|
| 439 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 440 |
+
"paired_dataset = create_paired_dataset(CP_CSV, GE_CSV, out_path)"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"cell_type": "code",
|
| 445 |
+
"execution_count": 7,
|
| 446 |
+
"metadata": {},
|
| 447 |
+
"outputs": [
|
| 448 |
+
{
|
| 449 |
+
"data": {
|
| 450 |
+
"text/plain": [
|
| 451 |
+
"{'canonical_smiles': array(['CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1',\n",
|
| 452 |
+
" 'CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1',\n",
|
| 453 |
+
" 'CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1', ...,\n",
|
| 454 |
+
" 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O', 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O',\n",
|
| 455 |
+
" 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O'], dtype='<U227'),\n",
|
| 456 |
+
" 'control_CP': array([[-0.05367128, -0.22861896, 0.19134662, ..., 0.09901066,\n",
|
| 457 |
+
" 0.23015772, 0.0870431 ],\n",
|
| 458 |
+
" [-0.05367128, -0.22861896, 0.19134662, ..., 0.09901066,\n",
|
| 459 |
+
" 0.23015772, 0.0870431 ],\n",
|
| 460 |
+
" [-0.04425929, -0.20467344, 0.19937934, ..., 0.10667558,\n",
|
| 461 |
+
" 0.25934276, 0.11115717],\n",
|
| 462 |
+
" ...,\n",
|
| 463 |
+
" [-0.00746798, -0.14845599, 0.17686495, ..., 0.18434836,\n",
|
| 464 |
+
" 0.3559847 , 0.20929421],\n",
|
| 465 |
+
" [-0.0670732 , -0.11723144, 0.11542749, ..., 0.15660104,\n",
|
| 466 |
+
" 0.31949052, 0.1973684 ],\n",
|
| 467 |
+
" [-0.10378247, -0.11118906, 0.11418191, ..., 0.20794444,\n",
|
| 468 |
+
" 0.3261717 , 0.20840377]], dtype=float32),\n",
|
| 469 |
+
" 'control_GE': array([[ 0.008735 , -0.0015245 , -0.00072016, ..., 0.044401 ,\n",
|
| 470 |
+
" -0.2373012 , -0.019055 ],\n",
|
| 471 |
+
" [-0.16669 , 0.03942075, -0.1140243 , ..., -0.3791175 ,\n",
|
| 472 |
+
" 0.35399476, -0.2483125 ],\n",
|
| 473 |
+
" [ 0.008735 , -0.0015245 , -0.00072016, ..., 0.044401 ,\n",
|
| 474 |
+
" -0.2373012 , -0.019055 ],\n",
|
| 475 |
+
" ...,\n",
|
| 476 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 477 |
+
" -0.04355722, -0.13316433],\n",
|
| 478 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 479 |
+
" -0.04355722, -0.13316433],\n",
|
| 480 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 481 |
+
" -0.04355722, -0.13316433]], dtype=float32),\n",
|
| 482 |
+
" 'target_CP': array([[-2.475722 , -1.0180573 , -2.4777994 , ..., -1.6663419 ,\n",
|
| 483 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 484 |
+
" [-2.475722 , -1.0180573 , -2.4777994 , ..., -1.6663419 ,\n",
|
| 485 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 486 |
+
" [-2.475722 , 3.6353707 , -1.1177131 , ..., 3.3711612 ,\n",
|
| 487 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 488 |
+
" ...,\n",
|
| 489 |
+
" [-0.7142158 , 2.8495595 , -2.0671365 , ..., -0.34750465,\n",
|
| 490 |
+
" -0.56493837, -0.8109943 ],\n",
|
| 491 |
+
" [ 1.1229682 , 0.68502927, -0.7133282 , ..., 0.237633 ,\n",
|
| 492 |
+
" 0.43848613, -0.48886108],\n",
|
| 493 |
+
" [-0.6347912 , 1.2815117 , -0.40972736, ..., -0.59789634,\n",
|
| 494 |
+
" -0.81882066, -0.80796003]], dtype=float32),\n",
|
| 495 |
+
" 'target_GE': array([[-0.217655 , -0.0130605 , -0.32715666, ..., -0.279299 ,\n",
|
| 496 |
+
" 0.4241275 , 1.109114 ],\n",
|
| 497 |
+
" [-0.918455 , 0.3162145 , -0.4372258 , ..., -2.098005 ,\n",
|
| 498 |
+
" 0.3910935 , 0.438925 ],\n",
|
| 499 |
+
" [-0.217655 , -0.0130605 , -0.32715666, ..., -0.279299 ,\n",
|
| 500 |
+
" 0.4241275 , 1.109114 ],\n",
|
| 501 |
+
" ...,\n",
|
| 502 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 503 |
+
" 0.091715 , 0.10284 ],\n",
|
| 504 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 505 |
+
" 0.091715 , 0.10284 ],\n",
|
| 506 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 507 |
+
" 0.091715 , 0.10284 ]], dtype=float32)}"
|
| 508 |
+
]
|
| 509 |
+
},
|
| 510 |
+
"execution_count": 7,
|
| 511 |
+
"metadata": {},
|
| 512 |
+
"output_type": "execute_result"
|
| 513 |
+
}
|
| 514 |
+
],
|
| 515 |
+
"source": [
|
| 516 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 517 |
+
"\n",
|
| 518 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 519 |
+
"agg_data"
|
| 520 |
+
]
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"cell_type": "code",
|
| 524 |
+
"execution_count": 8,
|
| 525 |
+
"metadata": {},
|
| 526 |
+
"outputs": [
|
| 527 |
+
{
|
| 528 |
+
"data": {
|
| 529 |
+
"text/plain": [
|
| 530 |
+
"((26948, 602), (26948, 602), (26948, 977), (26948, 977))"
|
| 531 |
+
]
|
| 532 |
+
},
|
| 533 |
+
"execution_count": 8,
|
| 534 |
+
"metadata": {},
|
| 535 |
+
"output_type": "execute_result"
|
| 536 |
+
}
|
| 537 |
+
],
|
| 538 |
+
"source": [
|
| 539 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 540 |
+
]
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"cell_type": "code",
|
| 544 |
+
"execution_count": null,
|
| 545 |
+
"metadata": {},
|
| 546 |
+
"outputs": [],
|
| 547 |
+
"source": []
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"cell_type": "markdown",
|
| 551 |
+
"metadata": {},
|
| 552 |
+
"source": [
|
| 553 |
+
"# 限制配对的数量,更好收敛。"
|
| 554 |
+
]
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"cell_type": "code",
|
| 558 |
+
"execution_count": 25,
|
| 559 |
+
"metadata": {},
|
| 560 |
+
"outputs": [
|
| 561 |
+
{
|
| 562 |
+
"name": "stdout",
|
| 563 |
+
"output_type": "stream",
|
| 564 |
+
"text": [
|
| 565 |
+
"开始创建稳健配对数据集...\n",
|
| 566 |
+
"共有化合物: 20341\n",
|
| 567 |
+
"处理进度: 0/20341\n",
|
| 568 |
+
"处理进度: 1000/20341\n",
|
| 569 |
+
"处理进度: 2000/20341\n",
|
| 570 |
+
"处理进度: 3000/20341\n",
|
| 571 |
+
"处理进度: 4000/20341\n",
|
| 572 |
+
"处理进度: 5000/20341\n",
|
| 573 |
+
"处理进度: 6000/20341\n",
|
| 574 |
+
"处理进度: 7000/20341\n",
|
| 575 |
+
"处理进度: 8000/20341\n",
|
| 576 |
+
"处理进度: 9000/20341\n",
|
| 577 |
+
"处理进度: 10000/20341\n",
|
| 578 |
+
"处理进度: 11000/20341\n",
|
| 579 |
+
"处理进度: 12000/20341\n",
|
| 580 |
+
"处理进度: 13000/20341\n",
|
| 581 |
+
"处理进度: 14000/20341\n",
|
| 582 |
+
"处理进度: 15000/20341\n",
|
| 583 |
+
"处理进度: 16000/20341\n",
|
| 584 |
+
"处理进度: 17000/20341\n",
|
| 585 |
+
"处理进度: 18000/20341\n",
|
| 586 |
+
"处理进度: 19000/20341\n",
|
| 587 |
+
"处理进度: 20000/20341\n",
|
| 588 |
+
"总配对样本数: 223689\n",
|
| 589 |
+
"数据收集进度: 0/223689\n",
|
| 590 |
+
"数据收集进度: 10000/223689\n",
|
| 591 |
+
"数据收集进度: 20000/223689\n",
|
| 592 |
+
"数据收集进度: 30000/223689\n",
|
| 593 |
+
"数据收集进度: 40000/223689\n",
|
| 594 |
+
"数据收集进度: 50000/223689\n",
|
| 595 |
+
"数据收集进度: 60000/223689\n",
|
| 596 |
+
"数据收集进度: 70000/223689\n",
|
| 597 |
+
"数据收集进度: 80000/223689\n",
|
| 598 |
+
"数据收集进度: 90000/223689\n",
|
| 599 |
+
"数据收集进度: 100000/223689\n",
|
| 600 |
+
"数据收集进度: 110000/223689\n",
|
| 601 |
+
"数据收集进度: 120000/223689\n",
|
| 602 |
+
"数据收集进度: 130000/223689\n",
|
| 603 |
+
"数据收集进度: 140000/223689\n",
|
| 604 |
+
"数据收集进度: 150000/223689\n",
|
| 605 |
+
"数据收集进度: 160000/223689\n",
|
| 606 |
+
"数据收集进度: 170000/223689\n",
|
| 607 |
+
"数据收集进度: 180000/223689\n",
|
| 608 |
+
"数据收集进度: 190000/223689\n",
|
| 609 |
+
"数据收集进度: 200000/223689\n",
|
| 610 |
+
"数据收集进度: 210000/223689\n",
|
| 611 |
+
"数据收集进度: 220000/223689\n",
|
| 612 |
+
"control_CP: 均值=0.0174, 标准差=0.3573, 形状=(223689, 775)\n",
|
| 613 |
+
"target_CP: 均值=-0.0105, 标准差=1.1399, 形状=(223689, 775)\n",
|
| 614 |
+
"control_GE: 均值=-0.0002, 标准差=0.1332, 形状=(223689, 977)\n",
|
| 615 |
+
"target_GE: 均值=-0.0007, 标准差=0.2795, 形状=(223689, 977)\n",
|
| 616 |
+
"✅ 稳健配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 617 |
+
]
|
| 618 |
+
}
|
| 619 |
+
],
|
| 620 |
+
"source": [
|
| 621 |
+
"import h5py\n",
|
| 622 |
+
"import numpy as np\n",
|
| 623 |
+
"import pandas as pd\n",
|
| 624 |
+
"from collections import defaultdict\n",
|
| 625 |
+
"\n",
|
| 626 |
+
"def create_robust_paired_dataset(CP_data, GE_data, out_path, max_pairs_per_smiles=20):\n",
|
| 627 |
+
" \"\"\"\n",
|
| 628 |
+
" 创建稳健的样本级配对数据集\n",
|
| 629 |
+
" 添加样本限制和数据处理\n",
|
| 630 |
+
" \"\"\"\n",
|
| 631 |
+
" \n",
|
| 632 |
+
" print(\"开始创建稳健配对数据集...\")\n",
|
| 633 |
+
" \n",
|
| 634 |
+
" # 构建SMILES到索引列表的映射\n",
|
| 635 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 636 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 637 |
+
" \n",
|
| 638 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 639 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 640 |
+
" \n",
|
| 641 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 642 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 643 |
+
" \n",
|
| 644 |
+
" # 找到共有的SMILES\n",
|
| 645 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 646 |
+
" print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 647 |
+
" \n",
|
| 648 |
+
" # 收集所有有效配对(带采样限制)\n",
|
| 649 |
+
" paired_samples = []\n",
|
| 650 |
+
" \n",
|
| 651 |
+
" for i, smiles in enumerate(common_smiles):\n",
|
| 652 |
+
" if i % 1000 == 0:\n",
|
| 653 |
+
" print(f\"处理进度: {i}/{len(common_smiles)}\")\n",
|
| 654 |
+
" \n",
|
| 655 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 656 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 657 |
+
" \n",
|
| 658 |
+
" # 限制每个SMILES的最大配对数,避免样本爆炸\n",
|
| 659 |
+
" max_cp_samples = min(5, len(cp_indices))\n",
|
| 660 |
+
" max_ge_samples = min(5, len(ge_indices))\n",
|
| 661 |
+
" \n",
|
| 662 |
+
" # 随机采样\n",
|
| 663 |
+
" sampled_cp = np.random.choice(cp_indices, max_cp_samples, replace=False)\n",
|
| 664 |
+
" sampled_ge = np.random.choice(ge_indices, max_ge_samples, replace=False)\n",
|
| 665 |
+
" \n",
|
| 666 |
+
" # 创建配对\n",
|
| 667 |
+
" for cp_idx in sampled_cp:\n",
|
| 668 |
+
" for ge_idx in sampled_ge:\n",
|
| 669 |
+
" paired_samples.append({\n",
|
| 670 |
+
" 'canonical_smiles': smiles,\n",
|
| 671 |
+
" 'cp_index': cp_idx,\n",
|
| 672 |
+
" 'ge_index': ge_idx\n",
|
| 673 |
+
" })\n",
|
| 674 |
+
" \n",
|
| 675 |
+
" print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 676 |
+
" \n",
|
| 677 |
+
" # 创建最终的字典形数据集\n",
|
| 678 |
+
" dataset_dict = {\n",
|
| 679 |
+
" 'canonical_smiles': [],\n",
|
| 680 |
+
" 'control_CP': [],\n",
|
| 681 |
+
" 'target_CP': [], \n",
|
| 682 |
+
" 'control_GE': [],\n",
|
| 683 |
+
" 'target_GE': []\n",
|
| 684 |
+
" }\n",
|
| 685 |
+
" \n",
|
| 686 |
+
" for i, sample in enumerate(paired_samples):\n",
|
| 687 |
+
" if i % 10000 == 0:\n",
|
| 688 |
+
" print(f\"数据收集进度: {i}/{len(paired_samples)}\")\n",
|
| 689 |
+
" \n",
|
| 690 |
+
" dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 691 |
+
" dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 692 |
+
" dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 693 |
+
" dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 694 |
+
" dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 695 |
+
" \n",
|
| 696 |
+
" # 转换为numpy数组并进行数据清洗\n",
|
| 697 |
+
" final_dataset = {}\n",
|
| 698 |
+
" final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 699 |
+
" \n",
|
| 700 |
+
" # 数据清洗函数\n",
|
| 701 |
+
" def clean_and_validate_data(data_list, name):\n",
|
| 702 |
+
" data_array = np.array(data_list, dtype=np.float32)\n",
|
| 703 |
+
" \n",
|
| 704 |
+
" # 检查NaN和Inf\n",
|
| 705 |
+
" nan_count = np.isnan(data_array).sum()\n",
|
| 706 |
+
" inf_count = np.isinf(data_array).sum()\n",
|
| 707 |
+
" \n",
|
| 708 |
+
" if nan_count > 0 or inf_count > 0:\n",
|
| 709 |
+
" print(f\"警告: {name} 包含 {nan_count} NaN 和 {inf_count} Inf\")\n",
|
| 710 |
+
" data_array = np.nan_to_num(data_array, nan=0.0, posinf=1.0, neginf=-1.0)\n",
|
| 711 |
+
" \n",
|
| 712 |
+
" # 数据标准化\n",
|
| 713 |
+
" mean = data_array.mean()\n",
|
| 714 |
+
" std = data_array.std()\n",
|
| 715 |
+
" \n",
|
| 716 |
+
" print(f\"{name}: 均值={mean:.4f}, 标准差={std:.4f}, 形状={data_array.shape}\")\n",
|
| 717 |
+
" \n",
|
| 718 |
+
" return data_array\n",
|
| 719 |
+
" \n",
|
| 720 |
+
" final_dataset['control_CP'] = clean_and_validate_data(dataset_dict['control_CP'], 'control_CP')\n",
|
| 721 |
+
" final_dataset['target_CP'] = clean_and_validate_data(dataset_dict['target_CP'], 'target_CP')\n",
|
| 722 |
+
" final_dataset['control_GE'] = clean_and_validate_data(dataset_dict['control_GE'], 'control_GE')\n",
|
| 723 |
+
" final_dataset['target_GE'] = clean_and_validate_data(dataset_dict['target_GE'], 'target_GE')\n",
|
| 724 |
+
" \n",
|
| 725 |
+
" # 保存为HDF5\n",
|
| 726 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 727 |
+
" for key, value in final_dataset.items():\n",
|
| 728 |
+
" f.create_dataset(key, data=value)\n",
|
| 729 |
+
" \n",
|
| 730 |
+
" print(f\"✅ 稳健配对数据集已保存到: {out_path}\")\n",
|
| 731 |
+
" return final_dataset\n",
|
| 732 |
+
"\n",
|
| 733 |
+
"\n",
|
| 734 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 735 |
+
"paired_dataset = create_robust_paired_dataset(CP_CSV, GE_CSV, out_path)\n"
|
| 736 |
+
]
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"cell_type": "code",
|
| 740 |
+
"execution_count": null,
|
| 741 |
+
"metadata": {},
|
| 742 |
+
"outputs": [],
|
| 743 |
+
"source": [
|
| 744 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 745 |
+
"\n",
|
| 746 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 747 |
+
"agg_data"
|
| 748 |
+
]
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"cell_type": "code",
|
| 752 |
+
"execution_count": null,
|
| 753 |
+
"metadata": {},
|
| 754 |
+
"outputs": [],
|
| 755 |
+
"source": []
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"cell_type": "code",
|
| 759 |
+
"execution_count": null,
|
| 760 |
+
"metadata": {},
|
| 761 |
+
"outputs": [],
|
| 762 |
+
"source": []
|
| 763 |
+
}
|
| 764 |
+
],
|
| 765 |
+
"metadata": {
|
| 766 |
+
"kernelspec": {
|
| 767 |
+
"display_name": "boom",
|
| 768 |
+
"language": "python",
|
| 769 |
+
"name": "python3"
|
| 770 |
+
},
|
| 771 |
+
"language_info": {
|
| 772 |
+
"codemirror_mode": {
|
| 773 |
+
"name": "ipython",
|
| 774 |
+
"version": 3
|
| 775 |
+
},
|
| 776 |
+
"file_extension": ".py",
|
| 777 |
+
"mimetype": "text/x-python",
|
| 778 |
+
"name": "python",
|
| 779 |
+
"nbconvert_exporter": "python",
|
| 780 |
+
"pygments_lexer": "ipython3",
|
| 781 |
+
"version": "3.11.10"
|
| 782 |
+
}
|
| 783 |
+
},
|
| 784 |
+
"nbformat": 4,
|
| 785 |
+
"nbformat_minor": 2
|
| 786 |
+
}
|
MVC/MVC_BBBC036/Step3_aggreate_2modality.ipynb
ADDED
|
@@ -0,0 +1,1153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"## 数据聚合:「输入药物 SMILES,输出基因表达 + 细胞形态」的多模态虚拟细胞模型,配对不齐,训练集不均衡。\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"## 策略有3种:\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### 1 是按 SMILES 聚合,对每个 SMILES 在每个模态上 取平均或中位数(或更复杂的 embedding 聚合)。\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"### 2 是多实例学习(Multiple Instance Learning, MIL):思路:把一个 SMILES 的所有 replicate 当作一个 bag,模型学习 bag-level 对齐。\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"### 3 是不对齐 replicate,随机采样:思路:训练时,每个 batch 从两个模态中随机采样该 SMILES 的一个 replicate,逐步逼近两个分布。"
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"cell_type": "code",
|
| 20 |
+
"execution_count": 1,
|
| 21 |
+
"metadata": {},
|
| 22 |
+
"outputs": [],
|
| 23 |
+
"source": [
|
| 24 |
+
"import numpy as np\n",
|
| 25 |
+
"import pandas as pd\n",
|
| 26 |
+
"import matplotlib.pyplot as plt\n",
|
| 27 |
+
"import seaborn as sns\n",
|
| 28 |
+
"import os\n",
|
| 29 |
+
"import h5py\n",
|
| 30 |
+
"\n",
|
| 31 |
+
"def load_from_HDF(fname):\n",
|
| 32 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 33 |
+
" data = dict()\n",
|
| 34 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 35 |
+
" for key in f:\n",
|
| 36 |
+
" data[key] = np.asarray(f[key])\n",
|
| 37 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 38 |
+
" data[key] = data[key].astype(str)\n",
|
| 39 |
+
" return data\n"
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"cell_type": "code",
|
| 44 |
+
"execution_count": 5,
|
| 45 |
+
"metadata": {},
|
| 46 |
+
"outputs": [],
|
| 47 |
+
"source": [
|
| 48 |
+
"CP_path = './Processed_Paired_CP_KeepRep.h5'\n",
|
| 49 |
+
"GE_path = './Processed_Paired_GE_KeepRep.h5'\n",
|
| 50 |
+
"\n",
|
| 51 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 52 |
+
"GE_CSV = load_from_HDF(GE_path)"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"cell_type": "code",
|
| 57 |
+
"execution_count": 6,
|
| 58 |
+
"metadata": {},
|
| 59 |
+
"outputs": [
|
| 60 |
+
{
|
| 61 |
+
"data": {
|
| 62 |
+
"text/plain": [
|
| 63 |
+
"((15012, 602), (3451, 977))"
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"execution_count": 6,
|
| 67 |
+
"metadata": {},
|
| 68 |
+
"output_type": "execute_result"
|
| 69 |
+
}
|
| 70 |
+
],
|
| 71 |
+
"source": [
|
| 72 |
+
"CP_CSV['target'].shape, GE_CSV['target'].shape"
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"cell_type": "code",
|
| 77 |
+
"execution_count": 3,
|
| 78 |
+
"metadata": {},
|
| 79 |
+
"outputs": [
|
| 80 |
+
{
|
| 81 |
+
"data": {
|
| 82 |
+
"text/plain": [
|
| 83 |
+
"{'canonical_smiles': array(['CCCOc1cc(N)ccc1C(=O)OCCN(CC)CC',\n",
|
| 84 |
+
" 'C=C(C)[C@@H]1CCC(C)=C[C@H]1c1c(OC)cc(C)cc1OC',\n",
|
| 85 |
+
" 'COc1cc(O)cc(/C=C/c2ccccc2)c1', ...,\n",
|
| 86 |
+
" 'CC(C)[C@H]1c2ccc(F)cc2CC[C@@]1(CCN(C)CCCc1nc2ccccc2[nH]1)OC(=O)C1CC1',\n",
|
| 87 |
+
" 'CCCCC/C=C\\\\C/C=C\\\\C/C=C\\\\CCCCCCC(=O)NCCO',\n",
|
| 88 |
+
" 'COc1cc(OC)c(C(=O)c2ccc(O)cc2)c(OC)c1'], dtype='<U227'),\n",
|
| 89 |
+
" 'control': array([[ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 90 |
+
" 0.0942523 , 0.31641835],\n",
|
| 91 |
+
" [ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 92 |
+
" 0.0942523 , 0.31641835],\n",
|
| 93 |
+
" [ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 94 |
+
" 0.0942523 , 0.31641835],\n",
|
| 95 |
+
" ...,\n",
|
| 96 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 97 |
+
" 0.06431134, 0.1678016 ],\n",
|
| 98 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 99 |
+
" 0.06431134, 0.1678016 ],\n",
|
| 100 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 101 |
+
" 0.06431134, 0.1678016 ]], dtype=float32),\n",
|
| 102 |
+
" 'target': array([[-0.8649911 , 1.8669271 , -1.0574424 , ..., -1.7174782 ,\n",
|
| 103 |
+
" -2.8599036 , 0.525918 ],\n",
|
| 104 |
+
" [ 0.50881827, 0.30993956, 0.5643427 , ..., -1.3119696 ,\n",
|
| 105 |
+
" -0.96582466, 1.2100515 ],\n",
|
| 106 |
+
" [-1.6027776 , -0.8187241 , 0.49752134, ..., -0.10791475,\n",
|
| 107 |
+
" -0.19130155, 0.8326575 ],\n",
|
| 108 |
+
" ...,\n",
|
| 109 |
+
" [-7.535165 , -8.924246 , 10. , ..., 10. ,\n",
|
| 110 |
+
" 0.82093847, 0.943286 ],\n",
|
| 111 |
+
" [-1.7700051 , 1.3930917 , -2.890018 , ..., -0.98175496,\n",
|
| 112 |
+
" -3.2825868 , -2.1236746 ],\n",
|
| 113 |
+
" [-4.9813 , 3.261372 , -2.212747 , ..., -0.1282133 ,\n",
|
| 114 |
+
" -2.6824005 , -1.7763886 ]], dtype=float32)}"
|
| 115 |
+
]
|
| 116 |
+
},
|
| 117 |
+
"execution_count": 3,
|
| 118 |
+
"metadata": {},
|
| 119 |
+
"output_type": "execute_result"
|
| 120 |
+
}
|
| 121 |
+
],
|
| 122 |
+
"source": [
|
| 123 |
+
"CP_CSV"
|
| 124 |
+
]
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"cell_type": "code",
|
| 128 |
+
"execution_count": 4,
|
| 129 |
+
"metadata": {},
|
| 130 |
+
"outputs": [
|
| 131 |
+
{
|
| 132 |
+
"data": {
|
| 133 |
+
"text/plain": [
|
| 134 |
+
"{'canonical_smiles': array(['CCCOc1cc(N)ccc1C(=O)OCCN(CC)CC',\n",
|
| 135 |
+
" 'C=C(C)[C@@H]1CCC(C)=C[C@H]1c1c(OC)cc(C)cc1OC',\n",
|
| 136 |
+
" 'COc1cc(O)cc(/C=C/c2ccccc2)c1', ...,\n",
|
| 137 |
+
" 'CC(C)[C@H]1c2ccc(F)cc2CC[C@@]1(CCN(C)CCCc1nc2ccccc2[nH]1)OC(=O)C1CC1',\n",
|
| 138 |
+
" 'CCCCC/C=C\\\\C/C=C\\\\C/C=C\\\\CCCCCCC(=O)NCCO',\n",
|
| 139 |
+
" 'COc1cc(OC)c(C(=O)c2ccc(O)cc2)c(OC)c1'], dtype='<U227'),\n",
|
| 140 |
+
" 'control': array([[ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 141 |
+
" 0.0942523 , 0.31641835],\n",
|
| 142 |
+
" [ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 143 |
+
" 0.0942523 , 0.31641835],\n",
|
| 144 |
+
" [ 0.05088183, -0.16616029, 0.19908461, ..., 0.2275372 ,\n",
|
| 145 |
+
" 0.0942523 , 0.31641835],\n",
|
| 146 |
+
" ...,\n",
|
| 147 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 148 |
+
" 0.06431134, 0.1678016 ],\n",
|
| 149 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 150 |
+
" 0.06431134, 0.1678016 ],\n",
|
| 151 |
+
" [ 0.08850026, 0.15368527, -0.09534353, ..., 0.06442614,\n",
|
| 152 |
+
" 0.06431134, 0.1678016 ]], dtype=float32),\n",
|
| 153 |
+
" 'target': array([[-0.8649911 , 1.8669271 , -1.0574424 , ..., -1.7174782 ,\n",
|
| 154 |
+
" -2.8599036 , 0.525918 ],\n",
|
| 155 |
+
" [ 0.50881827, 0.30993956, 0.5643427 , ..., -1.3119696 ,\n",
|
| 156 |
+
" -0.96582466, 1.2100515 ],\n",
|
| 157 |
+
" [-1.6027776 , -0.8187241 , 0.49752134, ..., -0.10791475,\n",
|
| 158 |
+
" -0.19130155, 0.8326575 ],\n",
|
| 159 |
+
" ...,\n",
|
| 160 |
+
" [-7.535165 , -8.924246 , 10. , ..., 10. ,\n",
|
| 161 |
+
" 0.82093847, 0.943286 ],\n",
|
| 162 |
+
" [-1.7700051 , 1.3930917 , -2.890018 , ..., -0.98175496,\n",
|
| 163 |
+
" -3.2825868 , -2.1236746 ],\n",
|
| 164 |
+
" [-4.9813 , 3.261372 , -2.212747 , ..., -0.1282133 ,\n",
|
| 165 |
+
" -2.6824005 , -1.7763886 ]], dtype=float32)}"
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
"execution_count": 4,
|
| 169 |
+
"metadata": {},
|
| 170 |
+
"output_type": "execute_result"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"source": [
|
| 174 |
+
"CP_CSV"
|
| 175 |
+
]
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"cell_type": "code",
|
| 179 |
+
"execution_count": 4,
|
| 180 |
+
"metadata": {},
|
| 181 |
+
"outputs": [
|
| 182 |
+
{
|
| 183 |
+
"data": {
|
| 184 |
+
"text/plain": [
|
| 185 |
+
"((14996, 602), (3451, 977))"
|
| 186 |
+
]
|
| 187 |
+
},
|
| 188 |
+
"execution_count": 4,
|
| 189 |
+
"metadata": {},
|
| 190 |
+
"output_type": "execute_result"
|
| 191 |
+
}
|
| 192 |
+
],
|
| 193 |
+
"source": [
|
| 194 |
+
"CP_CSV['target'].shape, GE_CSV['target'].shape"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"cell_type": "code",
|
| 199 |
+
"execution_count": null,
|
| 200 |
+
"metadata": {},
|
| 201 |
+
"outputs": [],
|
| 202 |
+
"source": []
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"cell_type": "markdown",
|
| 206 |
+
"metadata": {},
|
| 207 |
+
"source": [
|
| 208 |
+
"# 按照第一种方式直接 mean"
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"cell_type": "code",
|
| 213 |
+
"execution_count": 3,
|
| 214 |
+
"metadata": {},
|
| 215 |
+
"outputs": [
|
| 216 |
+
{
|
| 217 |
+
"name": "stdout",
|
| 218 |
+
"output_type": "stream",
|
| 219 |
+
"text": [
|
| 220 |
+
"✅ 聚合后的数据已保存到 ./Aggregated_CP_GE.h5\n"
|
| 221 |
+
]
|
| 222 |
+
}
|
| 223 |
+
],
|
| 224 |
+
"source": [
|
| 225 |
+
"import h5py\n",
|
| 226 |
+
"import numpy as np\n",
|
| 227 |
+
"import pandas as pd\n",
|
| 228 |
+
"\n",
|
| 229 |
+
"def aggregate_modalities(CP, GE, out_path):\n",
|
| 230 |
+
" # 转成 DataFrame 方便聚合\n",
|
| 231 |
+
" CP_df = pd.DataFrame({\n",
|
| 232 |
+
" \"SMILES\": CP[\"canonical_smiles\"],\n",
|
| 233 |
+
" \"control\": list(CP[\"control\"]),\n",
|
| 234 |
+
" \"target\": list(CP[\"target\"])\n",
|
| 235 |
+
" })\n",
|
| 236 |
+
" GE_df = pd.DataFrame({\n",
|
| 237 |
+
" \"SMILES\": GE[\"canonical_smiles\"],\n",
|
| 238 |
+
" \"control\": list(GE[\"control\"]),\n",
|
| 239 |
+
" \"target\": list(GE[\"target\"])\n",
|
| 240 |
+
" })\n",
|
| 241 |
+
"\n",
|
| 242 |
+
" # groupby + mean pooling\n",
|
| 243 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 244 |
+
" GE_grouped = GE_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 245 |
+
"\n",
|
| 246 |
+
" # merge 保证对齐\n",
|
| 247 |
+
" merged = pd.merge(CP_grouped, GE_grouped, on=\"SMILES\", how=\"inner\", suffixes=(\"_CP\", \"_GE\"))\n",
|
| 248 |
+
"\n",
|
| 249 |
+
" # 转 numpy array 并替换剩余 NaN\n",
|
| 250 |
+
" def clean_array(arr_list):\n",
|
| 251 |
+
" arr = np.stack(arr_list.to_numpy())\n",
|
| 252 |
+
" arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0) # 替换 NaN/Inf\n",
|
| 253 |
+
" return arr.astype(np.float32)\n",
|
| 254 |
+
"\n",
|
| 255 |
+
" smiles_array = merged[\"SMILES\"].to_numpy(dtype=\"S\")\n",
|
| 256 |
+
" control_CP_array = clean_array(merged[\"control_CP\"])\n",
|
| 257 |
+
" target_CP_array = clean_array(merged[\"target_CP\"])\n",
|
| 258 |
+
" control_GE_array = clean_array(merged[\"control_GE\"])\n",
|
| 259 |
+
" target_GE_array = clean_array(merged[\"target_GE\"])\n",
|
| 260 |
+
"\n",
|
| 261 |
+
" # 存 HDF5\n",
|
| 262 |
+
" with h5py.File(out_path, \"w\") as f:\n",
|
| 263 |
+
" f.create_dataset(\"canonical_smiles\", data=smiles_array)\n",
|
| 264 |
+
" f.create_dataset(\"control_CP\", data=control_CP_array)\n",
|
| 265 |
+
" f.create_dataset(\"target_CP\", data=target_CP_array)\n",
|
| 266 |
+
" f.create_dataset(\"control_GE\", data=control_GE_array)\n",
|
| 267 |
+
" f.create_dataset(\"target_GE\", data=target_GE_array)\n",
|
| 268 |
+
"\n",
|
| 269 |
+
" print(f\"✅ 聚合后的数据已保存到 {out_path}\")\n",
|
| 270 |
+
"\n",
|
| 271 |
+
"# 用法\n",
|
| 272 |
+
"# root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 273 |
+
"CP_path = './Processed_Paired_CP.h5'\n",
|
| 274 |
+
"GE_path = './Processed_Paired_GE.h5'\n",
|
| 275 |
+
"\n",
|
| 276 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 277 |
+
"GE_CSV = load_from_HDF(GE_path)\n",
|
| 278 |
+
"\n",
|
| 279 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 280 |
+
"aggregate_modalities(CP_CSV, GE_CSV, out_path)\n"
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"cell_type": "code",
|
| 285 |
+
"execution_count": 4,
|
| 286 |
+
"metadata": {},
|
| 287 |
+
"outputs": [
|
| 288 |
+
{
|
| 289 |
+
"data": {
|
| 290 |
+
"text/plain": [
|
| 291 |
+
"{'canonical_smiles': array(['Brc1c(NC2=NCCN2)ccc2nccnc12', 'C#CCN(C)CCCOc1ccc(Cl)cc1Cl',\n",
|
| 292 |
+
" 'C#CCN1C(C)=C(C(=O)CCO)C(c2cccc(-n3oo3)c2)C(C(=O)OC)=C1C', ...,\n",
|
| 293 |
+
" 'c1coc(CNc2ncnc3[nH]cnc23)c1', 'c1nc(CC2CCNCC2)c[nH]1',\n",
|
| 294 |
+
" 'c1nc(CCCC2CCNCC2)c[nH]1'], dtype='<U227'),\n",
|
| 295 |
+
" 'control_CP': array([[-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 296 |
+
" 0.21078211, 0.13338298],\n",
|
| 297 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 298 |
+
" 0.21078211, 0.13338298],\n",
|
| 299 |
+
" [-0.03419905, -0.1922472 , 0.18566999, ..., 0.17574853,\n",
|
| 300 |
+
" 0.33123744, 0.21626002],\n",
|
| 301 |
+
" ...,\n",
|
| 302 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 303 |
+
" 0.21078211, 0.13338298],\n",
|
| 304 |
+
" [-0.04489063, -0.14671806, 0.12026446, ..., 0.12773524,\n",
|
| 305 |
+
" 0.21260148, 0.16793586],\n",
|
| 306 |
+
" [-0.03389427, -0.14150065, 0.15008315, ..., 0.11754317,\n",
|
| 307 |
+
" 0.21078211, 0.13338298]], dtype=float32),\n",
|
| 308 |
+
" 'control_GE': array([[ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 309 |
+
" -0.02412532, 0.08308113],\n",
|
| 310 |
+
" [-0.05236533, -0.00944031, 0.01470257, ..., -0.1302189 ,\n",
|
| 311 |
+
" 0.1095909 , -0.00176817],\n",
|
| 312 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 313 |
+
" -0.04355722, -0.13316433],\n",
|
| 314 |
+
" ...,\n",
|
| 315 |
+
" [-0.05236533, -0.00944031, 0.01470257, ..., -0.1302189 ,\n",
|
| 316 |
+
" 0.1095909 , -0.00176817],\n",
|
| 317 |
+
" [ 0.02062 , -0.00183125, -0.13683268, ..., -0.17978694,\n",
|
| 318 |
+
" 0.21799538, 0.17114288],\n",
|
| 319 |
+
" [ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 320 |
+
" -0.02412532, 0.08308113]], dtype=float32),\n",
|
| 321 |
+
" 'target_CP': array([[ 0.47359726, 0.3149385 , -0.2134298 , ..., 0.14258505,\n",
|
| 322 |
+
" -0.23095778, 1.3368101 ],\n",
|
| 323 |
+
" [-0.2682222 , -0.6758744 , 0.3996619 , ..., 0.35662955,\n",
|
| 324 |
+
" -0.12905961, -0.09158537],\n",
|
| 325 |
+
" [ 0.37451744, -0.25577283, 0.26045328, ..., -0.23579153,\n",
|
| 326 |
+
" -0.23442191, -0.41257128],\n",
|
| 327 |
+
" ...,\n",
|
| 328 |
+
" [-0.1709819 , -0.5260589 , 0.4987828 , ..., 0.5009768 ,\n",
|
| 329 |
+
" 0.41748047, 0.18332437],\n",
|
| 330 |
+
" [ 0.13757834, -0.20250246, 0.19951464, ..., -0.3296469 ,\n",
|
| 331 |
+
" -0.11514819, -0.1843171 ],\n",
|
| 332 |
+
" [-0.46352574, 0.35824373, -0.32413673, ..., -0.31744272,\n",
|
| 333 |
+
" -0.5073174 , -0.03345545]], dtype=float32),\n",
|
| 334 |
+
" 'target_GE': array([[-0.07302775, 0.0460825 , -0.02222175, ..., 0.17655626,\n",
|
| 335 |
+
" -0.154201 , 0.033125 ],\n",
|
| 336 |
+
" [ 0.10191549, -0.24803169, 0.11954501, ..., -0.16921 ,\n",
|
| 337 |
+
" 0.02239785, -0.0529015 ],\n",
|
| 338 |
+
" [-0.034165 , 0.048892 , 0.1231085 , ..., 0.42318 ,\n",
|
| 339 |
+
" 0.034605 , 0.21026 ],\n",
|
| 340 |
+
" ...,\n",
|
| 341 |
+
" [ 0.0316805 , -0.1364167 , 0.02315 , ..., 0.10307 ,\n",
|
| 342 |
+
" 0.17449784, 0.1486385 ],\n",
|
| 343 |
+
" [ 0.22472501, 0.20904249, -0.2872 , ..., -0.22035149,\n",
|
| 344 |
+
" 0.5861085 , 0.278331 ],\n",
|
| 345 |
+
" [ 0.01292225, 0.07139751, -0.13613375, ..., -0.16344374,\n",
|
| 346 |
+
" 0.053449 , -0.200645 ]], dtype=float32)}"
|
| 347 |
+
]
|
| 348 |
+
},
|
| 349 |
+
"execution_count": 4,
|
| 350 |
+
"metadata": {},
|
| 351 |
+
"output_type": "execute_result"
|
| 352 |
+
}
|
| 353 |
+
],
|
| 354 |
+
"source": [
|
| 355 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 356 |
+
"\n",
|
| 357 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 358 |
+
"agg_data"
|
| 359 |
+
]
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"cell_type": "code",
|
| 363 |
+
"execution_count": 5,
|
| 364 |
+
"metadata": {},
|
| 365 |
+
"outputs": [
|
| 366 |
+
{
|
| 367 |
+
"data": {
|
| 368 |
+
"text/plain": [
|
| 369 |
+
"((1916, 602), (1916, 602), (1916, 977), (1916, 977))"
|
| 370 |
+
]
|
| 371 |
+
},
|
| 372 |
+
"execution_count": 5,
|
| 373 |
+
"metadata": {},
|
| 374 |
+
"output_type": "execute_result"
|
| 375 |
+
}
|
| 376 |
+
],
|
| 377 |
+
"source": [
|
| 378 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 379 |
+
]
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"cell_type": "code",
|
| 383 |
+
"execution_count": 21,
|
| 384 |
+
"metadata": {},
|
| 385 |
+
"outputs": [
|
| 386 |
+
{
|
| 387 |
+
"data": {
|
| 388 |
+
"text/plain": [
|
| 389 |
+
"True"
|
| 390 |
+
]
|
| 391 |
+
},
|
| 392 |
+
"execution_count": 21,
|
| 393 |
+
"metadata": {},
|
| 394 |
+
"output_type": "execute_result"
|
| 395 |
+
}
|
| 396 |
+
],
|
| 397 |
+
"source": [
|
| 398 |
+
"'O=C(C[C@@H]1CC[C@@H]2[C@H](COC[C@H](O)CN2Cc2cc(F)cc(F)c2)O1)Nc1nccs1' in agg_data['canonical_smiles']"
|
| 399 |
+
]
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"cell_type": "markdown",
|
| 403 |
+
"metadata": {},
|
| 404 |
+
"source": [
|
| 405 |
+
"# 复杂点,样本级别的配对"
|
| 406 |
+
]
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"cell_type": "code",
|
| 410 |
+
"execution_count": 7,
|
| 411 |
+
"metadata": {},
|
| 412 |
+
"outputs": [
|
| 413 |
+
{
|
| 414 |
+
"name": "stdout",
|
| 415 |
+
"output_type": "stream",
|
| 416 |
+
"text": [
|
| 417 |
+
"加载源数据...\n",
|
| 418 |
+
"开始创建多模态配对数据集...\n",
|
| 419 |
+
"Cell Painting 唯一化合物数: 1916\n",
|
| 420 |
+
"Gene Expression 唯一化合物数: 1916\n",
|
| 421 |
+
"多模态共有化合物数 (Intersection): 1916\n",
|
| 422 |
+
"生成配对样本总数: 17253\n",
|
| 423 |
+
"正在组装最终矩阵...\n",
|
| 424 |
+
"✅ 最终数据集已保存至: ./Paired_CP_GE_Dataset.h5\n",
|
| 425 |
+
"------------------------------\n",
|
| 426 |
+
"Dataset Shapes:\n",
|
| 427 |
+
"canonical_smiles: (17253,)\n",
|
| 428 |
+
"control_CP: (17253, 602)\n",
|
| 429 |
+
"target_CP: (17253, 602)\n",
|
| 430 |
+
"control_GE: (17253, 977)\n",
|
| 431 |
+
"target_GE: (17253, 977)\n",
|
| 432 |
+
"CP_dose: (17253,)\n",
|
| 433 |
+
"GE_dose: (17253,)\n"
|
| 434 |
+
]
|
| 435 |
+
}
|
| 436 |
+
],
|
| 437 |
+
"source": [
|
| 438 |
+
"import h5py\n",
|
| 439 |
+
"import numpy as np\n",
|
| 440 |
+
"import pandas as pd\n",
|
| 441 |
+
"from collections import defaultdict\n",
|
| 442 |
+
"\n",
|
| 443 |
+
"# ==========================================\n",
|
| 444 |
+
"# 0. 辅助函数:读取 HDF5\n",
|
| 445 |
+
"# ==========================================\n",
|
| 446 |
+
"def load_from_HDF(fname):\n",
|
| 447 |
+
" data = dict()\n",
|
| 448 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 449 |
+
" for key in f:\n",
|
| 450 |
+
" data[key] = np.asarray(f[key])\n",
|
| 451 |
+
" # 处理字符串解码\n",
|
| 452 |
+
" if data[key].dtype.kind == 'S':\n",
|
| 453 |
+
" data[key] = data[key].astype(str)\n",
|
| 454 |
+
" return data\n",
|
| 455 |
+
"\n",
|
| 456 |
+
"# ==========================================\n",
|
| 457 |
+
"# 1. 核心逻辑:创建稳健配对数据集\n",
|
| 458 |
+
"# ==========================================\n",
|
| 459 |
+
"def create_robust_paired_dataset(CP_data, GE_data, out_path, max_samples_per_smiles=5, seed=42):\n",
|
| 460 |
+
" \"\"\"\n",
|
| 461 |
+
" CP_data, GE_data: 包含 'canonical_smiles', 'control', 'target', 'dose' 的字典\n",
|
| 462 |
+
" max_samples_per_smiles: 每个模态最多采样的重复数\n",
|
| 463 |
+
" seed: 随机种子,保证配对结果可复现\n",
|
| 464 |
+
" \"\"\"\n",
|
| 465 |
+
" print(\"开始创建多模态配对数据集...\")\n",
|
| 466 |
+
" \n",
|
| 467 |
+
" # [新增] 检查输入数据是否包含 dose\n",
|
| 468 |
+
" if 'dose' not in CP_data or 'dose' not in GE_data:\n",
|
| 469 |
+
" raise ValueError(\"输入数据缺少 'dose' 字段,请检查上一步是否正确保存了剂量信息。\")\n",
|
| 470 |
+
"\n",
|
| 471 |
+
" # [新增] 设置随机种子\n",
|
| 472 |
+
" np.random.seed(seed)\n",
|
| 473 |
+
" \n",
|
| 474 |
+
" # --- A. 构建索引映射 ---\n",
|
| 475 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 476 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 477 |
+
" \n",
|
| 478 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 479 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 480 |
+
" \n",
|
| 481 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 482 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 483 |
+
" \n",
|
| 484 |
+
" # --- B. 找交集 ---\n",
|
| 485 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 486 |
+
" print(f\"Cell Painting 唯一化合物数: {len(cp_smiles_to_indices)}\")\n",
|
| 487 |
+
" print(f\"Gene Expression 唯一化合物数: {len(ge_smiles_to_indices)}\")\n",
|
| 488 |
+
" print(f\"多模态共有化合物数 (Intersection): {len(common_smiles)}\")\n",
|
| 489 |
+
" \n",
|
| 490 |
+
" # --- C. 生成配对索引 ---\n",
|
| 491 |
+
" paired_indices = []\n",
|
| 492 |
+
" \n",
|
| 493 |
+
" for i, smiles in enumerate(common_smiles):\n",
|
| 494 |
+
" # 获取该 SMILES 的所有索引\n",
|
| 495 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 496 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 497 |
+
" \n",
|
| 498 |
+
" # 限制采样数量\n",
|
| 499 |
+
" n_cp = min(max_samples_per_smiles, len(cp_indices))\n",
|
| 500 |
+
" n_ge = min(max_samples_per_smiles, len(ge_indices))\n",
|
| 501 |
+
" \n",
|
| 502 |
+
" # 无放回随机采样\n",
|
| 503 |
+
" sampled_cp_indices = np.random.choice(cp_indices, n_cp, replace=False)\n",
|
| 504 |
+
" sampled_ge_indices = np.random.choice(ge_indices, n_ge, replace=False)\n",
|
| 505 |
+
" \n",
|
| 506 |
+
" # 笛卡尔积配对\n",
|
| 507 |
+
" for cp_idx in sampled_cp_indices:\n",
|
| 508 |
+
" for ge_idx in sampled_ge_indices:\n",
|
| 509 |
+
" paired_indices.append({\n",
|
| 510 |
+
" 'smiles': smiles,\n",
|
| 511 |
+
" 'cp_idx': cp_idx,\n",
|
| 512 |
+
" 'ge_idx': ge_idx\n",
|
| 513 |
+
" })\n",
|
| 514 |
+
" \n",
|
| 515 |
+
" print(f\"生成配对样本总数: {len(paired_indices)}\")\n",
|
| 516 |
+
"\n",
|
| 517 |
+
" # --- D. 组装数据 ---\n",
|
| 518 |
+
" n_samples = len(paired_indices)\n",
|
| 519 |
+
" \n",
|
| 520 |
+
" # 获取特征维度\n",
|
| 521 |
+
" cp_feat_dim = CP_data['target'].shape[1]\n",
|
| 522 |
+
" ge_feat_dim = GE_data['target'].shape[1]\n",
|
| 523 |
+
" \n",
|
| 524 |
+
" # 预分配内存\n",
|
| 525 |
+
" final_data = {\n",
|
| 526 |
+
" 'canonical_smiles': np.empty(n_samples, dtype='S200'),\n",
|
| 527 |
+
" 'control_CP': np.empty((n_samples, cp_feat_dim), dtype=np.float32),\n",
|
| 528 |
+
" 'target_CP': np.empty((n_samples, cp_feat_dim), dtype=np.float32),\n",
|
| 529 |
+
" 'control_GE': np.empty((n_samples, ge_feat_dim), dtype=np.float32),\n",
|
| 530 |
+
" 'target_GE': np.empty((n_samples, ge_feat_dim), dtype=np.float32),\n",
|
| 531 |
+
" # [新增] 两个模态的剂量\n",
|
| 532 |
+
" 'CP_dose': np.empty(n_samples, dtype=np.float32), \n",
|
| 533 |
+
" 'GE_dose': np.empty(n_samples, dtype=np.float32)\n",
|
| 534 |
+
" }\n",
|
| 535 |
+
" \n",
|
| 536 |
+
" print(\"正在组装最终矩阵...\")\n",
|
| 537 |
+
" for i, item in enumerate(paired_indices):\n",
|
| 538 |
+
" cp_idx = item['cp_idx']\n",
|
| 539 |
+
" ge_idx = item['ge_idx']\n",
|
| 540 |
+
" \n",
|
| 541 |
+
" final_data['canonical_smiles'][i] = item['smiles'].encode('utf-8')\n",
|
| 542 |
+
" \n",
|
| 543 |
+
" # 填入 CP 数据\n",
|
| 544 |
+
" final_data['control_CP'][i] = CP_data['control'][cp_idx]\n",
|
| 545 |
+
" final_data['target_CP'][i] = CP_data['target'][cp_idx]\n",
|
| 546 |
+
" final_data['CP_dose'][i] = CP_data['dose'][cp_idx] # [新增]\n",
|
| 547 |
+
" \n",
|
| 548 |
+
" # 填入 GE 数据\n",
|
| 549 |
+
" final_data['control_GE'][i] = GE_data['control'][ge_idx]\n",
|
| 550 |
+
" final_data['target_GE'][i] = GE_data['target'][ge_idx]\n",
|
| 551 |
+
" final_data['GE_dose'][i] = GE_data['dose'][ge_idx] # [新增]\n",
|
| 552 |
+
" \n",
|
| 553 |
+
" # --- E. 数据清洗与保存 ---\n",
|
| 554 |
+
" # 检查并处理 NaN/Inf (Dose 通常不需要处理,但如果有 NaN 也顺便处理一下安全)\n",
|
| 555 |
+
" check_cols = ['control_CP', 'target_CP', 'control_GE', 'target_GE', 'CP_dose', 'GE_dose']\n",
|
| 556 |
+
" \n",
|
| 557 |
+
" for key in check_cols:\n",
|
| 558 |
+
" if np.isnan(final_data[key]).any() or np.isinf(final_data[key]).any():\n",
|
| 559 |
+
" print(f\"警告: {key} 包含 NaN 或 Inf,正在填充 0...\")\n",
|
| 560 |
+
" final_data[key] = np.nan_to_num(final_data[key], nan=0.0, posinf=0.0, neginf=0.0)\n",
|
| 561 |
+
"\n",
|
| 562 |
+
" # 保存\n",
|
| 563 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 564 |
+
" for key, val in final_data.items():\n",
|
| 565 |
+
" f.create_dataset(key, data=val)\n",
|
| 566 |
+
" \n",
|
| 567 |
+
" print(f\"✅ 最终数据集已保存至: {out_path}\")\n",
|
| 568 |
+
" print(\"-\" * 30)\n",
|
| 569 |
+
" print(f\"Dataset Shapes:\")\n",
|
| 570 |
+
" for k, v in final_data.items():\n",
|
| 571 |
+
" print(f\"{k}: {v.shape}\")\n",
|
| 572 |
+
"\n",
|
| 573 |
+
"# ==========================================\n",
|
| 574 |
+
"# 2. 执行流程\n",
|
| 575 |
+
"# ==========================================\n",
|
| 576 |
+
"# 定义输入输出路径\n",
|
| 577 |
+
"cp_input = './Processed_Paired_CP_KeepRep.h5'\n",
|
| 578 |
+
"ge_input = './Processed_Paired_GE_KeepRep.h5'\n",
|
| 579 |
+
"final_output = './Paired_CP_GE_Dataset.h5'\n",
|
| 580 |
+
"\n",
|
| 581 |
+
"# 加载数据\n",
|
| 582 |
+
"print(\"加载源数据...\")\n",
|
| 583 |
+
"cp_data = load_from_HDF(cp_input)\n",
|
| 584 |
+
"ge_data = load_from_HDF(ge_input)\n",
|
| 585 |
+
"\n",
|
| 586 |
+
"# 执行配对\n",
|
| 587 |
+
"create_robust_paired_dataset(cp_data, ge_data, final_output, max_samples_per_smiles=5)"
|
| 588 |
+
]
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"cell_type": "code",
|
| 592 |
+
"execution_count": 6,
|
| 593 |
+
"metadata": {},
|
| 594 |
+
"outputs": [
|
| 595 |
+
{
|
| 596 |
+
"data": {
|
| 597 |
+
"text/plain": [
|
| 598 |
+
"{'canonical_smiles': array(['O=C(O)COC(=O)Cc1ccccc1Nc1c(Cl)cccc1Cl',\n",
|
| 599 |
+
" 'O=C(O)COC(=O)Cc1ccccc1Nc1c(Cl)cccc1Cl',\n",
|
| 600 |
+
" 'O=C(O)COC(=O)Cc1ccccc1Nc1c(Cl)cccc1Cl', ...,\n",
|
| 601 |
+
" 'CN(C(=O)c1ccc(Cl)c(Cl)c1)[C@@H]1CCCC[C@@H]1N1CCCC1',\n",
|
| 602 |
+
" 'CN(C(=O)c1ccc(Cl)c(Cl)c1)[C@@H]1CCCC[C@@H]1N1CCCC1',\n",
|
| 603 |
+
" 'CN(C(=O)c1ccc(Cl)c(Cl)c1)[C@@H]1CCCC[C@@H]1N1CCCC1'],\n",
|
| 604 |
+
" dtype='<U200'),\n",
|
| 605 |
+
" 'control_CP': array([[-0.05779983, -0.27169958, 0.23867248, ..., 0.06572847,\n",
|
| 606 |
+
" 0.22877644, 0.16598275],\n",
|
| 607 |
+
" [-0.05779983, -0.27169958, 0.23867248, ..., 0.06572847,\n",
|
| 608 |
+
" 0.22877644, 0.16598275],\n",
|
| 609 |
+
" [-0.01651424, -0.13550141, 0.04095873, ..., -0.03688414,\n",
|
| 610 |
+
" 0.08280301, -0.15823033],\n",
|
| 611 |
+
" ...,\n",
|
| 612 |
+
" [ 0.0168145 , -0.10370001, 0.10444786, ..., -0.03251424,\n",
|
| 613 |
+
" 0.18788806, -0.09417315],\n",
|
| 614 |
+
" [-0.09153318, -0.27400595, 0.30783677, ..., -0.01151957,\n",
|
| 615 |
+
" 0.23429662, -0.05841342],\n",
|
| 616 |
+
" [-0.09153318, -0.27400595, 0.30783677, ..., -0.01151957,\n",
|
| 617 |
+
" 0.23429662, -0.05841342]], dtype=float32),\n",
|
| 618 |
+
" 'control_GE': array([[ 0.00299 , 0.027625 , 0.10459 , ..., -0.019535 ,\n",
|
| 619 |
+
" -0.045362 , 0.11702 ],\n",
|
| 620 |
+
" [ 0.0519945 , -0.128145 , -0.0311875 , ..., 0.0761325 ,\n",
|
| 621 |
+
" -0.03931 , 0.03072 ],\n",
|
| 622 |
+
" [ 0.00299 , 0.027625 , 0.10459 , ..., -0.019535 ,\n",
|
| 623 |
+
" -0.045362 , 0.11702 ],\n",
|
| 624 |
+
" ...,\n",
|
| 625 |
+
" [ 0.025065 , 0.038105 , -0.0712 , ..., -0.08888 ,\n",
|
| 626 |
+
" 0.038267 , -0.057905 ],\n",
|
| 627 |
+
" [ 0.00638 , -0.0219 , -0.15533999, ..., -0.203183 ,\n",
|
| 628 |
+
" 0.40017 , 0.176652 ],\n",
|
| 629 |
+
" [ 0.025065 , 0.038105 , -0.0712 , ..., -0.08888 ,\n",
|
| 630 |
+
" 0.038267 , -0.057905 ]], dtype=float32),\n",
|
| 631 |
+
" 'target_CP': array([[ 0.16514239, -0.27579018, -0.5783885 , ..., 0.1167318 ,\n",
|
| 632 |
+
" 0.60331386, -0.40385294],\n",
|
| 633 |
+
" [ 0.16514239, -0.27579018, -0.5783885 , ..., 0.1167318 ,\n",
|
| 634 |
+
" 0.60331386, -0.40385294],\n",
|
| 635 |
+
" [-0.19817086, 0.19117425, -0.85260695, ..., 0.03670187,\n",
|
| 636 |
+
" 0.22386315, -0.41378257],\n",
|
| 637 |
+
" ...,\n",
|
| 638 |
+
" [ 1.1964315 , -0.270127 , -0.756721 , ..., -0.6266768 ,\n",
|
| 639 |
+
" -1.5699604 , -1.0493801 ],\n",
|
| 640 |
+
" [ 0.8361844 , -0.17571016, -0.70972115, ..., 0.06683134,\n",
|
| 641 |
+
" 1.4995568 , 1.1771296 ],\n",
|
| 642 |
+
" [ 0.8361844 , -0.17571016, -0.70972115, ..., 0.06683134,\n",
|
| 643 |
+
" 1.4995568 , 1.1771296 ]], dtype=float32),\n",
|
| 644 |
+
" 'target_GE': array([[-0.18275 , -0.0799 , 0.13112 , ..., -0.19384 , 0.117488 ,\n",
|
| 645 |
+
" 0.13002 ],\n",
|
| 646 |
+
" [ 0.1289945, 0.021015 , -0.0417475, ..., -0.1044675, 0.10721 ,\n",
|
| 647 |
+
" -0.33066 ],\n",
|
| 648 |
+
" [-0.18275 , -0.0799 , 0.13112 , ..., -0.19384 , 0.117488 ,\n",
|
| 649 |
+
" 0.13002 ],\n",
|
| 650 |
+
" ...,\n",
|
| 651 |
+
" [ 0.46645 , -0.22858 , 0.32009 , ..., -0.07213 , -0.101373 ,\n",
|
| 652 |
+
" 0.24146 ],\n",
|
| 653 |
+
" [-0.20657 , 0.306565 , 0.19061 , ..., 0.423967 , -0.92223 ,\n",
|
| 654 |
+
" -0.175798 ],\n",
|
| 655 |
+
" [ 0.46645 , -0.22858 , 0.32009 , ..., -0.07213 , -0.101373 ,\n",
|
| 656 |
+
" 0.24146 ]], dtype=float32)}"
|
| 657 |
+
]
|
| 658 |
+
},
|
| 659 |
+
"execution_count": 6,
|
| 660 |
+
"metadata": {},
|
| 661 |
+
"output_type": "execute_result"
|
| 662 |
+
}
|
| 663 |
+
],
|
| 664 |
+
"source": [
|
| 665 |
+
"CP_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 666 |
+
"\n",
|
| 667 |
+
"df_CSV = load_from_HDF(CP_path)\n",
|
| 668 |
+
"\n",
|
| 669 |
+
"df_CSV"
|
| 670 |
+
]
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"cell_type": "code",
|
| 674 |
+
"execution_count": 8,
|
| 675 |
+
"metadata": {},
|
| 676 |
+
"outputs": [
|
| 677 |
+
{
|
| 678 |
+
"name": "stdout",
|
| 679 |
+
"output_type": "stream",
|
| 680 |
+
"text": [
|
| 681 |
+
"(17253, 602) (17253, 602) (17253, 977) (17253, 977)\n"
|
| 682 |
+
]
|
| 683 |
+
}
|
| 684 |
+
],
|
| 685 |
+
"source": [
|
| 686 |
+
"print(df_CSV['target_CP'].shape, df_CSV['control_CP'].shape, df_CSV['control_GE'].shape, df_CSV['target_GE'].shape)"
|
| 687 |
+
]
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"cell_type": "code",
|
| 691 |
+
"execution_count": null,
|
| 692 |
+
"metadata": {},
|
| 693 |
+
"outputs": [],
|
| 694 |
+
"source": []
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"cell_type": "code",
|
| 698 |
+
"execution_count": null,
|
| 699 |
+
"metadata": {},
|
| 700 |
+
"outputs": [],
|
| 701 |
+
"source": []
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"cell_type": "code",
|
| 705 |
+
"execution_count": 6,
|
| 706 |
+
"metadata": {},
|
| 707 |
+
"outputs": [
|
| 708 |
+
{
|
| 709 |
+
"name": "stdout",
|
| 710 |
+
"output_type": "stream",
|
| 711 |
+
"text": [
|
| 712 |
+
"共有化合物: 1916\n",
|
| 713 |
+
"总配对样本数: 26948\n",
|
| 714 |
+
"数据集形状:\n",
|
| 715 |
+
" control_CP: (26948, 602)\n",
|
| 716 |
+
" target_CP: (26948, 602)\n",
|
| 717 |
+
" control_GE: (26948, 977)\n",
|
| 718 |
+
" target_GE: (26948, 977)\n",
|
| 719 |
+
"✅ 配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 720 |
+
]
|
| 721 |
+
}
|
| 722 |
+
],
|
| 723 |
+
"source": [
|
| 724 |
+
"import h5py\n",
|
| 725 |
+
"import numpy as np\n",
|
| 726 |
+
"import pandas as pd\n",
|
| 727 |
+
"from collections import defaultdict\n",
|
| 728 |
+
"\n",
|
| 729 |
+
"def create_paired_dataset(CP_data, GE_data, out_path):\n",
|
| 730 |
+
" \"\"\"\n",
|
| 731 |
+
" 创建样本级配对的多模态数据集\n",
|
| 732 |
+
" 保持原始样本的完整性,只配对真正对应的样本\n",
|
| 733 |
+
" \"\"\"\n",
|
| 734 |
+
" \n",
|
| 735 |
+
" # 构建SMILES到索引列表的映射\n",
|
| 736 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 737 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 738 |
+
" \n",
|
| 739 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 740 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 741 |
+
" \n",
|
| 742 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 743 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 744 |
+
" \n",
|
| 745 |
+
" # 找到共有的SMILES\n",
|
| 746 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 747 |
+
" print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 748 |
+
" \n",
|
| 749 |
+
" # 收集所有有效配对\n",
|
| 750 |
+
" paired_samples = []\n",
|
| 751 |
+
" \n",
|
| 752 |
+
" for smiles in common_smiles:\n",
|
| 753 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 754 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 755 |
+
" \n",
|
| 756 |
+
" # 为每个SMILES创建���有可能的CP-GE配对\n",
|
| 757 |
+
" for cp_idx in cp_indices:\n",
|
| 758 |
+
" for ge_idx in ge_indices:\n",
|
| 759 |
+
" paired_samples.append({\n",
|
| 760 |
+
" 'canonical_smiles': smiles,\n",
|
| 761 |
+
" 'cp_index': cp_idx,\n",
|
| 762 |
+
" 'ge_index': ge_idx\n",
|
| 763 |
+
" })\n",
|
| 764 |
+
" \n",
|
| 765 |
+
" print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 766 |
+
" \n",
|
| 767 |
+
" # 创建最终的字典形数据集\n",
|
| 768 |
+
" dataset_dict = {\n",
|
| 769 |
+
" 'canonical_smiles': [],\n",
|
| 770 |
+
" 'control_CP': [],\n",
|
| 771 |
+
" 'target_CP': [], \n",
|
| 772 |
+
" 'control_GE': [],\n",
|
| 773 |
+
" 'target_GE': []\n",
|
| 774 |
+
" }\n",
|
| 775 |
+
" \n",
|
| 776 |
+
" for sample in paired_samples:\n",
|
| 777 |
+
" dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 778 |
+
" dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 779 |
+
" dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 780 |
+
" dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 781 |
+
" dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 782 |
+
" \n",
|
| 783 |
+
" # 转换为numpy数组\n",
|
| 784 |
+
" final_dataset = {}\n",
|
| 785 |
+
" final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 786 |
+
" final_dataset['control_CP'] = np.array(dataset_dict['control_CP'], dtype=np.float32)\n",
|
| 787 |
+
" final_dataset['target_CP'] = np.array(dataset_dict['target_CP'], dtype=np.float32)\n",
|
| 788 |
+
" final_dataset['control_GE'] = np.array(dataset_dict['control_GE'], dtype=np.float32)\n",
|
| 789 |
+
" final_dataset['target_GE'] = np.array(dataset_dict['target_GE'], dtype=np.float32)\n",
|
| 790 |
+
" \n",
|
| 791 |
+
" print(f\"数据集形状:\")\n",
|
| 792 |
+
" print(f\" control_CP: {final_dataset['control_CP'].shape}\")\n",
|
| 793 |
+
" print(f\" target_CP: {final_dataset['target_CP'].shape}\")\n",
|
| 794 |
+
" print(f\" control_GE: {final_dataset['control_GE'].shape}\")\n",
|
| 795 |
+
" print(f\" target_GE: {final_dataset['target_GE'].shape}\")\n",
|
| 796 |
+
" \n",
|
| 797 |
+
" # 保存为HDF5\n",
|
| 798 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 799 |
+
" for key, value in final_dataset.items():\n",
|
| 800 |
+
" f.create_dataset(key, data=value)\n",
|
| 801 |
+
" \n",
|
| 802 |
+
" print(f\"✅ 配对数据集已保存到: {out_path}\")\n",
|
| 803 |
+
" return final_dataset\n",
|
| 804 |
+
"\n",
|
| 805 |
+
"# 使用方案\n",
|
| 806 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 807 |
+
"paired_dataset = create_paired_dataset(CP_CSV, GE_CSV, out_path)"
|
| 808 |
+
]
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"cell_type": "code",
|
| 812 |
+
"execution_count": 7,
|
| 813 |
+
"metadata": {},
|
| 814 |
+
"outputs": [
|
| 815 |
+
{
|
| 816 |
+
"data": {
|
| 817 |
+
"text/plain": [
|
| 818 |
+
"{'canonical_smiles': array(['CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1',\n",
|
| 819 |
+
" 'CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1',\n",
|
| 820 |
+
" 'CC(C)(C)c1ccc(S(=O)(=O)/C=C/C#N)cc1', ...,\n",
|
| 821 |
+
" 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O', 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O',\n",
|
| 822 |
+
" 'CCC(Cc1c(I)cc(I)c(N)c1I)C(=O)O'], dtype='<U227'),\n",
|
| 823 |
+
" 'control_CP': array([[-0.05367128, -0.22861896, 0.19134662, ..., 0.09901066,\n",
|
| 824 |
+
" 0.23015772, 0.0870431 ],\n",
|
| 825 |
+
" [-0.05367128, -0.22861896, 0.19134662, ..., 0.09901066,\n",
|
| 826 |
+
" 0.23015772, 0.0870431 ],\n",
|
| 827 |
+
" [-0.04425929, -0.20467344, 0.19937934, ..., 0.10667558,\n",
|
| 828 |
+
" 0.25934276, 0.11115717],\n",
|
| 829 |
+
" ...,\n",
|
| 830 |
+
" [-0.00746798, -0.14845599, 0.17686495, ..., 0.18434836,\n",
|
| 831 |
+
" 0.3559847 , 0.20929421],\n",
|
| 832 |
+
" [-0.0670732 , -0.11723144, 0.11542749, ..., 0.15660104,\n",
|
| 833 |
+
" 0.31949052, 0.1973684 ],\n",
|
| 834 |
+
" [-0.10378247, -0.11118906, 0.11418191, ..., 0.20794444,\n",
|
| 835 |
+
" 0.3261717 , 0.20840377]], dtype=float32),\n",
|
| 836 |
+
" 'control_GE': array([[ 0.008735 , -0.0015245 , -0.00072016, ..., 0.044401 ,\n",
|
| 837 |
+
" -0.2373012 , -0.019055 ],\n",
|
| 838 |
+
" [-0.16669 , 0.03942075, -0.1140243 , ..., -0.3791175 ,\n",
|
| 839 |
+
" 0.35399476, -0.2483125 ],\n",
|
| 840 |
+
" [ 0.008735 , -0.0015245 , -0.00072016, ..., 0.044401 ,\n",
|
| 841 |
+
" -0.2373012 , -0.019055 ],\n",
|
| 842 |
+
" ...,\n",
|
| 843 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 844 |
+
" -0.04355722, -0.13316433],\n",
|
| 845 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 846 |
+
" -0.04355722, -0.13316433],\n",
|
| 847 |
+
" [-0.04210533, 0.04783978, 0.09477517, ..., 0.01774443,\n",
|
| 848 |
+
" -0.04355722, -0.13316433]], dtype=float32),\n",
|
| 849 |
+
" 'target_CP': array([[-2.475722 , -1.0180573 , -2.4777994 , ..., -1.6663419 ,\n",
|
| 850 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 851 |
+
" [-2.475722 , -1.0180573 , -2.4777994 , ..., -1.6663419 ,\n",
|
| 852 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 853 |
+
" [-2.475722 , 3.6353707 , -1.1177131 , ..., 3.3711612 ,\n",
|
| 854 |
+
" 6.1886635 , 6.246197 ],\n",
|
| 855 |
+
" ...,\n",
|
| 856 |
+
" [-0.7142158 , 2.8495595 , -2.0671365 , ..., -0.34750465,\n",
|
| 857 |
+
" -0.56493837, -0.8109943 ],\n",
|
| 858 |
+
" [ 1.1229682 , 0.68502927, -0.7133282 , ..., 0.237633 ,\n",
|
| 859 |
+
" 0.43848613, -0.48886108],\n",
|
| 860 |
+
" [-0.6347912 , 1.2815117 , -0.40972736, ..., -0.59789634,\n",
|
| 861 |
+
" -0.81882066, -0.80796003]], dtype=float32),\n",
|
| 862 |
+
" 'target_GE': array([[-0.217655 , -0.0130605 , -0.32715666, ..., -0.279299 ,\n",
|
| 863 |
+
" 0.4241275 , 1.109114 ],\n",
|
| 864 |
+
" [-0.918455 , 0.3162145 , -0.4372258 , ..., -2.098005 ,\n",
|
| 865 |
+
" 0.3910935 , 0.438925 ],\n",
|
| 866 |
+
" [-0.217655 , -0.0130605 , -0.32715666, ..., -0.279299 ,\n",
|
| 867 |
+
" 0.4241275 , 1.109114 ],\n",
|
| 868 |
+
" ...,\n",
|
| 869 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 870 |
+
" 0.091715 , 0.10284 ],\n",
|
| 871 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 872 |
+
" 0.091715 , 0.10284 ],\n",
|
| 873 |
+
" [ 0.213685 , 0.115822 , -0.3632915 , ..., 0.15678 ,\n",
|
| 874 |
+
" 0.091715 , 0.10284 ]], dtype=float32)}"
|
| 875 |
+
]
|
| 876 |
+
},
|
| 877 |
+
"execution_count": 7,
|
| 878 |
+
"metadata": {},
|
| 879 |
+
"output_type": "execute_result"
|
| 880 |
+
}
|
| 881 |
+
],
|
| 882 |
+
"source": [
|
| 883 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 884 |
+
"\n",
|
| 885 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 886 |
+
"agg_data"
|
| 887 |
+
]
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"cell_type": "code",
|
| 891 |
+
"execution_count": 8,
|
| 892 |
+
"metadata": {},
|
| 893 |
+
"outputs": [
|
| 894 |
+
{
|
| 895 |
+
"data": {
|
| 896 |
+
"text/plain": [
|
| 897 |
+
"((26948, 602), (26948, 602), (26948, 977), (26948, 977))"
|
| 898 |
+
]
|
| 899 |
+
},
|
| 900 |
+
"execution_count": 8,
|
| 901 |
+
"metadata": {},
|
| 902 |
+
"output_type": "execute_result"
|
| 903 |
+
}
|
| 904 |
+
],
|
| 905 |
+
"source": [
|
| 906 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 907 |
+
]
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"cell_type": "code",
|
| 911 |
+
"execution_count": null,
|
| 912 |
+
"metadata": {},
|
| 913 |
+
"outputs": [],
|
| 914 |
+
"source": []
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"cell_type": "markdown",
|
| 918 |
+
"metadata": {},
|
| 919 |
+
"source": [
|
| 920 |
+
"# 限制配对的数量,更好收敛。"
|
| 921 |
+
]
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"cell_type": "code",
|
| 925 |
+
"execution_count": 25,
|
| 926 |
+
"metadata": {},
|
| 927 |
+
"outputs": [
|
| 928 |
+
{
|
| 929 |
+
"name": "stdout",
|
| 930 |
+
"output_type": "stream",
|
| 931 |
+
"text": [
|
| 932 |
+
"开始创建稳健配对数据集...\n",
|
| 933 |
+
"共有化合物: 20341\n",
|
| 934 |
+
"处理进度: 0/20341\n",
|
| 935 |
+
"处理进度: 1000/20341\n",
|
| 936 |
+
"处理进度: 2000/20341\n",
|
| 937 |
+
"处理进度: 3000/20341\n",
|
| 938 |
+
"处理进度: 4000/20341\n",
|
| 939 |
+
"处理进度: 5000/20341\n",
|
| 940 |
+
"处理进度: 6000/20341\n",
|
| 941 |
+
"处理进度: 7000/20341\n",
|
| 942 |
+
"处理进度: 8000/20341\n",
|
| 943 |
+
"处理进度: 9000/20341\n",
|
| 944 |
+
"处理进度: 10000/20341\n",
|
| 945 |
+
"处理进度: 11000/20341\n",
|
| 946 |
+
"处理进度: 12000/20341\n",
|
| 947 |
+
"处理进度: 13000/20341\n",
|
| 948 |
+
"处理进度: 14000/20341\n",
|
| 949 |
+
"处理进度: 15000/20341\n",
|
| 950 |
+
"处理进度: 16000/20341\n",
|
| 951 |
+
"处理进度: 17000/20341\n",
|
| 952 |
+
"处理进度: 18000/20341\n",
|
| 953 |
+
"处理进度: 19000/20341\n",
|
| 954 |
+
"处理进度: 20000/20341\n",
|
| 955 |
+
"总配对样本数: 223689\n",
|
| 956 |
+
"数据收集进度: 0/223689\n",
|
| 957 |
+
"数据收集进度: 10000/223689\n",
|
| 958 |
+
"数据收集进度: 20000/223689\n",
|
| 959 |
+
"数据收集进度: 30000/223689\n",
|
| 960 |
+
"数据收集进度: 40000/223689\n",
|
| 961 |
+
"数据收集进度: 50000/223689\n",
|
| 962 |
+
"数据收集进度: 60000/223689\n",
|
| 963 |
+
"数据收集进度: 70000/223689\n",
|
| 964 |
+
"数据收集进度: 80000/223689\n",
|
| 965 |
+
"数据收集进度: 90000/223689\n",
|
| 966 |
+
"数据收集进度: 100000/223689\n",
|
| 967 |
+
"数据收集进度: 110000/223689\n",
|
| 968 |
+
"数据收集进度: 120000/223689\n",
|
| 969 |
+
"数据收集进度: 130000/223689\n",
|
| 970 |
+
"数据收集进度: 140000/223689\n",
|
| 971 |
+
"数据收集进度: 150000/223689\n",
|
| 972 |
+
"数据收集进度: 160000/223689\n",
|
| 973 |
+
"数据收集进度: 170000/223689\n",
|
| 974 |
+
"数据收集进度: 180000/223689\n",
|
| 975 |
+
"数据收集进度: 190000/223689\n",
|
| 976 |
+
"数据收集进度: 200000/223689\n",
|
| 977 |
+
"数据收集进度: 210000/223689\n",
|
| 978 |
+
"数据收集进度: 220000/223689\n",
|
| 979 |
+
"control_CP: 均值=0.0174, 标准差=0.3573, 形状=(223689, 775)\n",
|
| 980 |
+
"target_CP: 均值=-0.0105, 标准差=1.1399, 形状=(223689, 775)\n",
|
| 981 |
+
"control_GE: 均值=-0.0002, 标准差=0.1332, 形状=(223689, 977)\n",
|
| 982 |
+
"target_GE: 均值=-0.0007, 标准差=0.2795, 形状=(223689, 977)\n",
|
| 983 |
+
"✅ 稳健配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 984 |
+
]
|
| 985 |
+
}
|
| 986 |
+
],
|
| 987 |
+
"source": [
|
| 988 |
+
"import h5py\n",
|
| 989 |
+
"import numpy as np\n",
|
| 990 |
+
"import pandas as pd\n",
|
| 991 |
+
"from collections import defaultdict\n",
|
| 992 |
+
"\n",
|
| 993 |
+
"def create_robust_paired_dataset(CP_data, GE_data, out_path, max_pairs_per_smiles=20):\n",
|
| 994 |
+
" \"\"\"\n",
|
| 995 |
+
" 创建稳健的样本级配对数据集\n",
|
| 996 |
+
" 添加样本限制和数据处理\n",
|
| 997 |
+
" \"\"\"\n",
|
| 998 |
+
" \n",
|
| 999 |
+
" print(\"开始创建稳健配对数据集...\")\n",
|
| 1000 |
+
" \n",
|
| 1001 |
+
" # 构建SMILES到索引列表的映射\n",
|
| 1002 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 1003 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 1004 |
+
" \n",
|
| 1005 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 1006 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 1007 |
+
" \n",
|
| 1008 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 1009 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 1010 |
+
" \n",
|
| 1011 |
+
" # 找到共有的SMILES\n",
|
| 1012 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 1013 |
+
" print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 1014 |
+
" \n",
|
| 1015 |
+
" # 收集所有有效配对(带采样限制)\n",
|
| 1016 |
+
" paired_samples = []\n",
|
| 1017 |
+
" \n",
|
| 1018 |
+
" for i, smiles in enumerate(common_smiles):\n",
|
| 1019 |
+
" if i % 1000 == 0:\n",
|
| 1020 |
+
" print(f\"处理进度: {i}/{len(common_smiles)}\")\n",
|
| 1021 |
+
" \n",
|
| 1022 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 1023 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 1024 |
+
" \n",
|
| 1025 |
+
" # 限制每个SMILES的最大配对数,避免样本爆炸\n",
|
| 1026 |
+
" max_cp_samples = min(5, len(cp_indices))\n",
|
| 1027 |
+
" max_ge_samples = min(5, len(ge_indices))\n",
|
| 1028 |
+
" \n",
|
| 1029 |
+
" # 随机采样\n",
|
| 1030 |
+
" sampled_cp = np.random.choice(cp_indices, max_cp_samples, replace=False)\n",
|
| 1031 |
+
" sampled_ge = np.random.choice(ge_indices, max_ge_samples, replace=False)\n",
|
| 1032 |
+
" \n",
|
| 1033 |
+
" # 创建配对\n",
|
| 1034 |
+
" for cp_idx in sampled_cp:\n",
|
| 1035 |
+
" for ge_idx in sampled_ge:\n",
|
| 1036 |
+
" paired_samples.append({\n",
|
| 1037 |
+
" 'canonical_smiles': smiles,\n",
|
| 1038 |
+
" 'cp_index': cp_idx,\n",
|
| 1039 |
+
" 'ge_index': ge_idx\n",
|
| 1040 |
+
" })\n",
|
| 1041 |
+
" \n",
|
| 1042 |
+
" print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 1043 |
+
" \n",
|
| 1044 |
+
" # 创建最终的字典形数据集\n",
|
| 1045 |
+
" dataset_dict = {\n",
|
| 1046 |
+
" 'canonical_smiles': [],\n",
|
| 1047 |
+
" 'control_CP': [],\n",
|
| 1048 |
+
" 'target_CP': [], \n",
|
| 1049 |
+
" 'control_GE': [],\n",
|
| 1050 |
+
" 'target_GE': []\n",
|
| 1051 |
+
" }\n",
|
| 1052 |
+
" \n",
|
| 1053 |
+
" for i, sample in enumerate(paired_samples):\n",
|
| 1054 |
+
" if i % 10000 == 0:\n",
|
| 1055 |
+
" print(f\"数据收集进度: {i}/{len(paired_samples)}\")\n",
|
| 1056 |
+
" \n",
|
| 1057 |
+
" dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 1058 |
+
" dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 1059 |
+
" dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 1060 |
+
" dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 1061 |
+
" dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 1062 |
+
" \n",
|
| 1063 |
+
" # 转换为numpy数组并进行数据清洗\n",
|
| 1064 |
+
" final_dataset = {}\n",
|
| 1065 |
+
" final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 1066 |
+
" \n",
|
| 1067 |
+
" # 数据清洗函数\n",
|
| 1068 |
+
" def clean_and_validate_data(data_list, name):\n",
|
| 1069 |
+
" data_array = np.array(data_list, dtype=np.float32)\n",
|
| 1070 |
+
" \n",
|
| 1071 |
+
" # 检查NaN和Inf\n",
|
| 1072 |
+
" nan_count = np.isnan(data_array).sum()\n",
|
| 1073 |
+
" inf_count = np.isinf(data_array).sum()\n",
|
| 1074 |
+
" \n",
|
| 1075 |
+
" if nan_count > 0 or inf_count > 0:\n",
|
| 1076 |
+
" print(f\"警告: {name} 包含 {nan_count} NaN 和 {inf_count} Inf\")\n",
|
| 1077 |
+
" data_array = np.nan_to_num(data_array, nan=0.0, posinf=1.0, neginf=-1.0)\n",
|
| 1078 |
+
" \n",
|
| 1079 |
+
" # 数据标准化\n",
|
| 1080 |
+
" mean = data_array.mean()\n",
|
| 1081 |
+
" std = data_array.std()\n",
|
| 1082 |
+
" \n",
|
| 1083 |
+
" print(f\"{name}: 均值={mean:.4f}, 标准差={std:.4f}, 形状={data_array.shape}\")\n",
|
| 1084 |
+
" \n",
|
| 1085 |
+
" return data_array\n",
|
| 1086 |
+
" \n",
|
| 1087 |
+
" final_dataset['control_CP'] = clean_and_validate_data(dataset_dict['control_CP'], 'control_CP')\n",
|
| 1088 |
+
" final_dataset['target_CP'] = clean_and_validate_data(dataset_dict['target_CP'], 'target_CP')\n",
|
| 1089 |
+
" final_dataset['control_GE'] = clean_and_validate_data(dataset_dict['control_GE'], 'control_GE')\n",
|
| 1090 |
+
" final_dataset['target_GE'] = clean_and_validate_data(dataset_dict['target_GE'], 'target_GE')\n",
|
| 1091 |
+
" \n",
|
| 1092 |
+
" # 保存为HDF5\n",
|
| 1093 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 1094 |
+
" for key, value in final_dataset.items():\n",
|
| 1095 |
+
" f.create_dataset(key, data=value)\n",
|
| 1096 |
+
" \n",
|
| 1097 |
+
" print(f\"✅ 稳健配对数据集已保存到: {out_path}\")\n",
|
| 1098 |
+
" return final_dataset\n",
|
| 1099 |
+
"\n",
|
| 1100 |
+
"\n",
|
| 1101 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 1102 |
+
"paired_dataset = create_robust_paired_dataset(CP_CSV, GE_CSV, out_path)\n"
|
| 1103 |
+
]
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"cell_type": "code",
|
| 1107 |
+
"execution_count": null,
|
| 1108 |
+
"metadata": {},
|
| 1109 |
+
"outputs": [],
|
| 1110 |
+
"source": [
|
| 1111 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 1112 |
+
"\n",
|
| 1113 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 1114 |
+
"agg_data"
|
| 1115 |
+
]
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"cell_type": "code",
|
| 1119 |
+
"execution_count": null,
|
| 1120 |
+
"metadata": {},
|
| 1121 |
+
"outputs": [],
|
| 1122 |
+
"source": []
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"cell_type": "code",
|
| 1126 |
+
"execution_count": null,
|
| 1127 |
+
"metadata": {},
|
| 1128 |
+
"outputs": [],
|
| 1129 |
+
"source": []
|
| 1130 |
+
}
|
| 1131 |
+
],
|
| 1132 |
+
"metadata": {
|
| 1133 |
+
"kernelspec": {
|
| 1134 |
+
"display_name": "boom",
|
| 1135 |
+
"language": "python",
|
| 1136 |
+
"name": "python3"
|
| 1137 |
+
},
|
| 1138 |
+
"language_info": {
|
| 1139 |
+
"codemirror_mode": {
|
| 1140 |
+
"name": "ipython",
|
| 1141 |
+
"version": 3
|
| 1142 |
+
},
|
| 1143 |
+
"file_extension": ".py",
|
| 1144 |
+
"mimetype": "text/x-python",
|
| 1145 |
+
"name": "python",
|
| 1146 |
+
"nbconvert_exporter": "python",
|
| 1147 |
+
"pygments_lexer": "ipython3",
|
| 1148 |
+
"version": "3.11.10"
|
| 1149 |
+
}
|
| 1150 |
+
},
|
| 1151 |
+
"nbformat": 4,
|
| 1152 |
+
"nbformat_minor": 2
|
| 1153 |
+
}
|
MVC/MVC_BBBC036/Step4_outlier_process.ipynb
ADDED
|
@@ -0,0 +1,491 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "389cd136",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 处理异常数据\n"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": 1,
|
| 14 |
+
"id": "917fa110",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [],
|
| 17 |
+
"source": [
|
| 18 |
+
"import numpy as np\n",
|
| 19 |
+
"import pandas as pd\n",
|
| 20 |
+
"import matplotlib.pyplot as plt\n",
|
| 21 |
+
"import seaborn as sns\n",
|
| 22 |
+
"import os\n",
|
| 23 |
+
"import h5py\n",
|
| 24 |
+
"\n",
|
| 25 |
+
"def load_from_HDF(fname):\n",
|
| 26 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 27 |
+
" data = dict()\n",
|
| 28 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 29 |
+
" for key in f:\n",
|
| 30 |
+
" data[key] = np.asarray(f[key])\n",
|
| 31 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 32 |
+
" data[key] = data[key].astype(str)\n",
|
| 33 |
+
" return data"
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"cell_type": "code",
|
| 38 |
+
"execution_count": 2,
|
| 39 |
+
"id": "cddb976e",
|
| 40 |
+
"metadata": {},
|
| 41 |
+
"outputs": [],
|
| 42 |
+
"source": [
|
| 43 |
+
"path47 = 'Aggregated_CP_GE.h5'\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 46 |
+
"data36 = load_from_HDF(path47)"
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"cell_type": "code",
|
| 51 |
+
"execution_count": 4,
|
| 52 |
+
"id": "92260f6e",
|
| 53 |
+
"metadata": {},
|
| 54 |
+
"outputs": [
|
| 55 |
+
{
|
| 56 |
+
"data": {
|
| 57 |
+
"text/plain": [
|
| 58 |
+
"(1916, 602)"
|
| 59 |
+
]
|
| 60 |
+
},
|
| 61 |
+
"execution_count": 4,
|
| 62 |
+
"metadata": {},
|
| 63 |
+
"output_type": "execute_result"
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"source": [
|
| 67 |
+
"data36['control_CP'].shape"
|
| 68 |
+
]
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"cell_type": "code",
|
| 72 |
+
"execution_count": 5,
|
| 73 |
+
"id": "54e51b05",
|
| 74 |
+
"metadata": {},
|
| 75 |
+
"outputs": [
|
| 76 |
+
{
|
| 77 |
+
"name": "stdout",
|
| 78 |
+
"output_type": "stream",
|
| 79 |
+
"text": [
|
| 80 |
+
"整个数组的数据范围:[-0.15427954494953156, 32876.36328125]\n",
|
| 81 |
+
"------------------------------\n",
|
| 82 |
+
"整个数组的数据范围:[-8.007139205932617, 370889.125]\n",
|
| 83 |
+
"------------------------------\n"
|
| 84 |
+
]
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"source": [
|
| 88 |
+
"import numpy as np\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 91 |
+
"data_min = data36['control_CP'].min()\n",
|
| 92 |
+
"data_max = data36['control_CP'].max()\n",
|
| 93 |
+
"\n",
|
| 94 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 95 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 96 |
+
"min_per_column = np.min(data36['control_CP'], axis=0)\n",
|
| 97 |
+
"max_per_column = np.max(data36['control_CP'], axis=0)\n",
|
| 98 |
+
"\n",
|
| 99 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 100 |
+
"print(\"-\" * 30)\n",
|
| 101 |
+
"\n",
|
| 102 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 103 |
+
"data_min = data36['target_CP'].min()\n",
|
| 104 |
+
"data_max = data36['target_CP'].max()\n",
|
| 105 |
+
"\n",
|
| 106 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 107 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 108 |
+
"min_per_column = np.min(data36['target_CP'], axis=0)\n",
|
| 109 |
+
"max_per_column = np.max(data36['target_CP'], axis=0)\n",
|
| 110 |
+
"\n",
|
| 111 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 112 |
+
"print(\"-\" * 30)"
|
| 113 |
+
]
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"cell_type": "code",
|
| 117 |
+
"execution_count": 6,
|
| 118 |
+
"id": "bde80b4c",
|
| 119 |
+
"metadata": {},
|
| 120 |
+
"outputs": [
|
| 121 |
+
{
|
| 122 |
+
"name": "stdout",
|
| 123 |
+
"output_type": "stream",
|
| 124 |
+
"text": [
|
| 125 |
+
"整个数组的数据范围:[-0.059715718030929565, 0.10131344199180603]\n",
|
| 126 |
+
"------------------------------\n",
|
| 127 |
+
"整个数组的数据范围:[-4.208789825439453, 6.420098304748535]\n",
|
| 128 |
+
"------------------------------\n"
|
| 129 |
+
]
|
| 130 |
+
}
|
| 131 |
+
],
|
| 132 |
+
"source": [
|
| 133 |
+
"import numpy as np\n",
|
| 134 |
+
"\n",
|
| 135 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 136 |
+
"data_min = data36['control_GE'].min()\n",
|
| 137 |
+
"data_max = data36['control_GE'].max()\n",
|
| 138 |
+
"\n",
|
| 139 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 140 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 141 |
+
"min_per_column = np.min(data36['control_GE'], axis=0)\n",
|
| 142 |
+
"max_per_column = np.max(data36['control_GE'], axis=0)\n",
|
| 143 |
+
"\n",
|
| 144 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 145 |
+
"print(\"-\" * 30)\n",
|
| 146 |
+
"\n",
|
| 147 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 148 |
+
"data_min = data36['target_GE'].min()\n",
|
| 149 |
+
"data_max = data36['target_GE'].max()\n",
|
| 150 |
+
"\n",
|
| 151 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 152 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 153 |
+
"min_per_column = np.min(data36['target_GE'], axis=0)\n",
|
| 154 |
+
"max_per_column = np.max(data36['target_GE'], axis=0)\n",
|
| 155 |
+
"\n",
|
| 156 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 157 |
+
"print(\"-\" * 30)"
|
| 158 |
+
]
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"cell_type": "markdown",
|
| 162 |
+
"id": "053cfaa7",
|
| 163 |
+
"metadata": {},
|
| 164 |
+
"source": [
|
| 165 |
+
"## 看看 cpg0016 的数值范围"
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"cell_type": "code",
|
| 170 |
+
"execution_count": null,
|
| 171 |
+
"id": "c81440ab",
|
| 172 |
+
"metadata": {},
|
| 173 |
+
"outputs": [
|
| 174 |
+
{
|
| 175 |
+
"name": "stdout",
|
| 176 |
+
"output_type": "stream",
|
| 177 |
+
"text": [
|
| 178 |
+
"整个数组的数据范围:[-1.2491892576217651, 1.3490736484527588]\n",
|
| 179 |
+
"------------------------------\n",
|
| 180 |
+
"整个数组的数据范围:[-6.057624816894531, 6.188350677490234]\n",
|
| 181 |
+
"------------------------------\n"
|
| 182 |
+
]
|
| 183 |
+
}
|
| 184 |
+
],
|
| 185 |
+
"source": [
|
| 186 |
+
"# cpg0016_data = '/home/bob/boom/VCBench/data/Image/cpg0016_data.h5'\n",
|
| 187 |
+
"\n",
|
| 188 |
+
"# # data36 = load_from_HDF(path36)\n",
|
| 189 |
+
"# cpg0016_data = load_from_HDF(cpg0016_data)\n",
|
| 190 |
+
"\n",
|
| 191 |
+
"# import numpy as np\n",
|
| 192 |
+
"\n",
|
| 193 |
+
"# # 计算整个数组的最小值和最大值\n",
|
| 194 |
+
"# data_min = cpg0016_data['control'].min()\n",
|
| 195 |
+
"# data_max = cpg0016_data['control'].max()\n",
|
| 196 |
+
"\n",
|
| 197 |
+
"# # 计算每列(即每个特征)的最小值和最大值\n",
|
| 198 |
+
"# # axis=0 表示对每一列进行操作\n",
|
| 199 |
+
"# min_per_column = np.min(cpg0016_data['control'], axis=0)\n",
|
| 200 |
+
"# max_per_column = np.max(cpg0016_data['control'], axis=0)\n",
|
| 201 |
+
"\n",
|
| 202 |
+
"# print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 203 |
+
"# print(\"-\" * 30)\n",
|
| 204 |
+
"\n",
|
| 205 |
+
"# # 计算整个数组的最小值和最大值\n",
|
| 206 |
+
"# data_min = cpg0016_data['target'].min()\n",
|
| 207 |
+
"# data_max = cpg0016_data['target'].max()\n",
|
| 208 |
+
"\n",
|
| 209 |
+
"# # 计算每列(即每个特征)的最小值和最大值\n",
|
| 210 |
+
"# # axis=0 表示对每一列进行操作\n",
|
| 211 |
+
"# min_per_column = np.min(cpg0016_data['target'], axis=0)\n",
|
| 212 |
+
"# max_per_column = np.max(cpg0016_data['target'], axis=0)\n",
|
| 213 |
+
"\n",
|
| 214 |
+
"# print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 215 |
+
"# print(\"-\" * 30)"
|
| 216 |
+
]
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"cell_type": "code",
|
| 220 |
+
"execution_count": null,
|
| 221 |
+
"id": "c7005461",
|
| 222 |
+
"metadata": {},
|
| 223 |
+
"outputs": [],
|
| 224 |
+
"source": []
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"cell_type": "code",
|
| 228 |
+
"execution_count": 9,
|
| 229 |
+
"id": "2b2f331e",
|
| 230 |
+
"metadata": {},
|
| 231 |
+
"outputs": [
|
| 232 |
+
{
|
| 233 |
+
"name": "stdout",
|
| 234 |
+
"output_type": "stream",
|
| 235 |
+
"text": [
|
| 236 |
+
"\n",
|
| 237 |
+
"标准化后的整个数组的数据范围:[-19.69989776611328, 31.564712524414062]\n"
|
| 238 |
+
]
|
| 239 |
+
}
|
| 240 |
+
],
|
| 241 |
+
"source": [
|
| 242 |
+
"import numpy as np\n",
|
| 243 |
+
"\n",
|
| 244 |
+
"# 假设 data36['target_CP'] 是你的原始数据, target_CP, control_CP\n",
|
| 245 |
+
"data_with_outlier = data36['target_CP']\n",
|
| 246 |
+
"\n",
|
| 247 |
+
"# 1. 异常值处理 - 使用截断法 (Clipping)\n",
|
| 248 |
+
"# 设定一个更保守的上限,例如基于分位数\n",
|
| 249 |
+
"q99 = np.percentile(data_with_outlier, 99)\n",
|
| 250 |
+
"clip_max = q99 * 2 # 或者直接用一个固定值,比如 5\n",
|
| 251 |
+
"data_clipped = np.clip(data_with_outlier, a_min=None, a_max=clip_max)\n",
|
| 252 |
+
"# 2. 数据标准化 - Z-score Normalization\n",
|
| 253 |
+
"# 计算每列(特征)的均值和标准差\n",
|
| 254 |
+
"mu = data_clipped.mean(axis=0)\n",
|
| 255 |
+
"sigma = data_clipped.std(axis=0)\n",
|
| 256 |
+
"\n",
|
| 257 |
+
"# 初始化一个与数据形状相同的零数组\n",
|
| 258 |
+
"data_normalized = np.zeros_like(data_clipped, dtype=float)\n",
|
| 259 |
+
"\n",
|
| 260 |
+
"# 找到标准差不为0的列\n",
|
| 261 |
+
"# 为了避免浮点数误差,使用一个非常小的阈值来检查\n",
|
| 262 |
+
"epsilon = 1e-8\n",
|
| 263 |
+
"nonzero_sigma_cols = sigma > epsilon\n",
|
| 264 |
+
"\n",
|
| 265 |
+
"# 对这些列进行零均值化\n",
|
| 266 |
+
"data_normalized[:, nonzero_sigma_cols] = (data_clipped[:, nonzero_sigma_cols] - mu[nonzero_sigma_cols]) / sigma[nonzero_sigma_cols]\n",
|
| 267 |
+
"\n",
|
| 268 |
+
"# 检查结果\n",
|
| 269 |
+
"data_min = data_normalized.min()\n",
|
| 270 |
+
"data_max = data_normalized.max()\n",
|
| 271 |
+
"\n",
|
| 272 |
+
"print(f\"\\n标准化后的整个数组的数据范围:[{data_min}, {data_max}]\")"
|
| 273 |
+
]
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"cell_type": "code",
|
| 277 |
+
"execution_count": 10,
|
| 278 |
+
"id": "9ccda958",
|
| 279 |
+
"metadata": {},
|
| 280 |
+
"outputs": [],
|
| 281 |
+
"source": [
|
| 282 |
+
"# control_CP = data_normalized.copy()\n",
|
| 283 |
+
"# print(control_CP.shape)\n",
|
| 284 |
+
"target_CP = data_normalized.copy()"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"cell_type": "code",
|
| 289 |
+
"execution_count": 11,
|
| 290 |
+
"id": "6e515034",
|
| 291 |
+
"metadata": {},
|
| 292 |
+
"outputs": [
|
| 293 |
+
{
|
| 294 |
+
"name": "stdout",
|
| 295 |
+
"output_type": "stream",
|
| 296 |
+
"text": [
|
| 297 |
+
"整个数组的数据范围:[-43.761436462402344, 6.348904132843018]\n",
|
| 298 |
+
"------------------------------\n",
|
| 299 |
+
"整个数组的数据范围:[-19.69989776611328, 31.564712524414062]\n",
|
| 300 |
+
"------------------------------\n"
|
| 301 |
+
]
|
| 302 |
+
}
|
| 303 |
+
],
|
| 304 |
+
"source": [
|
| 305 |
+
"import numpy as np\n",
|
| 306 |
+
"\n",
|
| 307 |
+
"data_min = control_CP.min()\n",
|
| 308 |
+
"data_max = control_CP.max()\n",
|
| 309 |
+
"\n",
|
| 310 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 311 |
+
"print(\"-\" * 30)\n",
|
| 312 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 313 |
+
"data_min = target_CP.min()\n",
|
| 314 |
+
"data_max = target_CP.max()\n",
|
| 315 |
+
"\n",
|
| 316 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 317 |
+
"print(\"-\" * 30)"
|
| 318 |
+
]
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"cell_type": "code",
|
| 322 |
+
"execution_count": 12,
|
| 323 |
+
"id": "481b57e7",
|
| 324 |
+
"metadata": {},
|
| 325 |
+
"outputs": [
|
| 326 |
+
{
|
| 327 |
+
"name": "stdout",
|
| 328 |
+
"output_type": "stream",
|
| 329 |
+
"text": [
|
| 330 |
+
"float64 float64\n",
|
| 331 |
+
"float32 float32\n"
|
| 332 |
+
]
|
| 333 |
+
}
|
| 334 |
+
],
|
| 335 |
+
"source": [
|
| 336 |
+
"print(control_CP.dtype, target_CP.dtype)\n",
|
| 337 |
+
"\n",
|
| 338 |
+
"control_CP_float32 = control_CP.astype(np.float32)\n",
|
| 339 |
+
"target_CP_float32 = target_CP.astype(np.float32)\n",
|
| 340 |
+
"print(control_CP_float32.dtype, target_CP_float32.dtype)"
|
| 341 |
+
]
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"cell_type": "code",
|
| 345 |
+
"execution_count": 13,
|
| 346 |
+
"id": "6e2d6030",
|
| 347 |
+
"metadata": {},
|
| 348 |
+
"outputs": [
|
| 349 |
+
{
|
| 350 |
+
"name": "stdout",
|
| 351 |
+
"output_type": "stream",
|
| 352 |
+
"text": [
|
| 353 |
+
"已删除旧的 'control_CP' 数据集。\n",
|
| 354 |
+
"已删除旧的 'target_CP' 数据集。\n",
|
| 355 |
+
"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\n",
|
| 356 |
+
"操作完成。\n"
|
| 357 |
+
]
|
| 358 |
+
}
|
| 359 |
+
],
|
| 360 |
+
"source": [
|
| 361 |
+
"file_path = 'Aggregated_CP_GE.h5'\n",
|
| 362 |
+
"# 使用 'a' (append) 模式打开文件\n",
|
| 363 |
+
"with h5py.File(file_path, 'a') as f:\n",
|
| 364 |
+
" \n",
|
| 365 |
+
" # 1. 删除旧的数据集(如果存在)\n",
|
| 366 |
+
" if \"control_CP\" in f:\n",
|
| 367 |
+
" del f[\"control_CP\"]\n",
|
| 368 |
+
" print(\"已删除旧的 'control_CP' 数据集。\")\n",
|
| 369 |
+
" \n",
|
| 370 |
+
" if \"target_CP\" in f:\n",
|
| 371 |
+
" del f[\"target_CP\"]\n",
|
| 372 |
+
" print(\"已删除旧的 'target_CP' 数据集。\")\n",
|
| 373 |
+
" \n",
|
| 374 |
+
" # 2. 创建并写入新的数据集\n",
|
| 375 |
+
" f.create_dataset(\"control_CP\", data=control_CP_float32)\n",
|
| 376 |
+
" f.create_dataset(\"target_CP\", data=target_CP_float32)\n",
|
| 377 |
+
" \n",
|
| 378 |
+
" print(\"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\")\n",
|
| 379 |
+
"\n",
|
| 380 |
+
"print(\"操作完成。\")\n"
|
| 381 |
+
]
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"cell_type": "code",
|
| 385 |
+
"execution_count": null,
|
| 386 |
+
"id": "b131c13e",
|
| 387 |
+
"metadata": {},
|
| 388 |
+
"outputs": [],
|
| 389 |
+
"source": []
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"cell_type": "markdown",
|
| 393 |
+
"id": "5a82372f",
|
| 394 |
+
"metadata": {},
|
| 395 |
+
"source": [
|
| 396 |
+
"# 看基因数据是否异常 -- 没有"
|
| 397 |
+
]
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"cell_type": "code",
|
| 401 |
+
"execution_count": 14,
|
| 402 |
+
"id": "a81ddc86",
|
| 403 |
+
"metadata": {},
|
| 404 |
+
"outputs": [
|
| 405 |
+
{
|
| 406 |
+
"name": "stdout",
|
| 407 |
+
"output_type": "stream",
|
| 408 |
+
"text": [
|
| 409 |
+
"整个数组的数据范围:[-43.761436462402344, 6.348904132843018]\n",
|
| 410 |
+
"------------------------------\n",
|
| 411 |
+
"每列数据的最小值(前10个):\n",
|
| 412 |
+
"[-1.6301312 -1.4819461 -1.9675876 -2.272238 -3.393242 -1.1765975\n",
|
| 413 |
+
" -2.6176555 -1.2396002 -2.462905 -2.8029377]\n",
|
| 414 |
+
"------------------------------\n",
|
| 415 |
+
"每列数据的最大值(前10个):\n",
|
| 416 |
+
"[3.0697236 1.985853 1.09526 1.1315886 2.1168044 2.9211075 2.1078165\n",
|
| 417 |
+
" 2.3139157 2.1509798 1.5131917]\n"
|
| 418 |
+
]
|
| 419 |
+
}
|
| 420 |
+
],
|
| 421 |
+
"source": [
|
| 422 |
+
"import numpy as np\n",
|
| 423 |
+
"\n",
|
| 424 |
+
"data36 = load_from_HDF( 'Aggregated_CP_GE.h5')\n",
|
| 425 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 426 |
+
"data_min = data36['control_CP'].min()\n",
|
| 427 |
+
"data_max = data36['control_CP'].max()\n",
|
| 428 |
+
"\n",
|
| 429 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 430 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 431 |
+
"min_per_column = np.min(data36['control_CP'], axis=0)\n",
|
| 432 |
+
"max_per_column = np.max(data36['control_CP'], axis=0)\n",
|
| 433 |
+
"\n",
|
| 434 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 435 |
+
"print(\"-\" * 30)\n",
|
| 436 |
+
"print(\"每列数据的最小值(前10个):\")\n",
|
| 437 |
+
"print(min_per_column[:10])\n",
|
| 438 |
+
"print(\"-\" * 30)\n",
|
| 439 |
+
"print(\"每列数据的最大值(前10个):\")\n",
|
| 440 |
+
"print(max_per_column[:10])"
|
| 441 |
+
]
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"cell_type": "code",
|
| 445 |
+
"execution_count": null,
|
| 446 |
+
"id": "770f3727",
|
| 447 |
+
"metadata": {},
|
| 448 |
+
"outputs": [],
|
| 449 |
+
"source": [
|
| 450 |
+
"# 看看方差\n"
|
| 451 |
+
]
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"cell_type": "code",
|
| 455 |
+
"execution_count": null,
|
| 456 |
+
"id": "10693804",
|
| 457 |
+
"metadata": {},
|
| 458 |
+
"outputs": [],
|
| 459 |
+
"source": []
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"cell_type": "code",
|
| 463 |
+
"execution_count": null,
|
| 464 |
+
"id": "c072eea5",
|
| 465 |
+
"metadata": {},
|
| 466 |
+
"outputs": [],
|
| 467 |
+
"source": []
|
| 468 |
+
}
|
| 469 |
+
],
|
| 470 |
+
"metadata": {
|
| 471 |
+
"kernelspec": {
|
| 472 |
+
"display_name": "boom",
|
| 473 |
+
"language": "python",
|
| 474 |
+
"name": "python3"
|
| 475 |
+
},
|
| 476 |
+
"language_info": {
|
| 477 |
+
"codemirror_mode": {
|
| 478 |
+
"name": "ipython",
|
| 479 |
+
"version": 3
|
| 480 |
+
},
|
| 481 |
+
"file_extension": ".py",
|
| 482 |
+
"mimetype": "text/x-python",
|
| 483 |
+
"name": "python",
|
| 484 |
+
"nbconvert_exporter": "python",
|
| 485 |
+
"pygments_lexer": "ipython3",
|
| 486 |
+
"version": "3.11.10"
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
"nbformat": 4,
|
| 490 |
+
"nbformat_minor": 5
|
| 491 |
+
}
|
MVC/MVC_BBBC047/Step1_data_process.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/MVC_BBBC047/Step2_align copy.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/MVC_BBBC047/Step2_align.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MVC/MVC_BBBC047/Step3_aggreate_2modality.ipynb
ADDED
|
@@ -0,0 +1,1155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"## 数据聚合:「输入药物 SMILES,输出基因表达 + 细胞形态」的多模态虚拟细胞模型,配对不齐,训练集不均衡。\n",
|
| 8 |
+
"\n",
|
| 9 |
+
"## 策略有3种:\n",
|
| 10 |
+
"\n",
|
| 11 |
+
"### 1 是按 SMILES 聚合,对每个 SMILES 在每个模态上 取平均或中位数(或更复杂的 embedding 聚合)。\n",
|
| 12 |
+
"\n",
|
| 13 |
+
"### 2 是多实例学习(Multiple Instance Learning, MIL):思路:把一个 SMILES 的所有 replicate 当作一个 bag,模型学习 bag-level 对齐。\n",
|
| 14 |
+
"\n",
|
| 15 |
+
"### 3 是不对齐 replicate,随机采样:思路:训练时,每个 batch 从两个模态中随机采样该 SMILES 的一个 replicate,逐步逼近两个分布。"
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"cell_type": "code",
|
| 20 |
+
"execution_count": 13,
|
| 21 |
+
"metadata": {},
|
| 22 |
+
"outputs": [],
|
| 23 |
+
"source": [
|
| 24 |
+
"import numpy as np\n",
|
| 25 |
+
"import pandas as pd\n",
|
| 26 |
+
"import matplotlib.pyplot as plt\n",
|
| 27 |
+
"import seaborn as sns\n",
|
| 28 |
+
"import os\n",
|
| 29 |
+
"import h5py\n",
|
| 30 |
+
"\n",
|
| 31 |
+
"def load_from_HDF(fname):\n",
|
| 32 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 33 |
+
" data = dict()\n",
|
| 34 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 35 |
+
" for key in f:\n",
|
| 36 |
+
" data[key] = np.asarray(f[key])\n",
|
| 37 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 38 |
+
" data[key] = data[key].astype(str)\n",
|
| 39 |
+
" return data\n"
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"cell_type": "code",
|
| 44 |
+
"execution_count": 14,
|
| 45 |
+
"metadata": {},
|
| 46 |
+
"outputs": [],
|
| 47 |
+
"source": [
|
| 48 |
+
"CP_path = './Processed_Paired_CP_KeepRep.h5'\n",
|
| 49 |
+
"GE_path = './Processed_Paired_GE_KeepRep.h5'\n",
|
| 50 |
+
"\n",
|
| 51 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 52 |
+
"GE_CSV = load_from_HDF(GE_path)"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"cell_type": "code",
|
| 57 |
+
"execution_count": 15,
|
| 58 |
+
"metadata": {},
|
| 59 |
+
"outputs": [
|
| 60 |
+
{
|
| 61 |
+
"data": {
|
| 62 |
+
"text/plain": [
|
| 63 |
+
"{'canonical_smiles': array(['CCCOc1cc(N)ccc1C(=O)OCCN(CC)CC',\n",
|
| 64 |
+
" 'C=C(C)[C@@H]1CCC(C)=C[C@H]1c1c(OC)cc(C)cc1OC',\n",
|
| 65 |
+
" 'COc1cc(O)cc(/C=C/c2ccccc2)c1', ...,\n",
|
| 66 |
+
" 'C[C@@H]1CN([C@@H](C)CO)C(=O)CCCn2cc(nn2)CO[C@H]1CN(C)C(=O)c1ccncc1',\n",
|
| 67 |
+
" 'C[C@H](CO)N1C[C@H](C)[C@@H](CN(C)C(=O)c2ccncc2)OCc2cn(nn2)CCCC1=O',\n",
|
| 68 |
+
" 'C[C@@H]1CN([C@@H](C)CO)C(=O)CCCn2nncc2CO[C@H]1CN(C)Cc1ccc2c(c1)OCCN2C'],\n",
|
| 69 |
+
" dtype='<U227'),\n",
|
| 70 |
+
" 'control': array([[-0.15425342, 0.20473444, 0.04847282, ..., 0.22247523,\n",
|
| 71 |
+
" 0.41372228, 0.09528223],\n",
|
| 72 |
+
" [-0.15425342, 0.20473444, 0.04847282, ..., 0.22247523,\n",
|
| 73 |
+
" 0.41372228, 0.09528223],\n",
|
| 74 |
+
" [-0.15425342, 0.20473444, 0.04847282, ..., 0.22247523,\n",
|
| 75 |
+
" 0.41372228, 0.09528223],\n",
|
| 76 |
+
" ...,\n",
|
| 77 |
+
" [ 0.08794986, 0.04630309, 0.0316207 , ..., -0.18811361,\n",
|
| 78 |
+
" -0.08507317, -0.19418037],\n",
|
| 79 |
+
" [ 0.08794986, 0.04630309, 0.0316207 , ..., -0.18811361,\n",
|
| 80 |
+
" -0.08507317, -0.19418037],\n",
|
| 81 |
+
" [ 0.08794986, 0.04630309, 0.0316207 , ..., -0.18811361,\n",
|
| 82 |
+
" -0.08507317, -0.19418037]], dtype=float32),\n",
|
| 83 |
+
" 'dose': array([ 6.05, 10. , 10. , ..., 10.41, 10.14, 10.22], dtype=float32),\n",
|
| 84 |
+
" 'target': array([[ 1.7987275 , -1.0678272 , -1.3908694 , ..., -2.2844946 ,\n",
|
| 85 |
+
" -1.4380481 , -0.4035441 ],\n",
|
| 86 |
+
" [ 0.3030874 , 0.57465357, -0.18462732, ..., -1.4371198 ,\n",
|
| 87 |
+
" -0.8579998 , 0.20614216],\n",
|
| 88 |
+
" [-0.7811053 , 0.5069796 , 0.9922175 , ..., 0.3974406 ,\n",
|
| 89 |
+
" -0.13609461, 0.42841423],\n",
|
| 90 |
+
" ...,\n",
|
| 91 |
+
" [ 1.466404 , -1.2910391 , -0.19340979, ..., -2.0167367 ,\n",
|
| 92 |
+
" -1.2818346 , -1.4399147 ],\n",
|
| 93 |
+
" [ 1.0264087 , -0.42999583, -1.681699 , ..., -1.4709337 ,\n",
|
| 94 |
+
" -0.9747103 , -1.4030336 ],\n",
|
| 95 |
+
" [ 1.4138446 , -0.93786097, -1.3868744 , ..., -1.2337868 ,\n",
|
| 96 |
+
" -0.58811694, -0.94757 ]], dtype=float32)}"
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
"execution_count": 15,
|
| 100 |
+
"metadata": {},
|
| 101 |
+
"output_type": "execute_result"
|
| 102 |
+
}
|
| 103 |
+
],
|
| 104 |
+
"source": [
|
| 105 |
+
"CP_CSV"
|
| 106 |
+
]
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"cell_type": "code",
|
| 110 |
+
"execution_count": 16,
|
| 111 |
+
"metadata": {},
|
| 112 |
+
"outputs": [
|
| 113 |
+
{
|
| 114 |
+
"data": {
|
| 115 |
+
"text/plain": [
|
| 116 |
+
"{'canonical_smiles': array(['CC(C)[C@H](CO)Nc1nc(Nc2cc(N)cc(Cl)c2)c2ncn(C(C)C)c2n1',\n",
|
| 117 |
+
" 'Ic1cccc(CSc2nnc(-c3ccncc3)o2)c1',\n",
|
| 118 |
+
" 'O=C(Nc1ccncc1)Nc1c(Cl)cc(Cl)cc1Cl', ...,\n",
|
| 119 |
+
" 'O=C(O)c1ccc(-c2ccc(/C=c3\\\\sc4nc5ccccc5n4c3=O)o2)cc1',\n",
|
| 120 |
+
" 'O=S(=O)(c1cccc2cncc(C(F)F)c12)N1CCCNCC1',\n",
|
| 121 |
+
" 'COc1ccc(S(=O)(=O)N(C)C[C@@H]2Oc3c(NC(=O)Nc4cccc5ccccc45)cccc3C(=O)N([C@@H](C)CO)C[C@H]2C)cc1'],\n",
|
| 122 |
+
" dtype='<U227'),\n",
|
| 123 |
+
" 'control': array([[ 0.305876 , -0.59514517, -0.21795662, ..., 0.20644613,\n",
|
| 124 |
+
" -0.07786681, 0.14617148],\n",
|
| 125 |
+
" [ 0.305876 , -0.59514517, -0.21795662, ..., 0.20644613,\n",
|
| 126 |
+
" -0.07786681, 0.14617148],\n",
|
| 127 |
+
" [ 0.305876 , -0.59514517, -0.21795662, ..., 0.20644613,\n",
|
| 128 |
+
" -0.07786681, 0.14617148],\n",
|
| 129 |
+
" ...,\n",
|
| 130 |
+
" [ 0. , 0. , 0. , ..., 0. ,\n",
|
| 131 |
+
" 0. , 0. ],\n",
|
| 132 |
+
" [ 0. , 0. , 0. , ..., 0. ,\n",
|
| 133 |
+
" 0. , 0. ],\n",
|
| 134 |
+
" [ 0. , 0. , 0. , ..., 0. ,\n",
|
| 135 |
+
" 0. , 0. ]], dtype=float32),\n",
|
| 136 |
+
" 'dose': array([50. , 12.7, 50. , ..., 20. , 40. , 20. ], dtype=float32),\n",
|
| 137 |
+
" 'target': array([[-0.7184085 , -1.4126618 , -1.7777987 , ..., 1.1767539 ,\n",
|
| 138 |
+
" 2.0003324 , 2.4972866 ],\n",
|
| 139 |
+
" [ 0.25343022, -1.2717106 , -0.0366732 , ..., 1.8126812 ,\n",
|
| 140 |
+
" -0.6341776 , -1.2102923 ],\n",
|
| 141 |
+
" [-0.43184918, 1.0067521 , -0.00558909, ..., -0.26218557,\n",
|
| 142 |
+
" -0.8643179 , 1.4752281 ],\n",
|
| 143 |
+
" ...,\n",
|
| 144 |
+
" [-0.67632276, 0.7587029 , 0.3990235 , ..., 2.8850307 ,\n",
|
| 145 |
+
" -0.92035365, -1.8870968 ],\n",
|
| 146 |
+
" [-2.1307466 , 2.1573339 , -1.6117429 , ..., 0.566304 ,\n",
|
| 147 |
+
" -1.1584423 , -2.332463 ],\n",
|
| 148 |
+
" [ 2.0216608 , 1.4105401 , -1.0605472 , ..., -0.1974064 ,\n",
|
| 149 |
+
" -0.30219036, -1.2475965 ]], dtype=float32)}"
|
| 150 |
+
]
|
| 151 |
+
},
|
| 152 |
+
"execution_count": 16,
|
| 153 |
+
"metadata": {},
|
| 154 |
+
"output_type": "execute_result"
|
| 155 |
+
}
|
| 156 |
+
],
|
| 157 |
+
"source": [
|
| 158 |
+
"GE_CSV"
|
| 159 |
+
]
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"cell_type": "code",
|
| 163 |
+
"execution_count": 11,
|
| 164 |
+
"metadata": {},
|
| 165 |
+
"outputs": [
|
| 166 |
+
{
|
| 167 |
+
"data": {
|
| 168 |
+
"text/plain": [
|
| 169 |
+
"((86844, 741), (57835, 977))"
|
| 170 |
+
]
|
| 171 |
+
},
|
| 172 |
+
"execution_count": 11,
|
| 173 |
+
"metadata": {},
|
| 174 |
+
"output_type": "execute_result"
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"source": [
|
| 178 |
+
"CP_CSV['target'].shape, GE_CSV['target'].shape"
|
| 179 |
+
]
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"cell_type": "code",
|
| 183 |
+
"execution_count": null,
|
| 184 |
+
"metadata": {},
|
| 185 |
+
"outputs": [],
|
| 186 |
+
"source": []
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"cell_type": "markdown",
|
| 190 |
+
"metadata": {},
|
| 191 |
+
"source": [
|
| 192 |
+
"# 按照第一种方式直接 mean"
|
| 193 |
+
]
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"cell_type": "code",
|
| 197 |
+
"execution_count": 10,
|
| 198 |
+
"metadata": {},
|
| 199 |
+
"outputs": [
|
| 200 |
+
{
|
| 201 |
+
"name": "stdout",
|
| 202 |
+
"output_type": "stream",
|
| 203 |
+
"text": [
|
| 204 |
+
"✅ 聚合后的数据已保存到 ./Aggregated_CP_GE.h5\n"
|
| 205 |
+
]
|
| 206 |
+
}
|
| 207 |
+
],
|
| 208 |
+
"source": [
|
| 209 |
+
"import h5py\n",
|
| 210 |
+
"import numpy as np\n",
|
| 211 |
+
"import pandas as pd\n",
|
| 212 |
+
"\n",
|
| 213 |
+
"def aggregate_modalities(CP, GE, out_path):\n",
|
| 214 |
+
" # 转成 DataFrame 方便聚合\n",
|
| 215 |
+
" CP_df = pd.DataFrame({\n",
|
| 216 |
+
" \"SMILES\": CP[\"canonical_smiles\"],\n",
|
| 217 |
+
" \"control\": list(CP[\"control\"]),\n",
|
| 218 |
+
" \"target\": list(CP[\"target\"])\n",
|
| 219 |
+
" })\n",
|
| 220 |
+
" GE_df = pd.DataFrame({\n",
|
| 221 |
+
" \"SMILES\": GE[\"canonical_smiles\"],\n",
|
| 222 |
+
" \"control\": list(GE[\"control\"]),\n",
|
| 223 |
+
" \"target\": list(GE[\"target\"])\n",
|
| 224 |
+
" })\n",
|
| 225 |
+
"\n",
|
| 226 |
+
" # groupby + mean pooling\n",
|
| 227 |
+
" CP_grouped = CP_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 228 |
+
" GE_grouped = GE_df.groupby(\"SMILES\").agg(lambda x: np.nanmean(np.stack(x), axis=0)).reset_index()\n",
|
| 229 |
+
"\n",
|
| 230 |
+
" # merge 保证对齐\n",
|
| 231 |
+
" merged = pd.merge(CP_grouped, GE_grouped, on=\"SMILES\", how=\"inner\", suffixes=(\"_CP\", \"_GE\"))\n",
|
| 232 |
+
"\n",
|
| 233 |
+
" # 转 numpy array 并替换剩余 NaN\n",
|
| 234 |
+
" def clean_array(arr_list):\n",
|
| 235 |
+
" arr = np.stack(arr_list.to_numpy())\n",
|
| 236 |
+
" arr = np.nan_to_num(arr, nan=0.0, posinf=0.0, neginf=0.0) # 替换 NaN/Inf\n",
|
| 237 |
+
" return arr.astype(np.float32)\n",
|
| 238 |
+
"\n",
|
| 239 |
+
" smiles_array = merged[\"SMILES\"].to_numpy(dtype=\"S\")\n",
|
| 240 |
+
" control_CP_array = clean_array(merged[\"control_CP\"])\n",
|
| 241 |
+
" target_CP_array = clean_array(merged[\"target_CP\"])\n",
|
| 242 |
+
" control_GE_array = clean_array(merged[\"control_GE\"])\n",
|
| 243 |
+
" target_GE_array = clean_array(merged[\"target_GE\"])\n",
|
| 244 |
+
"\n",
|
| 245 |
+
" # 存 HDF5\n",
|
| 246 |
+
" with h5py.File(out_path, \"w\") as f:\n",
|
| 247 |
+
" f.create_dataset(\"canonical_smiles\", data=smiles_array)\n",
|
| 248 |
+
" f.create_dataset(\"control_CP\", data=control_CP_array)\n",
|
| 249 |
+
" f.create_dataset(\"target_CP\", data=target_CP_array)\n",
|
| 250 |
+
" f.create_dataset(\"control_GE\", data=control_GE_array)\n",
|
| 251 |
+
" f.create_dataset(\"target_GE\", data=target_GE_array)\n",
|
| 252 |
+
"\n",
|
| 253 |
+
" print(f\"✅ 聚合后的数据已保存到 {out_path}\")\n",
|
| 254 |
+
"\n",
|
| 255 |
+
"# 用法\n",
|
| 256 |
+
"# root = '/home/bob/boom/VCBench/data/MVC/CDRP-BBBC047-Bray/'\n",
|
| 257 |
+
"CP_path = './Processed_Paired_CP.h5'\n",
|
| 258 |
+
"GE_path = './Processed_Paired_GE.h5'\n",
|
| 259 |
+
"\n",
|
| 260 |
+
"CP_CSV = load_from_HDF(CP_path)\n",
|
| 261 |
+
"GE_CSV = load_from_HDF(GE_path)\n",
|
| 262 |
+
"\n",
|
| 263 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 264 |
+
"aggregate_modalities(CP_CSV, GE_CSV, out_path)\n"
|
| 265 |
+
]
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"cell_type": "code",
|
| 269 |
+
"execution_count": 12,
|
| 270 |
+
"metadata": {},
|
| 271 |
+
"outputs": [
|
| 272 |
+
{
|
| 273 |
+
"data": {
|
| 274 |
+
"text/plain": [
|
| 275 |
+
"{'canonical_smiles': array(['Brc1c(CSc2nc3ccccc3s2)nc2ncccn12', 'Brc1c(NC2=NCCN2)ccc2nccnc12',\n",
|
| 276 |
+
" 'Brc1ccc(CSc2nnc(-c3ccccn3)n2Cc2ccco2)cc1', ...,\n",
|
| 277 |
+
" 'c1nc(CC2CCNCC2)c[nH]1', 'c1nc(CCCC2CCNCC2)c[nH]1',\n",
|
| 278 |
+
" 'c1ncn(CCOCCOc2ccc3c(c2)CCC3)n1'], dtype='<U227'),\n",
|
| 279 |
+
" 'control_CP': array([[-0.15487705, 0.11688805, -0.06308393, ..., 0.24665973,\n",
|
| 280 |
+
" 0.18521263, 0.24594025],\n",
|
| 281 |
+
" [-0.1634329 , 0.15811297, -0.03295023, ..., 0.2232287 ,\n",
|
| 282 |
+
" 0.18645084, 0.20041683],\n",
|
| 283 |
+
" [-0.13265091, 0.11912386, -0.04087081, ..., 0.23031679,\n",
|
| 284 |
+
" 0.15957166, 0.2795726 ],\n",
|
| 285 |
+
" ...,\n",
|
| 286 |
+
" [-0.16390067, 0.1292826 , -0.02731108, ..., 0.2356141 ,\n",
|
| 287 |
+
" 0.20089747, 0.22413647],\n",
|
| 288 |
+
" [-0.1634329 , 0.15811297, -0.03295023, ..., 0.2232287 ,\n",
|
| 289 |
+
" 0.18645084, 0.20041683],\n",
|
| 290 |
+
" [-0.1903376 , 0.16364928, -0.02507655, ..., 0.2462861 ,\n",
|
| 291 |
+
" 0.21280092, 0.2474828 ]], dtype=float32),\n",
|
| 292 |
+
" 'control_GE': array([[-0.11589041, 0.09791137, -0.10001642, ..., -0.04151818,\n",
|
| 293 |
+
" 0.00727702, -0.21572095],\n",
|
| 294 |
+
" [ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 295 |
+
" -0.02412532, 0.08308113],\n",
|
| 296 |
+
" [ 0.02007259, 0.03755556, -0.02430556, ..., -0.18552697,\n",
|
| 297 |
+
" -0.0794616 , -0.020855 ],\n",
|
| 298 |
+
" ...,\n",
|
| 299 |
+
" [ 0.02062 , -0.00183125, -0.13683268, ..., -0.17978694,\n",
|
| 300 |
+
" 0.21799538, 0.17114288],\n",
|
| 301 |
+
" [ 0.01338525, -0.02699645, 0.0147262 , ..., -0.01713243,\n",
|
| 302 |
+
" -0.02412532, 0.08308113],\n",
|
| 303 |
+
" [-0.06893609, -0.02563992, 0.06738283, ..., 0.07980002,\n",
|
| 304 |
+
" -0.11235818, -0.03411045]], dtype=float32),\n",
|
| 305 |
+
" 'target_CP': array([[ 0.38674092, -0.62070274, -0.62418985, ..., 0.44180262,\n",
|
| 306 |
+
" 0.42434335, -1.2392346 ],\n",
|
| 307 |
+
" [ 0.31655684, -0.23943731, 0.18836854, ..., -0.05182697,\n",
|
| 308 |
+
" 0.2953927 , 1.5328658 ],\n",
|
| 309 |
+
" [-1.4637322 , 1.873155 , 2.345407 , ..., 2.3001804 ,\n",
|
| 310 |
+
" 2.5974057 , -0.5258522 ],\n",
|
| 311 |
+
" ...,\n",
|
| 312 |
+
" [-0.22405519, 0.21074149, -0.0310891 , ..., -0.20554903,\n",
|
| 313 |
+
" -0.28407168, -0.17878559],\n",
|
| 314 |
+
" [ 0.36180133, -0.36012647, 0.18524444, ..., -0.5896245 ,\n",
|
| 315 |
+
" -0.28982347, -0.09377167],\n",
|
| 316 |
+
" [-0.11151703, 0.40477425, 0.04721215, ..., 1.3899186 ,\n",
|
| 317 |
+
" 0.70356005, 0.23341325]], dtype=float32),\n",
|
| 318 |
+
" 'target_GE': array([[ 0.09065 , 0.0786 , -0.06155001, ..., -0.1333 ,\n",
|
| 319 |
+
" 0.097875 , 0.15165001],\n",
|
| 320 |
+
" [-0.07302775, 0.0460825 , -0.02222175, ..., 0.17655626,\n",
|
| 321 |
+
" -0.154201 , 0.033125 ],\n",
|
| 322 |
+
" [-0.03446667, -0.01266666, 0.04358333, ..., 0.27253333,\n",
|
| 323 |
+
" -0.06081 , 0.28026667],\n",
|
| 324 |
+
" ...,\n",
|
| 325 |
+
" [ 0.22472501, 0.20904249, -0.2872 , ..., -0.22035149,\n",
|
| 326 |
+
" 0.5861085 , 0.278331 ],\n",
|
| 327 |
+
" [ 0.01292225, 0.07139751, -0.13613375, ..., -0.16344374,\n",
|
| 328 |
+
" 0.053449 , -0.200645 ],\n",
|
| 329 |
+
" [ 0.14866668, -0.054 , 0.04613333, ..., 0.22286667,\n",
|
| 330 |
+
" -0.09675 , -0.01868333]], dtype=float32)}"
|
| 331 |
+
]
|
| 332 |
+
},
|
| 333 |
+
"execution_count": 12,
|
| 334 |
+
"metadata": {},
|
| 335 |
+
"output_type": "execute_result"
|
| 336 |
+
}
|
| 337 |
+
],
|
| 338 |
+
"source": [
|
| 339 |
+
"out_path = './Aggregated_CP_GE.h5'\n",
|
| 340 |
+
"\n",
|
| 341 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 342 |
+
"agg_data"
|
| 343 |
+
]
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"cell_type": "code",
|
| 347 |
+
"execution_count": 13,
|
| 348 |
+
"metadata": {},
|
| 349 |
+
"outputs": [
|
| 350 |
+
{
|
| 351 |
+
"data": {
|
| 352 |
+
"text/plain": [
|
| 353 |
+
"((20341, 775), (20341, 775), (20341, 977), (20341, 977))"
|
| 354 |
+
]
|
| 355 |
+
},
|
| 356 |
+
"execution_count": 13,
|
| 357 |
+
"metadata": {},
|
| 358 |
+
"output_type": "execute_result"
|
| 359 |
+
}
|
| 360 |
+
],
|
| 361 |
+
"source": [
|
| 362 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 363 |
+
]
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"cell_type": "code",
|
| 367 |
+
"execution_count": 21,
|
| 368 |
+
"metadata": {},
|
| 369 |
+
"outputs": [
|
| 370 |
+
{
|
| 371 |
+
"data": {
|
| 372 |
+
"text/plain": [
|
| 373 |
+
"True"
|
| 374 |
+
]
|
| 375 |
+
},
|
| 376 |
+
"execution_count": 21,
|
| 377 |
+
"metadata": {},
|
| 378 |
+
"output_type": "execute_result"
|
| 379 |
+
}
|
| 380 |
+
],
|
| 381 |
+
"source": [
|
| 382 |
+
"'O=C(C[C@@H]1CC[C@@H]2[C@H](COC[C@H](O)CN2Cc2cc(F)cc(F)c2)O1)Nc1nccs1' in agg_data['canonical_smiles']"
|
| 383 |
+
]
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"cell_type": "markdown",
|
| 387 |
+
"metadata": {},
|
| 388 |
+
"source": [
|
| 389 |
+
"# 复杂点,样本级别的配对"
|
| 390 |
+
]
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"cell_type": "code",
|
| 394 |
+
"execution_count": 17,
|
| 395 |
+
"metadata": {},
|
| 396 |
+
"outputs": [
|
| 397 |
+
{
|
| 398 |
+
"name": "stdout",
|
| 399 |
+
"output_type": "stream",
|
| 400 |
+
"text": [
|
| 401 |
+
"加载源数据...\n",
|
| 402 |
+
"开始创建多模态配对数据集...\n",
|
| 403 |
+
"Cell Painting 唯一化合物数: 20341\n",
|
| 404 |
+
"Gene Expression 唯一化合物数: 20341\n",
|
| 405 |
+
"多模态共有化合物数 (Intersection): 20341\n",
|
| 406 |
+
"生成配对样本总数: 223805\n",
|
| 407 |
+
"正在组装最终矩阵...\n",
|
| 408 |
+
"✅ 最终数据集已保存至: ./Paired_CP_GE_Dataset.h5\n",
|
| 409 |
+
"------------------------------\n",
|
| 410 |
+
"Dataset Shapes:\n",
|
| 411 |
+
"canonical_smiles: (223805,)\n",
|
| 412 |
+
"control_CP: (223805, 741)\n",
|
| 413 |
+
"target_CP: (223805, 741)\n",
|
| 414 |
+
"control_GE: (223805, 977)\n",
|
| 415 |
+
"target_GE: (223805, 977)\n",
|
| 416 |
+
"CP_dose: (223805,)\n",
|
| 417 |
+
"GE_dose: (223805,)\n"
|
| 418 |
+
]
|
| 419 |
+
}
|
| 420 |
+
],
|
| 421 |
+
"source": [
|
| 422 |
+
"import h5py\n",
|
| 423 |
+
"import numpy as np\n",
|
| 424 |
+
"import pandas as pd\n",
|
| 425 |
+
"from collections import defaultdict\n",
|
| 426 |
+
"\n",
|
| 427 |
+
"# ==========================================\n",
|
| 428 |
+
"# 0. 辅助函数:读取 HDF5\n",
|
| 429 |
+
"# ==========================================\n",
|
| 430 |
+
"def load_from_HDF(fname):\n",
|
| 431 |
+
" data = dict()\n",
|
| 432 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 433 |
+
" for key in f:\n",
|
| 434 |
+
" data[key] = np.asarray(f[key])\n",
|
| 435 |
+
" # 处理字符串解码\n",
|
| 436 |
+
" if data[key].dtype.kind == 'S':\n",
|
| 437 |
+
" data[key] = data[key].astype(str)\n",
|
| 438 |
+
" return data\n",
|
| 439 |
+
"\n",
|
| 440 |
+
"# ==========================================\n",
|
| 441 |
+
"# 1. 核心逻辑:创建稳健配对数据集\n",
|
| 442 |
+
"# ==========================================\n",
|
| 443 |
+
"def create_robust_paired_dataset(CP_data, GE_data, out_path, max_samples_per_smiles=5, seed=42):\n",
|
| 444 |
+
" \"\"\"\n",
|
| 445 |
+
" CP_data, GE_data: 包含 'canonical_smiles', 'control', 'target', 'dose' 的字典\n",
|
| 446 |
+
" max_samples_per_smiles: 每个模态最多采样的重复数\n",
|
| 447 |
+
" seed: 随机种子,保证配对结果可复现\n",
|
| 448 |
+
" \"\"\"\n",
|
| 449 |
+
" print(\"开始创建多模态配对数据集...\")\n",
|
| 450 |
+
" \n",
|
| 451 |
+
" # [新增] 检查输入数据是否包含 dose\n",
|
| 452 |
+
" if 'dose' not in CP_data or 'dose' not in GE_data:\n",
|
| 453 |
+
" raise ValueError(\"输入数据缺少 'dose' 字段,请检查上一步是否正确保存了剂量信息。\")\n",
|
| 454 |
+
"\n",
|
| 455 |
+
" # [新增] 设置随机种子\n",
|
| 456 |
+
" np.random.seed(seed)\n",
|
| 457 |
+
" \n",
|
| 458 |
+
" # --- A. 构建索引映射 ---\n",
|
| 459 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 460 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 461 |
+
" \n",
|
| 462 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 463 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 464 |
+
" \n",
|
| 465 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 466 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 467 |
+
" \n",
|
| 468 |
+
" # --- B. 找交集 ---\n",
|
| 469 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 470 |
+
" print(f\"Cell Painting 唯一化合物数: {len(cp_smiles_to_indices)}\")\n",
|
| 471 |
+
" print(f\"Gene Expression 唯一化合物数: {len(ge_smiles_to_indices)}\")\n",
|
| 472 |
+
" print(f\"多模态共有化合物数 (Intersection): {len(common_smiles)}\")\n",
|
| 473 |
+
" \n",
|
| 474 |
+
" # --- C. 生成配对索引 ---\n",
|
| 475 |
+
" paired_indices = []\n",
|
| 476 |
+
" \n",
|
| 477 |
+
" for i, smiles in enumerate(common_smiles):\n",
|
| 478 |
+
" # 获取该 SMILES 的所有索引\n",
|
| 479 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 480 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 481 |
+
" \n",
|
| 482 |
+
" # 限制采样数量\n",
|
| 483 |
+
" n_cp = min(max_samples_per_smiles, len(cp_indices))\n",
|
| 484 |
+
" n_ge = min(max_samples_per_smiles, len(ge_indices))\n",
|
| 485 |
+
" \n",
|
| 486 |
+
" # 无放回随机采样\n",
|
| 487 |
+
" sampled_cp_indices = np.random.choice(cp_indices, n_cp, replace=False)\n",
|
| 488 |
+
" sampled_ge_indices = np.random.choice(ge_indices, n_ge, replace=False)\n",
|
| 489 |
+
" \n",
|
| 490 |
+
" # 笛卡尔积配对\n",
|
| 491 |
+
" for cp_idx in sampled_cp_indices:\n",
|
| 492 |
+
" for ge_idx in sampled_ge_indices:\n",
|
| 493 |
+
" paired_indices.append({\n",
|
| 494 |
+
" 'smiles': smiles,\n",
|
| 495 |
+
" 'cp_idx': cp_idx,\n",
|
| 496 |
+
" 'ge_idx': ge_idx\n",
|
| 497 |
+
" })\n",
|
| 498 |
+
" \n",
|
| 499 |
+
" print(f\"生成配对样本总数: {len(paired_indices)}\")\n",
|
| 500 |
+
"\n",
|
| 501 |
+
" # --- D. 组装数据 ---\n",
|
| 502 |
+
" n_samples = len(paired_indices)\n",
|
| 503 |
+
" \n",
|
| 504 |
+
" # 获取特征维度\n",
|
| 505 |
+
" cp_feat_dim = CP_data['target'].shape[1]\n",
|
| 506 |
+
" ge_feat_dim = GE_data['target'].shape[1]\n",
|
| 507 |
+
" \n",
|
| 508 |
+
" # 预分配内存\n",
|
| 509 |
+
" final_data = {\n",
|
| 510 |
+
" 'canonical_smiles': np.empty(n_samples, dtype='S200'),\n",
|
| 511 |
+
" 'control_CP': np.empty((n_samples, cp_feat_dim), dtype=np.float32),\n",
|
| 512 |
+
" 'target_CP': np.empty((n_samples, cp_feat_dim), dtype=np.float32),\n",
|
| 513 |
+
" 'control_GE': np.empty((n_samples, ge_feat_dim), dtype=np.float32),\n",
|
| 514 |
+
" 'target_GE': np.empty((n_samples, ge_feat_dim), dtype=np.float32),\n",
|
| 515 |
+
" # [新增] 两个模态的剂量\n",
|
| 516 |
+
" 'CP_dose': np.empty(n_samples, dtype=np.float32), \n",
|
| 517 |
+
" 'GE_dose': np.empty(n_samples, dtype=np.float32)\n",
|
| 518 |
+
" }\n",
|
| 519 |
+
" \n",
|
| 520 |
+
" print(\"正在组装最终矩阵...\")\n",
|
| 521 |
+
" for i, item in enumerate(paired_indices):\n",
|
| 522 |
+
" cp_idx = item['cp_idx']\n",
|
| 523 |
+
" ge_idx = item['ge_idx']\n",
|
| 524 |
+
" \n",
|
| 525 |
+
" final_data['canonical_smiles'][i] = item['smiles'].encode('utf-8')\n",
|
| 526 |
+
" \n",
|
| 527 |
+
" # 填入 CP 数据\n",
|
| 528 |
+
" final_data['control_CP'][i] = CP_data['control'][cp_idx]\n",
|
| 529 |
+
" final_data['target_CP'][i] = CP_data['target'][cp_idx]\n",
|
| 530 |
+
" final_data['CP_dose'][i] = CP_data['dose'][cp_idx] # [新增]\n",
|
| 531 |
+
" \n",
|
| 532 |
+
" # 填入 GE 数据\n",
|
| 533 |
+
" final_data['control_GE'][i] = GE_data['control'][ge_idx]\n",
|
| 534 |
+
" final_data['target_GE'][i] = GE_data['target'][ge_idx]\n",
|
| 535 |
+
" final_data['GE_dose'][i] = GE_data['dose'][ge_idx] # [新增]\n",
|
| 536 |
+
" \n",
|
| 537 |
+
" # --- E. 数据清洗与保存 ---\n",
|
| 538 |
+
" # 检查并处理 NaN/Inf (Dose 通常不需要处理,但如果有 NaN 也顺便处理一下安全)\n",
|
| 539 |
+
" check_cols = ['control_CP', 'target_CP', 'control_GE', 'target_GE', 'CP_dose', 'GE_dose']\n",
|
| 540 |
+
" \n",
|
| 541 |
+
" for key in check_cols:\n",
|
| 542 |
+
" if np.isnan(final_data[key]).any() or np.isinf(final_data[key]).any():\n",
|
| 543 |
+
" print(f\"警告: {key} 包含 NaN 或 Inf,正在填充 0...\")\n",
|
| 544 |
+
" final_data[key] = np.nan_to_num(final_data[key], nan=0.0, posinf=0.0, neginf=0.0)\n",
|
| 545 |
+
"\n",
|
| 546 |
+
" # 保存\n",
|
| 547 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 548 |
+
" for key, val in final_data.items():\n",
|
| 549 |
+
" f.create_dataset(key, data=val)\n",
|
| 550 |
+
" \n",
|
| 551 |
+
" print(f\"✅ 最终数据集已保存至: {out_path}\")\n",
|
| 552 |
+
" print(\"-\" * 30)\n",
|
| 553 |
+
" print(f\"Dataset Shapes:\")\n",
|
| 554 |
+
" for k, v in final_data.items():\n",
|
| 555 |
+
" print(f\"{k}: {v.shape}\")\n",
|
| 556 |
+
"\n",
|
| 557 |
+
"# ==========================================\n",
|
| 558 |
+
"# 2. 执行流程\n",
|
| 559 |
+
"# ==========================================\n",
|
| 560 |
+
"# 定义输入输出路径\n",
|
| 561 |
+
"cp_input = './Processed_Paired_CP_KeepRep.h5'\n",
|
| 562 |
+
"ge_input = './Processed_Paired_GE_KeepRep.h5'\n",
|
| 563 |
+
"final_output = './Paired_CP_GE_Dataset.h5'\n",
|
| 564 |
+
"\n",
|
| 565 |
+
"# 加载数据\n",
|
| 566 |
+
"print(\"加载源数据...\")\n",
|
| 567 |
+
"cp_data = load_from_HDF(cp_input)\n",
|
| 568 |
+
"ge_data = load_from_HDF(ge_input)\n",
|
| 569 |
+
"\n",
|
| 570 |
+
"# 执行配对\n",
|
| 571 |
+
"create_robust_paired_dataset(cp_data, ge_data, final_output, max_samples_per_smiles=5)"
|
| 572 |
+
]
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"cell_type": "code",
|
| 576 |
+
"execution_count": null,
|
| 577 |
+
"metadata": {},
|
| 578 |
+
"outputs": [
|
| 579 |
+
{
|
| 580 |
+
"data": {
|
| 581 |
+
"text/plain": [
|
| 582 |
+
"{'CP_dose': array([10.65, 10.65, 10.65, ..., 10. , 10. , 10. ], dtype=float32),\n",
|
| 583 |
+
" 'GE_dose': array([10.6501, 10.6501, 10.6501, ..., 10. , 10. , 10. ],\n",
|
| 584 |
+
" dtype=float32),\n",
|
| 585 |
+
" 'canonical_smiles': array(['C[C@H](CO)N1C[C@H](C)[C@H](CN(C)Cc2ccncc2)Oc2ccc(NS(C)(=O)=O)cc2CC1=O',\n",
|
| 586 |
+
" 'C[C@H](CO)N1C[C@H](C)[C@H](CN(C)Cc2ccncc2)Oc2ccc(NS(C)(=O)=O)cc2CC1=O',\n",
|
| 587 |
+
" 'C[C@H](CO)N1C[C@H](C)[C@H](CN(C)Cc2ccncc2)Oc2ccc(NS(C)(=O)=O)cc2CC1=O',\n",
|
| 588 |
+
" ..., 'CN(C)C(=O)n1nnnc1Cc1ccc(-c2ccccc2)cc1',\n",
|
| 589 |
+
" 'CN(C)C(=O)n1nnnc1Cc1ccc(-c2ccccc2)cc1',\n",
|
| 590 |
+
" 'CN(C)C(=O)n1nnnc1Cc1ccc(-c2ccccc2)cc1'], dtype='<U200'),\n",
|
| 591 |
+
" 'control_CP': array([[-0.13953187, 0.06501261, -0.00263713, ..., 0.08332227,\n",
|
| 592 |
+
" 0.12313318, -0.02047802],\n",
|
| 593 |
+
" [-0.13953187, 0.06501261, -0.00263713, ..., 0.08332227,\n",
|
| 594 |
+
" 0.12313318, -0.02047802],\n",
|
| 595 |
+
" [-0.13953187, 0.06501261, -0.00263713, ..., 0.08332227,\n",
|
| 596 |
+
" 0.12313318, -0.02047802],\n",
|
| 597 |
+
" ...,\n",
|
| 598 |
+
" [ 0.07532343, 0.01590352, 0.11149302, ..., 0.09762042,\n",
|
| 599 |
+
" -0.0291416 , 0.18638068],\n",
|
| 600 |
+
" [ 0.06642057, -0.06762539, 0.07449123, ..., -0.2643804 ,\n",
|
| 601 |
+
" -0.08335885, -0.47207668],\n",
|
| 602 |
+
" [ 0.06642057, -0.06762539, 0.07449123, ..., -0.2643804 ,\n",
|
| 603 |
+
" -0.08335885, -0.47207668]], dtype=float32),\n",
|
| 604 |
+
" 'control_GE': array([[ 0.24454208, 0.60980904, 0.60357696, ..., 0.18017063,\n",
|
| 605 |
+
" -0.88657326, 0.01677261],\n",
|
| 606 |
+
" [-0.56268126, 0.15758337, -0.13244417, ..., -0.6394515 ,\n",
|
| 607 |
+
" 1.1245222 , 1.1233364 ],\n",
|
| 608 |
+
" [ 0.44537392, 0.6973298 , -1.5441636 , ..., -0.425022 ,\n",
|
| 609 |
+
" -0.23347344, 0.57313305],\n",
|
| 610 |
+
" ...,\n",
|
| 611 |
+
" [ 0.65565985, 0.11522385, 0.9597033 , ..., 0.43092778,\n",
|
| 612 |
+
" -0.15957022, 0.03049997],\n",
|
| 613 |
+
" [ 0.7688196 , 0.9452282 , -0.80648696, ..., -0.3607209 ,\n",
|
| 614 |
+
" 0.51043606, -1.139512 ],\n",
|
| 615 |
+
" [ 0.65565985, 0.11522385, 0.9597033 , ..., 0.43092778,\n",
|
| 616 |
+
" -0.15957022, 0.03049997]], dtype=float32),\n",
|
| 617 |
+
" 'target_CP': array([[-0.7322785 , -0.1324034 , -0.92490584, ..., 0.0871982 ,\n",
|
| 618 |
+
" 0.19238813, -0.2730067 ],\n",
|
| 619 |
+
" [-0.7322785 , -0.1324034 , -0.92490584, ..., 0.0871982 ,\n",
|
| 620 |
+
" 0.19238813, -0.2730067 ],\n",
|
| 621 |
+
" [-0.7322785 , -0.1324034 , -0.92490584, ..., 0.0871982 ,\n",
|
| 622 |
+
" 0.19238813, -0.2730067 ],\n",
|
| 623 |
+
" ...,\n",
|
| 624 |
+
" [-6.900763 , 10. , 10. , ..., 8.523304 ,\n",
|
| 625 |
+
" 8.528054 , 9.481978 ],\n",
|
| 626 |
+
" [-6.2097163 , 9.116677 , 10. , ..., 5.122239 ,\n",
|
| 627 |
+
" 5.808592 , 1.9759494 ],\n",
|
| 628 |
+
" [-6.2097163 , 9.116677 , 10. , ..., 5.122239 ,\n",
|
| 629 |
+
" 5.808592 , 1.9759494 ]], dtype=float32),\n",
|
| 630 |
+
" 'target_GE': array([[-0.13318162, -2.3996215 , -0.60478145, ..., -1.7717572 ,\n",
|
| 631 |
+
" -0.7603032 , 1.6145478 ],\n",
|
| 632 |
+
" [ 0.71842533, -2.600954 , 0.4446499 , ..., -0.6659924 ,\n",
|
| 633 |
+
" -1.0708426 , -0.40832376],\n",
|
| 634 |
+
" [-1.034582 , 1.0713423 , -4.108202 , ..., 0.01961743,\n",
|
| 635 |
+
" 1.2580668 , 0.00507223],\n",
|
| 636 |
+
" ...,\n",
|
| 637 |
+
" [ 0.11101682, 1.4468411 , 0.9668232 , ..., 0.43233392,\n",
|
| 638 |
+
" -0.3482708 , -1.8351849 ],\n",
|
| 639 |
+
" [-0.41256198, -0.05275529, -3.0842478 , ..., -0.2453646 ,\n",
|
| 640 |
+
" 1.7232248 , 3.0262802 ],\n",
|
| 641 |
+
" [ 0.11101682, 1.4468411 , 0.9668232 , ..., 0.43233392,\n",
|
| 642 |
+
" -0.3482708 , -1.8351849 ]], dtype=float32)}"
|
| 643 |
+
]
|
| 644 |
+
},
|
| 645 |
+
"execution_count": 18,
|
| 646 |
+
"metadata": {},
|
| 647 |
+
"output_type": "execute_result"
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"ename": "",
|
| 651 |
+
"evalue": "",
|
| 652 |
+
"output_type": "error",
|
| 653 |
+
"traceback": [
|
| 654 |
+
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
| 655 |
+
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
| 656 |
+
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
| 657 |
+
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
| 658 |
+
]
|
| 659 |
+
}
|
| 660 |
+
],
|
| 661 |
+
"source": [
|
| 662 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 663 |
+
"\n",
|
| 664 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 665 |
+
"agg_data"
|
| 666 |
+
]
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"cell_type": "code",
|
| 670 |
+
"execution_count": null,
|
| 671 |
+
"metadata": {},
|
| 672 |
+
"outputs": [],
|
| 673 |
+
"source": []
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"cell_type": "code",
|
| 677 |
+
"execution_count": null,
|
| 678 |
+
"metadata": {},
|
| 679 |
+
"outputs": [],
|
| 680 |
+
"source": []
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"cell_type": "code",
|
| 684 |
+
"execution_count": null,
|
| 685 |
+
"metadata": {},
|
| 686 |
+
"outputs": [],
|
| 687 |
+
"source": []
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"cell_type": "code",
|
| 691 |
+
"execution_count": null,
|
| 692 |
+
"metadata": {},
|
| 693 |
+
"outputs": [],
|
| 694 |
+
"source": []
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"cell_type": "code",
|
| 698 |
+
"execution_count": null,
|
| 699 |
+
"metadata": {},
|
| 700 |
+
"outputs": [
|
| 701 |
+
{
|
| 702 |
+
"name": "stdout",
|
| 703 |
+
"output_type": "stream",
|
| 704 |
+
"text": [
|
| 705 |
+
"共有化合物: 20341\n",
|
| 706 |
+
"总配对样本数: 242192\n",
|
| 707 |
+
"数据集形状:\n",
|
| 708 |
+
" control_CP: (242192, 775)\n",
|
| 709 |
+
" target_CP: (242192, 775)\n",
|
| 710 |
+
" control_GE: (242192, 977)\n",
|
| 711 |
+
" target_GE: (242192, 977)\n",
|
| 712 |
+
"✅ 配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 713 |
+
]
|
| 714 |
+
}
|
| 715 |
+
],
|
| 716 |
+
"source": [
|
| 717 |
+
"# import h5py\n",
|
| 718 |
+
"# import numpy as np\n",
|
| 719 |
+
"# import pandas as pd\n",
|
| 720 |
+
"# from collections import defaultdict\n",
|
| 721 |
+
"\n",
|
| 722 |
+
"# def create_paired_dataset(CP_data, GE_data, out_path):\n",
|
| 723 |
+
"# \"\"\"\n",
|
| 724 |
+
"# 创建样本级配对的多模态数据集\n",
|
| 725 |
+
"# 保持原始样本的完整性,只配对真正对应的样本\n",
|
| 726 |
+
"# \"\"\"\n",
|
| 727 |
+
" \n",
|
| 728 |
+
"# # 构建SMILES到索引列表的映射\n",
|
| 729 |
+
"# cp_smiles_to_indices = defaultdict(list)\n",
|
| 730 |
+
"# ge_smiles_to_indices = defaultdict(list)\n",
|
| 731 |
+
" \n",
|
| 732 |
+
"# for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 733 |
+
"# cp_smiles_to_indices[smiles].append(idx)\n",
|
| 734 |
+
" \n",
|
| 735 |
+
"# for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 736 |
+
"# ge_smiles_to_indices[smiles].append(idx)\n",
|
| 737 |
+
" \n",
|
| 738 |
+
"# # 找到共有的SMILES\n",
|
| 739 |
+
"# common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 740 |
+
"# print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 741 |
+
" \n",
|
| 742 |
+
"# # 收集所有有效配对\n",
|
| 743 |
+
"# paired_samples = []\n",
|
| 744 |
+
" \n",
|
| 745 |
+
"# for smiles in common_smiles:\n",
|
| 746 |
+
"# cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 747 |
+
"# ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 748 |
+
" \n",
|
| 749 |
+
"# # 为每个SMILES创建所有可能的CP-GE配对\n",
|
| 750 |
+
"# for cp_idx in cp_indices:\n",
|
| 751 |
+
"# for ge_idx in ge_indices:\n",
|
| 752 |
+
"# paired_samples.append({\n",
|
| 753 |
+
"# 'canonical_smiles': smiles,\n",
|
| 754 |
+
"# 'cp_index': cp_idx,\n",
|
| 755 |
+
"# 'ge_index': ge_idx\n",
|
| 756 |
+
"# })\n",
|
| 757 |
+
" \n",
|
| 758 |
+
"# print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 759 |
+
" \n",
|
| 760 |
+
"# # 创建最终的字典形数据集\n",
|
| 761 |
+
"# dataset_dict = {\n",
|
| 762 |
+
"# 'canonical_smiles': [],\n",
|
| 763 |
+
"# 'control_CP': [],\n",
|
| 764 |
+
"# 'target_CP': [], \n",
|
| 765 |
+
"# 'control_GE': [],\n",
|
| 766 |
+
"# 'target_GE': []\n",
|
| 767 |
+
"# }\n",
|
| 768 |
+
" \n",
|
| 769 |
+
"# for sample in paired_samples:\n",
|
| 770 |
+
"# dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 771 |
+
"# dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 772 |
+
"# dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 773 |
+
"# dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 774 |
+
"# dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 775 |
+
" \n",
|
| 776 |
+
"# # 转换为numpy数组\n",
|
| 777 |
+
"# final_dataset = {}\n",
|
| 778 |
+
"# final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 779 |
+
"# final_dataset['control_CP'] = np.array(dataset_dict['control_CP'], dtype=np.float32)\n",
|
| 780 |
+
"# final_dataset['target_CP'] = np.array(dataset_dict['target_CP'], dtype=np.float32)\n",
|
| 781 |
+
"# final_dataset['control_GE'] = np.array(dataset_dict['control_GE'], dtype=np.float32)\n",
|
| 782 |
+
"# final_dataset['target_GE'] = np.array(dataset_dict['target_GE'], dtype=np.float32)\n",
|
| 783 |
+
" \n",
|
| 784 |
+
"# print(f\"数据集形状:\")\n",
|
| 785 |
+
"# print(f\" control_CP: {final_dataset['control_CP'].shape}\")\n",
|
| 786 |
+
"# print(f\" target_CP: {final_dataset['target_CP'].shape}\")\n",
|
| 787 |
+
"# print(f\" control_GE: {final_dataset['control_GE'].shape}\")\n",
|
| 788 |
+
"# print(f\" target_GE: {final_dataset['target_GE'].shape}\")\n",
|
| 789 |
+
" \n",
|
| 790 |
+
"# # 保存为HDF5\n",
|
| 791 |
+
"# with h5py.File(out_path, 'w') as f:\n",
|
| 792 |
+
"# for key, value in final_dataset.items():\n",
|
| 793 |
+
"# f.create_dataset(key, data=value)\n",
|
| 794 |
+
" \n",
|
| 795 |
+
"# print(f\"✅ 配对数据集已保存到: {out_path}\")\n",
|
| 796 |
+
"# return final_dataset\n",
|
| 797 |
+
"\n",
|
| 798 |
+
"# # 使用方案\n",
|
| 799 |
+
"# out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 800 |
+
"# paired_dataset = create_paired_dataset(CP_CSV, GE_CSV, out_path)"
|
| 801 |
+
]
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"cell_type": "code",
|
| 805 |
+
"execution_count": 26,
|
| 806 |
+
"metadata": {},
|
| 807 |
+
"outputs": [
|
| 808 |
+
{
|
| 809 |
+
"data": {
|
| 810 |
+
"text/plain": [
|
| 811 |
+
"{'canonical_smiles': array(['C[C@@H]1CCCCO[C@@H](CN(C)C(=O)c2ccccc2)[C@@H](C)CN([C@H](C)CO)C(=O)c2cc(N(C)C)ccc2O1',\n",
|
| 812 |
+
" 'C[C@@H]1CCCCO[C@@H](CN(C)C(=O)c2ccccc2)[C@@H](C)CN([C@H](C)CO)C(=O)c2cc(N(C)C)ccc2O1',\n",
|
| 813 |
+
" 'C[C@@H]1CCCCO[C@@H](CN(C)C(=O)c2ccccc2)[C@@H](C)CN([C@H](C)CO)C(=O)c2cc(N(C)C)ccc2O1',\n",
|
| 814 |
+
" ...,\n",
|
| 815 |
+
" 'C/C=C/c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1.C/C=C\\\\c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1',\n",
|
| 816 |
+
" 'C/C=C/c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1.C/C=C\\\\c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1',\n",
|
| 817 |
+
" 'C/C=C/c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1.C/C=C\\\\c1ccc2n(c1=O)C[C@H]1[C@H](CO)[C@@H](C(=O)N3CCCCC3)[C@@H]2N1C(=O)C1CCC1'],\n",
|
| 818 |
+
" dtype='<U227'),\n",
|
| 819 |
+
" 'control_CP': array([[-0.08486467, 0.1714288 , -0.05182531, ..., 0.12218629,\n",
|
| 820 |
+
" 0.21159805, 0.24014652],\n",
|
| 821 |
+
" [-0.08486467, 0.1714288 , -0.05182531, ..., 0.12218629,\n",
|
| 822 |
+
" 0.21159805, 0.24014652],\n",
|
| 823 |
+
" [-0.08486467, 0.1714288 , -0.05182531, ..., 0.12218629,\n",
|
| 824 |
+
" 0.21159805, 0.24014652],\n",
|
| 825 |
+
" ...,\n",
|
| 826 |
+
" [-0.2378668 , 0.23262355, -0.0475704 , ..., 0.21625724,\n",
|
| 827 |
+
" 0.23215774, 0.23364826],\n",
|
| 828 |
+
" [-0.2378668 , 0.23262355, -0.0475704 , ..., 0.21625724,\n",
|
| 829 |
+
" 0.23215774, 0.23364826],\n",
|
| 830 |
+
" [-0.2378668 , 0.23262355, -0.0475704 , ..., 0.21625724,\n",
|
| 831 |
+
" 0.23215774, 0.23364826]], dtype=float32),\n",
|
| 832 |
+
" 'control_GE': array([[-0.0330701 , 0.01753275, -0.05136025, ..., 0.06250588,\n",
|
| 833 |
+
" -0.0405625 , -0.19137537],\n",
|
| 834 |
+
" [ 0.01287525, 0.03997513, 0.035275 , ..., -0.04473713,\n",
|
| 835 |
+
" -0.1068325 , 0.03364687],\n",
|
| 836 |
+
" [ 0.04092 , -0.0524448 , -0.0302184 , ..., -0.045687 ,\n",
|
| 837 |
+
" 0.018924 , -0.026421 ],\n",
|
| 838 |
+
" ...,\n",
|
| 839 |
+
" [ 0.1941795 , -0.00547 , -0.2204975 , ..., -0.05459375,\n",
|
| 840 |
+
" 0.10817 , 0.011832 ],\n",
|
| 841 |
+
" [ 0.03131568, 0.1014732 , -0.214663 , ..., 0.111306 ,\n",
|
| 842 |
+
" -0.0012838 , 0.143236 ],\n",
|
| 843 |
+
" [-0.0118007 , -0.124132 , 0.111037 , ..., 0.1051161 ,\n",
|
| 844 |
+
" -0.275516 , -0.05782 ]], dtype=float32),\n",
|
| 845 |
+
" 'target_CP': array([[ 1.1871912 , -0.0034563 , 0.52810115, ..., -1.6746186 ,\n",
|
| 846 |
+
" -0.9638308 , 0.73771006],\n",
|
| 847 |
+
" [ 1.1871912 , -0.0034563 , 0.52810115, ..., -1.6746186 ,\n",
|
| 848 |
+
" -0.9638308 , 0.73771006],\n",
|
| 849 |
+
" [ 1.1871912 , -0.0034563 , 0.52810115, ..., -1.6746186 ,\n",
|
| 850 |
+
" -0.9638308 , 0.73771006],\n",
|
| 851 |
+
" ...,\n",
|
| 852 |
+
" [-0.45244193, -0.05774116, -0.9494869 , ..., -0.27629495,\n",
|
| 853 |
+
" -0.4013643 , -0.337052 ],\n",
|
| 854 |
+
" [-0.45244193, -0.05774116, -0.9494869 , ..., -0.27629495,\n",
|
| 855 |
+
" -0.4013643 , -0.337052 ],\n",
|
| 856 |
+
" [-0.45244193, -0.05774116, -0.9494869 , ..., -0.27629495,\n",
|
| 857 |
+
" -0.4013643 , -0.337052 ]], dtype=float32),\n",
|
| 858 |
+
" 'target_GE': array([[ 0.10045115, 0.0189385 , -0.136369 , ..., -0.115892 ,\n",
|
| 859 |
+
" 0.021835 , -0.240325 ],\n",
|
| 860 |
+
" [ 0.105046 , -0.199388 , 0.0151 , ..., -0.36268 ,\n",
|
| 861 |
+
" 0.01984 , 0.060748 ],\n",
|
| 862 |
+
" [ 0.17609 , 0.012886 , -0.05032 , ..., 0.045372 ,\n",
|
| 863 |
+
" 0.37968 , 0.180597 ],\n",
|
| 864 |
+
" ...,\n",
|
| 865 |
+
" [-0.120883 , 0.42693624, -0.11864 , ..., 0.14749 ,\n",
|
| 866 |
+
" -0.361165 , -0.1950255 ],\n",
|
| 867 |
+
" [ 0.013835 , -0.42966 , 0.396749 , ..., 0.25792 ,\n",
|
| 868 |
+
" -0.1543 , 0.03015 ],\n",
|
| 869 |
+
" [ 0.1609315 , -0.40984 , 0.028058 , ..., 0.31154 ,\n",
|
| 870 |
+
" -0.104255 , -0.16908 ]], dtype=float32)}"
|
| 871 |
+
]
|
| 872 |
+
},
|
| 873 |
+
"execution_count": 26,
|
| 874 |
+
"metadata": {},
|
| 875 |
+
"output_type": "execute_result"
|
| 876 |
+
}
|
| 877 |
+
],
|
| 878 |
+
"source": [
|
| 879 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 880 |
+
"\n",
|
| 881 |
+
"agg_data = load_from_HDF(out_path)\n",
|
| 882 |
+
"agg_data"
|
| 883 |
+
]
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"cell_type": "code",
|
| 887 |
+
"execution_count": 27,
|
| 888 |
+
"metadata": {},
|
| 889 |
+
"outputs": [
|
| 890 |
+
{
|
| 891 |
+
"data": {
|
| 892 |
+
"text/plain": [
|
| 893 |
+
"((223689, 775), (223689, 775), (223689, 977), (223689, 977))"
|
| 894 |
+
]
|
| 895 |
+
},
|
| 896 |
+
"execution_count": 27,
|
| 897 |
+
"metadata": {},
|
| 898 |
+
"output_type": "execute_result"
|
| 899 |
+
}
|
| 900 |
+
],
|
| 901 |
+
"source": [
|
| 902 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 903 |
+
]
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"cell_type": "code",
|
| 907 |
+
"execution_count": null,
|
| 908 |
+
"metadata": {},
|
| 909 |
+
"outputs": [],
|
| 910 |
+
"source": []
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"cell_type": "markdown",
|
| 914 |
+
"metadata": {},
|
| 915 |
+
"source": [
|
| 916 |
+
"# 限制配对的数量,更好收敛。"
|
| 917 |
+
]
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"cell_type": "code",
|
| 921 |
+
"execution_count": null,
|
| 922 |
+
"metadata": {},
|
| 923 |
+
"outputs": [
|
| 924 |
+
{
|
| 925 |
+
"name": "stdout",
|
| 926 |
+
"output_type": "stream",
|
| 927 |
+
"text": [
|
| 928 |
+
"开始创建稳健配对数据集...\n",
|
| 929 |
+
"共有化合物: 20341\n",
|
| 930 |
+
"处理进度: 0/20341\n",
|
| 931 |
+
"处理进度: 1000/20341\n",
|
| 932 |
+
"处理进度: 2000/20341\n",
|
| 933 |
+
"处理进度: 3000/20341\n",
|
| 934 |
+
"处理进度: 4000/20341\n",
|
| 935 |
+
"处理进度: 5000/20341\n",
|
| 936 |
+
"处理进度: 6000/20341\n",
|
| 937 |
+
"处理进度: 7000/20341\n",
|
| 938 |
+
"处理进度: 8000/20341\n",
|
| 939 |
+
"处理进度: 9000/20341\n",
|
| 940 |
+
"处理进度: 10000/20341\n",
|
| 941 |
+
"处理进度: 11000/20341\n",
|
| 942 |
+
"处理进度: 12000/20341\n",
|
| 943 |
+
"处理进度: 13000/20341\n",
|
| 944 |
+
"处理进度: 14000/20341\n",
|
| 945 |
+
"处理进度: 15000/20341\n",
|
| 946 |
+
"处理进度: 16000/20341\n",
|
| 947 |
+
"处理进度: 17000/20341\n",
|
| 948 |
+
"处理进度: 18000/20341\n",
|
| 949 |
+
"处理进度: 19000/20341\n",
|
| 950 |
+
"处理进度: 20000/20341\n",
|
| 951 |
+
"总配对样本数: 169287\n",
|
| 952 |
+
"数据收集进度: 0/169287\n",
|
| 953 |
+
"数据收集进度: 10000/169287\n",
|
| 954 |
+
"数据收集进度: 20000/169287\n",
|
| 955 |
+
"数据收集进度: 30000/169287\n",
|
| 956 |
+
"数据收集进度: 40000/169287\n",
|
| 957 |
+
"数据收集进度: 50000/169287\n",
|
| 958 |
+
"数据收集进度: 60000/169287\n",
|
| 959 |
+
"数据收集进度: 70000/169287\n",
|
| 960 |
+
"数据收集进度: 80000/169287\n",
|
| 961 |
+
"数据收集进度: 90000/169287\n",
|
| 962 |
+
"数据收集进度: 100000/169287\n",
|
| 963 |
+
"数据收集进度: 110000/169287\n",
|
| 964 |
+
"数据收集进度: 120000/169287\n",
|
| 965 |
+
"数据收集进度: 130000/169287\n",
|
| 966 |
+
"数据收集进度: 140000/169287\n",
|
| 967 |
+
"数据收集进度: 150000/169287\n",
|
| 968 |
+
"数据收集进度: 160000/169287\n",
|
| 969 |
+
"control_CP: 均值=0.0175, 标准差=0.3551, 形状=(169287, 775)\n",
|
| 970 |
+
"target_CP: 均值=-0.0107, 标准差=1.1325, 形状=(169287, 775)\n",
|
| 971 |
+
"control_GE: 均值=-0.0003, 标准差=0.1331, 形状=(169287, 977)\n",
|
| 972 |
+
"target_GE: 均值=-0.0007, 标准差=0.2798, 形状=(169287, 977)\n",
|
| 973 |
+
"✅ 稳健配对数据集已保存到: ./Paired_CP_GE_Dataset.h5\n"
|
| 974 |
+
]
|
| 975 |
+
}
|
| 976 |
+
],
|
| 977 |
+
"source": [
|
| 978 |
+
"import h5py\n",
|
| 979 |
+
"import numpy as np\n",
|
| 980 |
+
"import pandas as pd\n",
|
| 981 |
+
"from collections import defaultdict\n",
|
| 982 |
+
"\n",
|
| 983 |
+
"def create_robust_paired_dataset(CP_data, GE_data, out_path, max_pairs_per_smiles=20):\n",
|
| 984 |
+
" \"\"\"\n",
|
| 985 |
+
" 创建稳健的样本级配对数据集\n",
|
| 986 |
+
" 添加样本限制和数据处理\n",
|
| 987 |
+
" \"\"\"\n",
|
| 988 |
+
" \n",
|
| 989 |
+
" print(\"开始创建稳健配对数据集...\")\n",
|
| 990 |
+
" \n",
|
| 991 |
+
" # 构建SMILES到索引列表的映射\n",
|
| 992 |
+
" cp_smiles_to_indices = defaultdict(list)\n",
|
| 993 |
+
" ge_smiles_to_indices = defaultdict(list)\n",
|
| 994 |
+
" \n",
|
| 995 |
+
" for idx, smiles in enumerate(CP_data['canonical_smiles']):\n",
|
| 996 |
+
" cp_smiles_to_indices[smiles].append(idx)\n",
|
| 997 |
+
" \n",
|
| 998 |
+
" for idx, smiles in enumerate(GE_data['canonical_smiles']):\n",
|
| 999 |
+
" ge_smiles_to_indices[smiles].append(idx)\n",
|
| 1000 |
+
" \n",
|
| 1001 |
+
" # 找到共有的SMILES\n",
|
| 1002 |
+
" common_smiles = set(cp_smiles_to_indices.keys()) & set(ge_smiles_to_indices.keys())\n",
|
| 1003 |
+
" print(f\"共有化合物: {len(common_smiles)}\")\n",
|
| 1004 |
+
" \n",
|
| 1005 |
+
" # 收集所有有效配对(带采样限制)\n",
|
| 1006 |
+
" paired_samples = []\n",
|
| 1007 |
+
" \n",
|
| 1008 |
+
" for i, smiles in enumerate(common_smiles):\n",
|
| 1009 |
+
" # if i % 1000 == 0:\n",
|
| 1010 |
+
" # print(f\"处理进度: {i}/{len(common_smiles)}\")\n",
|
| 1011 |
+
" \n",
|
| 1012 |
+
" cp_indices = cp_smiles_to_indices[smiles]\n",
|
| 1013 |
+
" ge_indices = ge_smiles_to_indices[smiles]\n",
|
| 1014 |
+
" \n",
|
| 1015 |
+
" # 限制每个SMILES的最大配对数,避免样本爆炸\n",
|
| 1016 |
+
" max_cp_samples = min(3, len(cp_indices))\n",
|
| 1017 |
+
" max_ge_samples = min(3, len(ge_indices))\n",
|
| 1018 |
+
" \n",
|
| 1019 |
+
" # 随机采样\n",
|
| 1020 |
+
" sampled_cp = np.random.choice(cp_indices, max_cp_samples, replace=False)\n",
|
| 1021 |
+
" sampled_ge = np.random.choice(ge_indices, max_ge_samples, replace=False)\n",
|
| 1022 |
+
" \n",
|
| 1023 |
+
" # 创建配对\n",
|
| 1024 |
+
" for cp_idx in sampled_cp:\n",
|
| 1025 |
+
" for ge_idx in sampled_ge:\n",
|
| 1026 |
+
" paired_samples.append({\n",
|
| 1027 |
+
" 'canonical_smiles': smiles,\n",
|
| 1028 |
+
" 'cp_index': cp_idx,\n",
|
| 1029 |
+
" 'ge_index': ge_idx\n",
|
| 1030 |
+
" })\n",
|
| 1031 |
+
" \n",
|
| 1032 |
+
" print(f\"总配对样本数: {len(paired_samples)}\")\n",
|
| 1033 |
+
" \n",
|
| 1034 |
+
" # 创建最终的字典形数据集\n",
|
| 1035 |
+
" dataset_dict = {\n",
|
| 1036 |
+
" 'canonical_smiles': [],\n",
|
| 1037 |
+
" 'control_CP': [],\n",
|
| 1038 |
+
" 'target_CP': [], \n",
|
| 1039 |
+
" 'control_GE': [],\n",
|
| 1040 |
+
" 'target_GE': []\n",
|
| 1041 |
+
" }\n",
|
| 1042 |
+
" \n",
|
| 1043 |
+
" for i, sample in enumerate(paired_samples):\n",
|
| 1044 |
+
" if i % 10000 == 0:\n",
|
| 1045 |
+
" print(f\"数据收集进度: {i}/{len(paired_samples)}\")\n",
|
| 1046 |
+
" \n",
|
| 1047 |
+
" dataset_dict['canonical_smiles'].append(sample['canonical_smiles'])\n",
|
| 1048 |
+
" dataset_dict['control_CP'].append(CP_data['control'][sample['cp_index']])\n",
|
| 1049 |
+
" dataset_dict['target_CP'].append(CP_data['target'][sample['cp_index']])\n",
|
| 1050 |
+
" dataset_dict['control_GE'].append(GE_data['control'][sample['ge_index']]) \n",
|
| 1051 |
+
" dataset_dict['target_GE'].append(GE_data['target'][sample['ge_index']])\n",
|
| 1052 |
+
" \n",
|
| 1053 |
+
" # 转换为numpy数组并进行数据清洗\n",
|
| 1054 |
+
" final_dataset = {}\n",
|
| 1055 |
+
" final_dataset['canonical_smiles'] = np.array(dataset_dict['canonical_smiles'], dtype='S')\n",
|
| 1056 |
+
" \n",
|
| 1057 |
+
" # 数据清洗函数\n",
|
| 1058 |
+
" def clean_and_validate_data(data_list, name):\n",
|
| 1059 |
+
" data_array = np.array(data_list, dtype=np.float32)\n",
|
| 1060 |
+
" \n",
|
| 1061 |
+
" # 检查NaN和Inf\n",
|
| 1062 |
+
" nan_count = np.isnan(data_array).sum()\n",
|
| 1063 |
+
" inf_count = np.isinf(data_array).sum()\n",
|
| 1064 |
+
" \n",
|
| 1065 |
+
" if nan_count > 0 or inf_count > 0:\n",
|
| 1066 |
+
" print(f\"警告: {name} 包含 {nan_count} NaN 和 {inf_count} Inf\")\n",
|
| 1067 |
+
" data_array = np.nan_to_num(data_array, nan=0.0, posinf=1.0, neginf=-1.0)\n",
|
| 1068 |
+
" \n",
|
| 1069 |
+
" # 数据标准化\n",
|
| 1070 |
+
" mean = data_array.mean()\n",
|
| 1071 |
+
" std = data_array.std()\n",
|
| 1072 |
+
" \n",
|
| 1073 |
+
" print(f\"{name}: 均值={mean:.4f}, 标准差={std:.4f}, 形状={data_array.shape}\")\n",
|
| 1074 |
+
" \n",
|
| 1075 |
+
" return data_array\n",
|
| 1076 |
+
" \n",
|
| 1077 |
+
" final_dataset['control_CP'] = clean_and_validate_data(dataset_dict['control_CP'], 'control_CP')\n",
|
| 1078 |
+
" final_dataset['target_CP'] = clean_and_validate_data(dataset_dict['target_CP'], 'target_CP')\n",
|
| 1079 |
+
" final_dataset['control_GE'] = clean_and_validate_data(dataset_dict['control_GE'], 'control_GE')\n",
|
| 1080 |
+
" final_dataset['target_GE'] = clean_and_validate_data(dataset_dict['target_GE'], 'target_GE')\n",
|
| 1081 |
+
" \n",
|
| 1082 |
+
" # 保存为HDF5\n",
|
| 1083 |
+
" with h5py.File(out_path, 'w') as f:\n",
|
| 1084 |
+
" for key, value in final_dataset.items():\n",
|
| 1085 |
+
" f.create_dataset(key, data=value)\n",
|
| 1086 |
+
" \n",
|
| 1087 |
+
" print(f\"✅ 稳健配对数据集已保存到: {out_path}\")\n",
|
| 1088 |
+
" return final_dataset\n",
|
| 1089 |
+
"\n",
|
| 1090 |
+
"\n",
|
| 1091 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 1092 |
+
"paired_dataset = create_robust_paired_dataset(CP_CSV, GE_CSV, out_path)\n"
|
| 1093 |
+
]
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"cell_type": "code",
|
| 1097 |
+
"execution_count": 7,
|
| 1098 |
+
"metadata": {},
|
| 1099 |
+
"outputs": [],
|
| 1100 |
+
"source": [
|
| 1101 |
+
"out_path = './Paired_CP_GE_Dataset.h5'\n",
|
| 1102 |
+
"\n",
|
| 1103 |
+
"agg_data = load_from_HDF(out_path)"
|
| 1104 |
+
]
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"cell_type": "code",
|
| 1108 |
+
"execution_count": 8,
|
| 1109 |
+
"metadata": {},
|
| 1110 |
+
"outputs": [
|
| 1111 |
+
{
|
| 1112 |
+
"data": {
|
| 1113 |
+
"text/plain": [
|
| 1114 |
+
"((169287, 775), (169287, 775), (169287, 977), (169287, 977))"
|
| 1115 |
+
]
|
| 1116 |
+
},
|
| 1117 |
+
"execution_count": 8,
|
| 1118 |
+
"metadata": {},
|
| 1119 |
+
"output_type": "execute_result"
|
| 1120 |
+
}
|
| 1121 |
+
],
|
| 1122 |
+
"source": [
|
| 1123 |
+
"agg_data['control_CP'].shape, agg_data['target_CP'].shape, agg_data['control_GE'].shape, agg_data['target_GE'].shape"
|
| 1124 |
+
]
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"cell_type": "code",
|
| 1128 |
+
"execution_count": null,
|
| 1129 |
+
"metadata": {},
|
| 1130 |
+
"outputs": [],
|
| 1131 |
+
"source": []
|
| 1132 |
+
}
|
| 1133 |
+
],
|
| 1134 |
+
"metadata": {
|
| 1135 |
+
"kernelspec": {
|
| 1136 |
+
"display_name": "boom",
|
| 1137 |
+
"language": "python",
|
| 1138 |
+
"name": "python3"
|
| 1139 |
+
},
|
| 1140 |
+
"language_info": {
|
| 1141 |
+
"codemirror_mode": {
|
| 1142 |
+
"name": "ipython",
|
| 1143 |
+
"version": 3
|
| 1144 |
+
},
|
| 1145 |
+
"file_extension": ".py",
|
| 1146 |
+
"mimetype": "text/x-python",
|
| 1147 |
+
"name": "python",
|
| 1148 |
+
"nbconvert_exporter": "python",
|
| 1149 |
+
"pygments_lexer": "ipython3",
|
| 1150 |
+
"version": "3.11.10"
|
| 1151 |
+
}
|
| 1152 |
+
},
|
| 1153 |
+
"nbformat": 4,
|
| 1154 |
+
"nbformat_minor": 2
|
| 1155 |
+
}
|
MVC/MVC_BBBC047/Step4_outlier_process.ipynb
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "389cd136",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# 处理异常数据\n"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"cell_type": "code",
|
| 13 |
+
"execution_count": 1,
|
| 14 |
+
"id": "917fa110",
|
| 15 |
+
"metadata": {},
|
| 16 |
+
"outputs": [],
|
| 17 |
+
"source": [
|
| 18 |
+
"import numpy as np\n",
|
| 19 |
+
"import pandas as pd\n",
|
| 20 |
+
"import matplotlib.pyplot as plt\n",
|
| 21 |
+
"import seaborn as sns\n",
|
| 22 |
+
"import os\n",
|
| 23 |
+
"import h5py\n",
|
| 24 |
+
"\n",
|
| 25 |
+
"def load_from_HDF(fname):\n",
|
| 26 |
+
" \"\"\"Load data from a HDF5 file to a dictionary.\"\"\"\n",
|
| 27 |
+
" data = dict()\n",
|
| 28 |
+
" with h5py.File(fname, 'r') as f:\n",
|
| 29 |
+
" for key in f:\n",
|
| 30 |
+
" data[key] = np.asarray(f[key])\n",
|
| 31 |
+
" if isinstance(data[key][0], np.bytes_):\n",
|
| 32 |
+
" data[key] = data[key].astype(str)\n",
|
| 33 |
+
" return data"
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"cell_type": "code",
|
| 38 |
+
"execution_count": 2,
|
| 39 |
+
"id": "cddb976e",
|
| 40 |
+
"metadata": {},
|
| 41 |
+
"outputs": [],
|
| 42 |
+
"source": [
|
| 43 |
+
"path47 = 'Aggregated_CP_GE.h5'\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 46 |
+
"data47 = load_from_HDF(path47)"
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"cell_type": "code",
|
| 51 |
+
"execution_count": 5,
|
| 52 |
+
"id": "54e51b05",
|
| 53 |
+
"metadata": {},
|
| 54 |
+
"outputs": [
|
| 55 |
+
{
|
| 56 |
+
"name": "stdout",
|
| 57 |
+
"output_type": "stream",
|
| 58 |
+
"text": [
|
| 59 |
+
"整个数组的数据范围:[-20.614704132080078, 2870874.0]\n",
|
| 60 |
+
"------------------------------\n",
|
| 61 |
+
"整个数组的数据范围:[-1249.9088134765625, 19152610.0]\n",
|
| 62 |
+
"------------------------------\n"
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"source": [
|
| 67 |
+
"import numpy as np\n",
|
| 68 |
+
"\n",
|
| 69 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 70 |
+
"data_min = data47['control_CP'].min()\n",
|
| 71 |
+
"data_max = data47['control_CP'].max()\n",
|
| 72 |
+
"\n",
|
| 73 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 74 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 75 |
+
"min_per_column = np.min(data47['control_CP'], axis=0)\n",
|
| 76 |
+
"max_per_column = np.max(data47['control_CP'], axis=0)\n",
|
| 77 |
+
"\n",
|
| 78 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 79 |
+
"print(\"-\" * 30)\n",
|
| 80 |
+
"\n",
|
| 81 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 82 |
+
"data_min = data47['target_CP'].min()\n",
|
| 83 |
+
"data_max = data47['target_CP'].max()\n",
|
| 84 |
+
"\n",
|
| 85 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 86 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 87 |
+
"min_per_column = np.min(data47['target_CP'], axis=0)\n",
|
| 88 |
+
"max_per_column = np.max(data47['target_CP'], axis=0)\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 91 |
+
"print(\"-\" * 30)"
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"cell_type": "code",
|
| 96 |
+
"execution_count": 7,
|
| 97 |
+
"id": "bde80b4c",
|
| 98 |
+
"metadata": {},
|
| 99 |
+
"outputs": [
|
| 100 |
+
{
|
| 101 |
+
"name": "stdout",
|
| 102 |
+
"output_type": "stream",
|
| 103 |
+
"text": [
|
| 104 |
+
"整个数组的数据范围:[-2.230109453201294, 1.6778349876403809]\n",
|
| 105 |
+
"------------------------------\n",
|
| 106 |
+
"整个数组的数据范围:[-6.4108500480651855, 9.534767150878906]\n",
|
| 107 |
+
"------------------------------\n"
|
| 108 |
+
]
|
| 109 |
+
}
|
| 110 |
+
],
|
| 111 |
+
"source": [
|
| 112 |
+
"import numpy as np\n",
|
| 113 |
+
"\n",
|
| 114 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 115 |
+
"data_min = data47['control_GE'].min()\n",
|
| 116 |
+
"data_max = data47['control_GE'].max()\n",
|
| 117 |
+
"\n",
|
| 118 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 119 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 120 |
+
"min_per_column = np.min(data47['control_GE'], axis=0)\n",
|
| 121 |
+
"max_per_column = np.max(data47['control_GE'], axis=0)\n",
|
| 122 |
+
"\n",
|
| 123 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 124 |
+
"print(\"-\" * 30)\n",
|
| 125 |
+
"\n",
|
| 126 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 127 |
+
"data_min = data47['target_GE'].min()\n",
|
| 128 |
+
"data_max = data47['target_GE'].max()\n",
|
| 129 |
+
"\n",
|
| 130 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 131 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 132 |
+
"min_per_column = np.min(data47['target_GE'], axis=0)\n",
|
| 133 |
+
"max_per_column = np.max(data47['target_GE'], axis=0)\n",
|
| 134 |
+
"\n",
|
| 135 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 136 |
+
"print(\"-\" * 30)"
|
| 137 |
+
]
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"cell_type": "markdown",
|
| 141 |
+
"id": "053cfaa7",
|
| 142 |
+
"metadata": {},
|
| 143 |
+
"source": [
|
| 144 |
+
"## 看看 cpg0016 的数值范围"
|
| 145 |
+
]
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"cell_type": "code",
|
| 149 |
+
"execution_count": 9,
|
| 150 |
+
"id": "c81440ab",
|
| 151 |
+
"metadata": {},
|
| 152 |
+
"outputs": [
|
| 153 |
+
{
|
| 154 |
+
"name": "stdout",
|
| 155 |
+
"output_type": "stream",
|
| 156 |
+
"text": [
|
| 157 |
+
"整个数组的数据范围:[-1.2491892576217651, 1.3490736484527588]\n",
|
| 158 |
+
"------------------------------\n",
|
| 159 |
+
"整个数组的数据范围:[-6.057624816894531, 6.188350677490234]\n",
|
| 160 |
+
"------------------------------\n"
|
| 161 |
+
]
|
| 162 |
+
}
|
| 163 |
+
],
|
| 164 |
+
"source": [
|
| 165 |
+
"cpg0016_data = '/home/bob/boom/VCBench/data/Image/cpg0016_data.h5'\n",
|
| 166 |
+
"\n",
|
| 167 |
+
"# data36 = load_from_HDF(path36)\n",
|
| 168 |
+
"cpg0016_data = load_from_HDF(cpg0016_data)\n",
|
| 169 |
+
"\n",
|
| 170 |
+
"import numpy as np\n",
|
| 171 |
+
"\n",
|
| 172 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 173 |
+
"data_min = cpg0016_data['control'].min()\n",
|
| 174 |
+
"data_max = cpg0016_data['control'].max()\n",
|
| 175 |
+
"\n",
|
| 176 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 177 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 178 |
+
"min_per_column = np.min(cpg0016_data['control'], axis=0)\n",
|
| 179 |
+
"max_per_column = np.max(cpg0016_data['control'], axis=0)\n",
|
| 180 |
+
"\n",
|
| 181 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 182 |
+
"print(\"-\" * 30)\n",
|
| 183 |
+
"\n",
|
| 184 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 185 |
+
"data_min = cpg0016_data['target'].min()\n",
|
| 186 |
+
"data_max = cpg0016_data['target'].max()\n",
|
| 187 |
+
"\n",
|
| 188 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 189 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 190 |
+
"min_per_column = np.min(cpg0016_data['target'], axis=0)\n",
|
| 191 |
+
"max_per_column = np.max(cpg0016_data['target'], axis=0)\n",
|
| 192 |
+
"\n",
|
| 193 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 194 |
+
"print(\"-\" * 30)"
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"cell_type": "code",
|
| 199 |
+
"execution_count": 22,
|
| 200 |
+
"id": "2b2f331e",
|
| 201 |
+
"metadata": {},
|
| 202 |
+
"outputs": [
|
| 203 |
+
{
|
| 204 |
+
"name": "stdout",
|
| 205 |
+
"output_type": "stream",
|
| 206 |
+
"text": [
|
| 207 |
+
"\n",
|
| 208 |
+
"标准化后的整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n"
|
| 209 |
+
]
|
| 210 |
+
}
|
| 211 |
+
],
|
| 212 |
+
"source": [
|
| 213 |
+
"import numpy as np\n",
|
| 214 |
+
"\n",
|
| 215 |
+
"# 假设 data47['target_CP'] 是你的原始数据, target_CP, \n",
|
| 216 |
+
"data_with_outlier = data47['control_CP']\n",
|
| 217 |
+
"\n",
|
| 218 |
+
"# 1. 异常值处理 - 使用截断法 (Clipping)\n",
|
| 219 |
+
"# 设定一个更保守的上限,例如基于分位数\n",
|
| 220 |
+
"q99 = np.percentile(data_with_outlier, 99)\n",
|
| 221 |
+
"clip_max = q99 * 2 # 或者直接用一个固定值,比如 5\n",
|
| 222 |
+
"data_clipped = np.clip(data_with_outlier, a_min=None, a_max=clip_max)\n",
|
| 223 |
+
"# 2. 数据标准化 - Z-score Normalization\n",
|
| 224 |
+
"# 计算每列(特征)的均值和标准差\n",
|
| 225 |
+
"mu = data_clipped.mean(axis=0)\n",
|
| 226 |
+
"sigma = data_clipped.std(axis=0)\n",
|
| 227 |
+
"\n",
|
| 228 |
+
"# 初始化一个与数据形状相同的零数组\n",
|
| 229 |
+
"data_normalized = np.zeros_like(data_clipped, dtype=float)\n",
|
| 230 |
+
"\n",
|
| 231 |
+
"# 找到标准差不为0的列\n",
|
| 232 |
+
"# 为了避免浮点数误差,使用一个非常小的阈值来检查\n",
|
| 233 |
+
"epsilon = 1e-8\n",
|
| 234 |
+
"nonzero_sigma_cols = sigma > epsilon\n",
|
| 235 |
+
"\n",
|
| 236 |
+
"# 对这些列进行零均值化\n",
|
| 237 |
+
"data_normalized[:, nonzero_sigma_cols] = (data_clipped[:, nonzero_sigma_cols] - mu[nonzero_sigma_cols]) / sigma[nonzero_sigma_cols]\n",
|
| 238 |
+
"\n",
|
| 239 |
+
"# 检查结果\n",
|
| 240 |
+
"data_min = data_normalized.min()\n",
|
| 241 |
+
"data_max = data_normalized.max()\n",
|
| 242 |
+
"\n",
|
| 243 |
+
"print(f\"\\n标准化后的整个数组的数据范围:[{data_min}, {data_max}]\")"
|
| 244 |
+
]
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"cell_type": "code",
|
| 248 |
+
"execution_count": 23,
|
| 249 |
+
"id": "9ccda958",
|
| 250 |
+
"metadata": {},
|
| 251 |
+
"outputs": [],
|
| 252 |
+
"source": [
|
| 253 |
+
"control_CP = data_normalized.copy()\n",
|
| 254 |
+
"# print(control_CP.shape)\n",
|
| 255 |
+
"# target_CP = data_normalized.copy()"
|
| 256 |
+
]
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"cell_type": "code",
|
| 260 |
+
"execution_count": 24,
|
| 261 |
+
"id": "6e515034",
|
| 262 |
+
"metadata": {},
|
| 263 |
+
"outputs": [
|
| 264 |
+
{
|
| 265 |
+
"name": "stdout",
|
| 266 |
+
"output_type": "stream",
|
| 267 |
+
"text": [
|
| 268 |
+
"整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n",
|
| 269 |
+
"------------------------------\n",
|
| 270 |
+
"整个数组的数据范围:[-129.0272979736328, 64.47639465332031]\n",
|
| 271 |
+
"------------------------------\n"
|
| 272 |
+
]
|
| 273 |
+
}
|
| 274 |
+
],
|
| 275 |
+
"source": [
|
| 276 |
+
"import numpy as np\n",
|
| 277 |
+
"\n",
|
| 278 |
+
"data_min = control_CP.min()\n",
|
| 279 |
+
"data_max = control_CP.max()\n",
|
| 280 |
+
"\n",
|
| 281 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 282 |
+
"print(\"-\" * 30)\n",
|
| 283 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 284 |
+
"data_min = target_CP.min()\n",
|
| 285 |
+
"data_max = target_CP.max()\n",
|
| 286 |
+
"\n",
|
| 287 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 288 |
+
"print(\"-\" * 30)"
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"cell_type": "code",
|
| 293 |
+
"execution_count": 25,
|
| 294 |
+
"id": "481b57e7",
|
| 295 |
+
"metadata": {},
|
| 296 |
+
"outputs": [
|
| 297 |
+
{
|
| 298 |
+
"name": "stdout",
|
| 299 |
+
"output_type": "stream",
|
| 300 |
+
"text": [
|
| 301 |
+
"float64 float64\n",
|
| 302 |
+
"float32 float32\n"
|
| 303 |
+
]
|
| 304 |
+
}
|
| 305 |
+
],
|
| 306 |
+
"source": [
|
| 307 |
+
"print(control_CP.dtype, target_CP.dtype)\n",
|
| 308 |
+
"\n",
|
| 309 |
+
"control_CP_float32 = control_CP.astype(np.float32)\n",
|
| 310 |
+
"target_CP_float32 = target_CP.astype(np.float32)\n",
|
| 311 |
+
"print(control_CP_float32.dtype, target_CP_float32.dtype)"
|
| 312 |
+
]
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"cell_type": "code",
|
| 316 |
+
"execution_count": 26,
|
| 317 |
+
"id": "6e2d6030",
|
| 318 |
+
"metadata": {},
|
| 319 |
+
"outputs": [
|
| 320 |
+
{
|
| 321 |
+
"name": "stdout",
|
| 322 |
+
"output_type": "stream",
|
| 323 |
+
"text": [
|
| 324 |
+
"已删除旧的 'control_CP' 数据集。\n",
|
| 325 |
+
"已删除旧的 'target_CP' 数据集。\n",
|
| 326 |
+
"已成功��入新的 'control_CP' 和 'target_CP' 数据集。\n",
|
| 327 |
+
"操作完成。\n"
|
| 328 |
+
]
|
| 329 |
+
}
|
| 330 |
+
],
|
| 331 |
+
"source": [
|
| 332 |
+
"file_path = 'Aggregated_CP_GE.h5'\n",
|
| 333 |
+
"# 使用 'a' (append) 模式打开文件\n",
|
| 334 |
+
"with h5py.File(file_path, 'a') as f:\n",
|
| 335 |
+
" \n",
|
| 336 |
+
" # 1. 删除旧的数据集(如果存在)\n",
|
| 337 |
+
" if \"control_CP\" in f:\n",
|
| 338 |
+
" del f[\"control_CP\"]\n",
|
| 339 |
+
" print(\"已删除旧的 'control_CP' 数据集。\")\n",
|
| 340 |
+
" \n",
|
| 341 |
+
" if \"target_CP\" in f:\n",
|
| 342 |
+
" del f[\"target_CP\"]\n",
|
| 343 |
+
" print(\"已删除旧的 'target_CP' 数据集。\")\n",
|
| 344 |
+
" \n",
|
| 345 |
+
" # 2. 创建并写入新的数据集\n",
|
| 346 |
+
" f.create_dataset(\"control_CP\", data=control_CP_float32)\n",
|
| 347 |
+
" f.create_dataset(\"target_CP\", data=target_CP_float32)\n",
|
| 348 |
+
" \n",
|
| 349 |
+
" print(\"已成功写入新的 'control_CP' 和 'target_CP' 数据集。\")\n",
|
| 350 |
+
"\n",
|
| 351 |
+
"print(\"操作完成。\")\n"
|
| 352 |
+
]
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"cell_type": "code",
|
| 356 |
+
"execution_count": null,
|
| 357 |
+
"id": "b131c13e",
|
| 358 |
+
"metadata": {},
|
| 359 |
+
"outputs": [],
|
| 360 |
+
"source": []
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"cell_type": "markdown",
|
| 364 |
+
"id": "5a82372f",
|
| 365 |
+
"metadata": {},
|
| 366 |
+
"source": [
|
| 367 |
+
"# 看基因数据是否异常 -- 没有"
|
| 368 |
+
]
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"cell_type": "code",
|
| 372 |
+
"execution_count": 28,
|
| 373 |
+
"id": "a81ddc86",
|
| 374 |
+
"metadata": {},
|
| 375 |
+
"outputs": [
|
| 376 |
+
{
|
| 377 |
+
"name": "stdout",
|
| 378 |
+
"output_type": "stream",
|
| 379 |
+
"text": [
|
| 380 |
+
"整个数组的数据范围:[-11.38830852508545, 10.123730659484863]\n",
|
| 381 |
+
"------------------------------\n",
|
| 382 |
+
"每列数据的最小值(前10个):\n",
|
| 383 |
+
"[-1.7736303 -2.8932922 -1.9792434 -1.3063283 -1.5805442 -2.5623124\n",
|
| 384 |
+
" -2.9260125 -3.1737845 -3.493395 -5.5112543]\n",
|
| 385 |
+
"------------------------------\n",
|
| 386 |
+
"每列数据的最大值(前10个):\n",
|
| 387 |
+
"[3.8115907 4.765787 9.468964 3.2014632 2.3736608 4.2486434 4.5805535\n",
|
| 388 |
+
" 4.513591 1.7128 2.9639645]\n"
|
| 389 |
+
]
|
| 390 |
+
}
|
| 391 |
+
],
|
| 392 |
+
"source": [
|
| 393 |
+
"import numpy as np\n",
|
| 394 |
+
"\n",
|
| 395 |
+
"data47 = load_from_HDF( 'Aggregated_CP_GE.h5')\n",
|
| 396 |
+
"# 计算整个数组的最小值和最大值\n",
|
| 397 |
+
"data_min = data47['control_CP'].min()\n",
|
| 398 |
+
"data_max = data47['control_CP'].max()\n",
|
| 399 |
+
"\n",
|
| 400 |
+
"# 计算每列(即每个特征)的最小值和最大值\n",
|
| 401 |
+
"# axis=0 表示对每一列进行操作\n",
|
| 402 |
+
"min_per_column = np.min(data47['control_CP'], axis=0)\n",
|
| 403 |
+
"max_per_column = np.max(data47['control_CP'], axis=0)\n",
|
| 404 |
+
"\n",
|
| 405 |
+
"print(f\"整个数组的数据范围:[{data_min}, {data_max}]\")\n",
|
| 406 |
+
"print(\"-\" * 30)\n",
|
| 407 |
+
"print(\"每列数据的最小值(前10个):\")\n",
|
| 408 |
+
"print(min_per_column[:10])\n",
|
| 409 |
+
"print(\"-\" * 30)\n",
|
| 410 |
+
"print(\"每列数据的最大值(前10个):\")\n",
|
| 411 |
+
"print(max_per_column[:10])"
|
| 412 |
+
]
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"cell_type": "code",
|
| 416 |
+
"execution_count": null,
|
| 417 |
+
"id": "770f3727",
|
| 418 |
+
"metadata": {},
|
| 419 |
+
"outputs": [],
|
| 420 |
+
"source": [
|
| 421 |
+
"# 看看方差\n"
|
| 422 |
+
]
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"cell_type": "code",
|
| 426 |
+
"execution_count": null,
|
| 427 |
+
"id": "10693804",
|
| 428 |
+
"metadata": {},
|
| 429 |
+
"outputs": [],
|
| 430 |
+
"source": []
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"cell_type": "code",
|
| 434 |
+
"execution_count": null,
|
| 435 |
+
"id": "c072eea5",
|
| 436 |
+
"metadata": {},
|
| 437 |
+
"outputs": [],
|
| 438 |
+
"source": []
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"metadata": {
|
| 442 |
+
"kernelspec": {
|
| 443 |
+
"display_name": "boom",
|
| 444 |
+
"language": "python",
|
| 445 |
+
"name": "python3"
|
| 446 |
+
},
|
| 447 |
+
"language_info": {
|
| 448 |
+
"codemirror_mode": {
|
| 449 |
+
"name": "ipython",
|
| 450 |
+
"version": 3
|
| 451 |
+
},
|
| 452 |
+
"file_extension": ".py",
|
| 453 |
+
"mimetype": "text/x-python",
|
| 454 |
+
"name": "python",
|
| 455 |
+
"nbconvert_exporter": "python",
|
| 456 |
+
"pygments_lexer": "ipython3",
|
| 457 |
+
"version": "3.11.10"
|
| 458 |
+
}
|
| 459 |
+
},
|
| 460 |
+
"nbformat": 4,
|
| 461 |
+
"nbformat_minor": 5
|
| 462 |
+
}
|
MVC/MVC_BBBC047/make_paired_data_47_36.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Molecular_representations/Get_embeddings/MolCLR/Get_emd.ipynb
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [
|
| 8 |
+
{
|
| 9 |
+
"name": "stderr",
|
| 10 |
+
"output_type": "stream",
|
| 11 |
+
"text": [
|
| 12 |
+
"/tmp/ipykernel_29432/3546513620.py:42: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 13 |
+
" state_dict = torch.load(model_path, map_location=self.device)\n"
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "stdout",
|
| 18 |
+
"output_type": "stream",
|
| 19 |
+
"text": [
|
| 20 |
+
"Loaded trained model successfully.\n",
|
| 21 |
+
"Processed 1000 molecules...\n",
|
| 22 |
+
"Processed 2000 molecules...\n",
|
| 23 |
+
"Processed 3000 molecules...\n",
|
| 24 |
+
"Processed 4000 molecules...\n",
|
| 25 |
+
"Processed 5000 molecules...\n",
|
| 26 |
+
"Processed 6000 molecules...\n",
|
| 27 |
+
"Processed 7000 molecules...\n",
|
| 28 |
+
"Processed 8000 molecules...\n",
|
| 29 |
+
"Processed 9000 molecules...\n",
|
| 30 |
+
"Processed 10000 molecules...\n",
|
| 31 |
+
"Processed 11000 molecules...\n",
|
| 32 |
+
"Processed 12000 molecules...\n",
|
| 33 |
+
"Processed 13000 molecules...\n",
|
| 34 |
+
"Processed 14000 molecules...\n",
|
| 35 |
+
"Processed 15000 molecules...\n",
|
| 36 |
+
"Processed 16000 molecules...\n",
|
| 37 |
+
"Processed 17000 molecules...\n",
|
| 38 |
+
"Processed 18000 molecules...\n",
|
| 39 |
+
"Processed 19000 molecules...\n",
|
| 40 |
+
"Processed 20000 molecules...\n",
|
| 41 |
+
"Processed 21000 molecules...\n",
|
| 42 |
+
"Processed 22000 molecules...\n",
|
| 43 |
+
"Processed 23000 molecules...\n",
|
| 44 |
+
"Processed 24000 molecules...\n",
|
| 45 |
+
"Processed 25000 molecules...\n",
|
| 46 |
+
"Processed 26000 molecules...\n",
|
| 47 |
+
"Processed 27000 molecules...\n",
|
| 48 |
+
"Processed 28000 molecules...\n",
|
| 49 |
+
"Processed 29000 molecules...\n",
|
| 50 |
+
"Processed 30000 molecules...\n",
|
| 51 |
+
"Processed 31000 molecules...\n",
|
| 52 |
+
"Processed 32000 molecules...\n",
|
| 53 |
+
"Processed 33000 molecules...\n",
|
| 54 |
+
"Processed 34000 molecules...\n",
|
| 55 |
+
"Processed 35000 molecules...\n",
|
| 56 |
+
"Processed 36000 molecules...\n",
|
| 57 |
+
"Processed 37000 molecules...\n",
|
| 58 |
+
"Processed 38000 molecules...\n",
|
| 59 |
+
"Processed 39000 molecules...\n",
|
| 60 |
+
"Processed 40000 molecules...\n",
|
| 61 |
+
"Processed 41000 molecules...\n",
|
| 62 |
+
"Processed 42000 molecules...\n",
|
| 63 |
+
"Processed 43000 molecules...\n",
|
| 64 |
+
"Processed 44000 molecules...\n",
|
| 65 |
+
"Processed 45000 molecules...\n",
|
| 66 |
+
"Processed 46000 molecules...\n",
|
| 67 |
+
"Processed 47000 molecules...\n",
|
| 68 |
+
"Processed 48000 molecules...\n",
|
| 69 |
+
"Processed 49000 molecules...\n",
|
| 70 |
+
"Processed 50000 molecules...\n",
|
| 71 |
+
"Processed 51000 molecules...\n",
|
| 72 |
+
"Processed 52000 molecules...\n",
|
| 73 |
+
"Processed 53000 molecules...\n",
|
| 74 |
+
"Processed 54000 molecules...\n",
|
| 75 |
+
"\n",
|
| 76 |
+
"Completed. Success: 54201, Failed: 0\n",
|
| 77 |
+
"54201\n",
|
| 78 |
+
"总分子数 : 54201\n",
|
| 79 |
+
"成功嵌入 : 54201\n",
|
| 80 |
+
"总耗时 : 87.68 s\n",
|
| 81 |
+
"平均推理 : 1.62 ms / molecule\n"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"source": [
|
| 86 |
+
"import os\n",
|
| 87 |
+
"import csv\n",
|
| 88 |
+
"import torch\n",
|
| 89 |
+
"import numpy as np\n",
|
| 90 |
+
"from rdkit import Chem\n",
|
| 91 |
+
"from rdkit.Chem.rdchem import BondType as BT\n",
|
| 92 |
+
"from torch_geometric.data import Data\n",
|
| 93 |
+
"import yaml\n",
|
| 94 |
+
"import time\n",
|
| 95 |
+
"from pathlib import Path\n",
|
| 96 |
+
"\n",
|
| 97 |
+
"# 禁用RDKit的日志输出\n",
|
| 98 |
+
"from rdkit import RDLogger\n",
|
| 99 |
+
"RDLogger.DisableLog('rdApp.*')\n",
|
| 100 |
+
"\n",
|
| 101 |
+
"# 原子和化学键的类型定义\n",
|
| 102 |
+
"ATOM_LIST = list(range(1, 119))\n",
|
| 103 |
+
"CHIRALITY_LIST = [\n",
|
| 104 |
+
" Chem.rdchem.ChiralType.CHI_UNSPECIFIED,\n",
|
| 105 |
+
" Chem.rdchem.ChiralType.CHI_TETRAHEDRAL_CW,\n",
|
| 106 |
+
" Chem.rdchem.ChiralType.CHI_TETRAHEDRAL_CCW,\n",
|
| 107 |
+
" Chem.rdchem.ChiralType.CHI_OTHER\n",
|
| 108 |
+
"]\n",
|
| 109 |
+
"BOND_LIST = [BT.SINGLE, BT.DOUBLE, BT.TRIPLE, BT.AROMATIC]\n",
|
| 110 |
+
"BONDDIR_LIST = [\n",
|
| 111 |
+
" Chem.rdchem.BondDir.NONE,\n",
|
| 112 |
+
" Chem.rdchem.BondDir.ENDUPRIGHT,\n",
|
| 113 |
+
" Chem.rdchem.BondDir.ENDDOWNRIGHT\n",
|
| 114 |
+
"]\n",
|
| 115 |
+
"\n",
|
| 116 |
+
"class SMILESToEmbedding:\n",
|
| 117 |
+
" def __init__(self, model_path, device='cuda' if torch.cuda.is_available() else 'cpu'):\n",
|
| 118 |
+
" self.device = torch.device(device)\n",
|
| 119 |
+
" self.model = self.load_pretrained_model(model_path)\n",
|
| 120 |
+
" self.model.eval()\n",
|
| 121 |
+
" \n",
|
| 122 |
+
" def load_pretrained_model(self, model_path):\n",
|
| 123 |
+
" self.config = yaml.load(open(\"config_finetune.yaml\", \"r\"), Loader=yaml.FullLoader)\n",
|
| 124 |
+
" from models.ginet_finetune import GINet\n",
|
| 125 |
+
" model = GINet(**self.config[\"model\"]).to(self.device)\n",
|
| 126 |
+
" \n",
|
| 127 |
+
" state_dict = torch.load(model_path, map_location=self.device)\n",
|
| 128 |
+
" model.load_state_dict(state_dict, strict=False)\n",
|
| 129 |
+
" model.to(self.device)\n",
|
| 130 |
+
" print(\"Loaded trained model successfully.\")\n",
|
| 131 |
+
" return model\n",
|
| 132 |
+
" \n",
|
| 133 |
+
" def smiles_to_graph(self, smiles):\n",
|
| 134 |
+
" \"\"\"将SMILES字符串转换为图数据结构\"\"\"\n",
|
| 135 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 136 |
+
" if mol is None:\n",
|
| 137 |
+
" return None\n",
|
| 138 |
+
" \n",
|
| 139 |
+
" mol = Chem.AddHs(mol)\n",
|
| 140 |
+
" \n",
|
| 141 |
+
" # 原子特征\n",
|
| 142 |
+
" type_idx = []\n",
|
| 143 |
+
" chirality_idx = []\n",
|
| 144 |
+
" atomic_number = []\n",
|
| 145 |
+
" for atom in mol.GetAtoms():\n",
|
| 146 |
+
" type_idx.append(ATOM_LIST.index(atom.GetAtomicNum()))\n",
|
| 147 |
+
" chirality_idx.append(CHIRALITY_LIST.index(atom.GetChiralTag()))\n",
|
| 148 |
+
" atomic_number.append(atom.GetAtomicNum())\n",
|
| 149 |
+
"\n",
|
| 150 |
+
" x1 = torch.tensor(type_idx, dtype=torch.long).view(-1, 1)\n",
|
| 151 |
+
" x2 = torch.tensor(chirality_idx, dtype=torch.long).view(-1, 1)\n",
|
| 152 |
+
" x = torch.cat([x1, x2], dim=-1)\n",
|
| 153 |
+
"\n",
|
| 154 |
+
" # 化学键特征\n",
|
| 155 |
+
" row, col, edge_feat = [], [], []\n",
|
| 156 |
+
" for bond in mol.GetBonds():\n",
|
| 157 |
+
" start, end = bond.GetBeginAtomIdx(), bond.GetEndAtomIdx()\n",
|
| 158 |
+
" row += [start, end]\n",
|
| 159 |
+
" col += [end, start]\n",
|
| 160 |
+
" edge_feat.append([\n",
|
| 161 |
+
" BOND_LIST.index(bond.GetBondType()),\n",
|
| 162 |
+
" BONDDIR_LIST.index(bond.GetBondDir())\n",
|
| 163 |
+
" ])\n",
|
| 164 |
+
" edge_feat.append([\n",
|
| 165 |
+
" BOND_LIST.index(bond.GetBondType()),\n",
|
| 166 |
+
" BONDDIR_LIST.index(bond.GetBondDir())\n",
|
| 167 |
+
" ])\n",
|
| 168 |
+
"\n",
|
| 169 |
+
" edge_index = torch.tensor([row, col], dtype=torch.long)\n",
|
| 170 |
+
" edge_attr = torch.tensor(np.array(edge_feat), dtype=torch.long)\n",
|
| 171 |
+
" \n",
|
| 172 |
+
" return Data(x=x, edge_index=edge_index, edge_attr=edge_attr)\n",
|
| 173 |
+
" \n",
|
| 174 |
+
" def process_csv(self, csv_path, smiles_column='SMILES'):\n",
|
| 175 |
+
" \"\"\"处理CSV文件中的SMILES字符串\"\"\"\n",
|
| 176 |
+
" embeddings_dict = {} # 使用字典存储结果,键为SMILES,值为embedding\n",
|
| 177 |
+
" failed_smiles = []\n",
|
| 178 |
+
" \n",
|
| 179 |
+
" with open(csv_path, 'r') as f:\n",
|
| 180 |
+
" reader = csv.DictReader(f)\n",
|
| 181 |
+
" for i, row in enumerate(reader):\n",
|
| 182 |
+
" smiles = row[smiles_column]\n",
|
| 183 |
+
" try:\n",
|
| 184 |
+
" # 转换为图结构\n",
|
| 185 |
+
" graph = self.smiles_to_graph(smiles)\n",
|
| 186 |
+
" if graph is None:\n",
|
| 187 |
+
" failed_smiles.append(smiles)\n",
|
| 188 |
+
" continue\n",
|
| 189 |
+
" \n",
|
| 190 |
+
" # 通过模型获取嵌入\n",
|
| 191 |
+
" graph = graph.to(self.device)\n",
|
| 192 |
+
" with torch.no_grad():\n",
|
| 193 |
+
" embedding = self.model(graph)\n",
|
| 194 |
+
" embedding = embedding.squeeze(0).cpu().numpy().astype(np.float32)\n",
|
| 195 |
+
" \n",
|
| 196 |
+
" # 将结果存入字典\n",
|
| 197 |
+
" embeddings_dict[smiles] = embedding\n",
|
| 198 |
+
" \n",
|
| 199 |
+
" except Exception as e:\n",
|
| 200 |
+
" print(f\"Error processing SMILES {smiles}: {str(e)}\")\n",
|
| 201 |
+
" failed_smiles.append(smiles)\n",
|
| 202 |
+
" \n",
|
| 203 |
+
" if (i+1) % 1000 == 0:\n",
|
| 204 |
+
" print(f\"Processed {i+1} molecules...\")\n",
|
| 205 |
+
" \n",
|
| 206 |
+
" print(f\"\\nCompleted. Success: {len(embeddings_dict)}, Failed: {len(failed_smiles)}\")\n",
|
| 207 |
+
" return embeddings_dict, failed_smiles\n",
|
| 208 |
+
"\n",
|
| 209 |
+
"# 使用示例\n",
|
| 210 |
+
"if __name__ == \"__main__\":\n",
|
| 211 |
+
" # 替换为你的模型路径和CSV文件路径\n",
|
| 212 |
+
" processor = SMILESToEmbedding(\n",
|
| 213 |
+
" model_path='/home/bob/boom/VCBench/Molecule_encoder/MolCLR/ckpt/pretrained_gin/checkpoints/model.pth'\n",
|
| 214 |
+
" ) \n",
|
| 215 |
+
" \n",
|
| 216 |
+
" # ----- 计时开始 -----\n",
|
| 217 |
+
" t0 = time.perf_counter()\n",
|
| 218 |
+
" \n",
|
| 219 |
+
" # 处理CSV文件\n",
|
| 220 |
+
" embeddings_dict, failed = processor.process_csv(\n",
|
| 221 |
+
" csv_path='/home/bob/boom/AIVC/VOBench/data/canonical_smiles_list.csv',\n",
|
| 222 |
+
" smiles_column='SMILES' # 替换为���的CSV中SMILES列的名称\n",
|
| 223 |
+
" )\n",
|
| 224 |
+
" \n",
|
| 225 |
+
" t1 = time.perf_counter()\n",
|
| 226 |
+
" # ----- 计时结束 ----- \n",
|
| 227 |
+
" print(len(embeddings_dict))\n",
|
| 228 |
+
" \n",
|
| 229 |
+
" # 基本统计\n",
|
| 230 |
+
" total_mols = len(embeddings_dict)\n",
|
| 231 |
+
" avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 232 |
+
"\n",
|
| 233 |
+
" print(f\"总分子数 : {total_mols}\")\n",
|
| 234 |
+
" print(f\"成功嵌入 : {len(embeddings_dict)}\")\n",
|
| 235 |
+
" print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 236 |
+
" print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")"
|
| 237 |
+
]
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"cell_type": "code",
|
| 241 |
+
"execution_count": 2,
|
| 242 |
+
"metadata": {},
|
| 243 |
+
"outputs": [
|
| 244 |
+
{
|
| 245 |
+
"name": "stdout",
|
| 246 |
+
"output_type": "stream",
|
| 247 |
+
"text": [
|
| 248 |
+
"字典已成功保存到 /data/boom/Virtual_Organoid/Molecule_encoder/MolCLR_emb512.pickle\n"
|
| 249 |
+
]
|
| 250 |
+
}
|
| 251 |
+
],
|
| 252 |
+
"source": [
|
| 253 |
+
"import pickle\n",
|
| 254 |
+
"# 保存字典为pickle文件\n",
|
| 255 |
+
"pickle_path = '/data/boom/Virtual_Organoid/Molecule_encoder/MolCLR_emb512.pickle'\n",
|
| 256 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 257 |
+
" pickle.dump(embeddings_dict, pickle_file)\n",
|
| 258 |
+
"\n",
|
| 259 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 260 |
+
]
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"cell_type": "code",
|
| 264 |
+
"execution_count": null,
|
| 265 |
+
"metadata": {},
|
| 266 |
+
"outputs": [],
|
| 267 |
+
"source": []
|
| 268 |
+
}
|
| 269 |
+
],
|
| 270 |
+
"metadata": {
|
| 271 |
+
"kernelspec": {
|
| 272 |
+
"display_name": "boom",
|
| 273 |
+
"language": "python",
|
| 274 |
+
"name": "python3"
|
| 275 |
+
},
|
| 276 |
+
"language_info": {
|
| 277 |
+
"codemirror_mode": {
|
| 278 |
+
"name": "ipython",
|
| 279 |
+
"version": 3
|
| 280 |
+
},
|
| 281 |
+
"file_extension": ".py",
|
| 282 |
+
"mimetype": "text/x-python",
|
| 283 |
+
"name": "python",
|
| 284 |
+
"nbconvert_exporter": "python",
|
| 285 |
+
"pygments_lexer": "ipython3",
|
| 286 |
+
"version": "3.11.10"
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
"nbformat": 4,
|
| 290 |
+
"nbformat_minor": 2
|
| 291 |
+
}
|
Molecular_representations/Get_embeddings/Mole-BERT/Get_emd.ipynb
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2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [
|
| 8 |
+
{
|
| 9 |
+
"name": "stderr",
|
| 10 |
+
"output_type": "stream",
|
| 11 |
+
"text": [
|
| 12 |
+
"/home/bob/boom/VCBench/Molecule_encoder/Mole-BERT/model.py:499: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 13 |
+
" self.gnn.load_state_dict(torch.load(model_file))\n"
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "stdout",
|
| 18 |
+
"output_type": "stream",
|
| 19 |
+
"text": [
|
| 20 |
+
"Loaded trained model successfully.\n",
|
| 21 |
+
"Processed 1000 molecules...\n",
|
| 22 |
+
"Processed 2000 molecules...\n",
|
| 23 |
+
"Processed 3000 molecules...\n",
|
| 24 |
+
"Processed 4000 molecules...\n",
|
| 25 |
+
"Processed 5000 molecules...\n",
|
| 26 |
+
"Processed 6000 molecules...\n",
|
| 27 |
+
"Processed 7000 molecules...\n",
|
| 28 |
+
"Processed 8000 molecules...\n",
|
| 29 |
+
"Processed 9000 molecules...\n",
|
| 30 |
+
"Processed 10000 molecules...\n",
|
| 31 |
+
"Processed 11000 molecules...\n",
|
| 32 |
+
"Processed 12000 molecules...\n",
|
| 33 |
+
"Processed 13000 molecules...\n",
|
| 34 |
+
"Processed 14000 molecules...\n",
|
| 35 |
+
"Processed 15000 molecules...\n",
|
| 36 |
+
"Processed 16000 molecules...\n",
|
| 37 |
+
"Processed 17000 molecules...\n",
|
| 38 |
+
"Processed 18000 molecules...\n",
|
| 39 |
+
"Processed 19000 molecules...\n",
|
| 40 |
+
"Processed 20000 molecules...\n",
|
| 41 |
+
"Processed 21000 molecules...\n",
|
| 42 |
+
"Processed 22000 molecules...\n",
|
| 43 |
+
"Processed 23000 molecules...\n",
|
| 44 |
+
"Processed 24000 molecules...\n",
|
| 45 |
+
"Processed 25000 molecules...\n",
|
| 46 |
+
"Processed 26000 molecules...\n",
|
| 47 |
+
"Processed 27000 molecules...\n",
|
| 48 |
+
"Processed 28000 molecules...\n",
|
| 49 |
+
"Processed 29000 molecules...\n",
|
| 50 |
+
"Processed 30000 molecules...\n",
|
| 51 |
+
"Processed 31000 molecules...\n",
|
| 52 |
+
"Processed 32000 molecules...\n",
|
| 53 |
+
"Processed 33000 molecules...\n",
|
| 54 |
+
"Processed 34000 molecules...\n",
|
| 55 |
+
"Processed 35000 molecules...\n",
|
| 56 |
+
"Processed 36000 molecules...\n",
|
| 57 |
+
"Processed 37000 molecules...\n",
|
| 58 |
+
"Processed 38000 molecules...\n",
|
| 59 |
+
"Processed 39000 molecules...\n",
|
| 60 |
+
"Processed 40000 molecules...\n",
|
| 61 |
+
"Processed 41000 molecules...\n",
|
| 62 |
+
"Processed 42000 molecules...\n",
|
| 63 |
+
"Processed 43000 molecules...\n",
|
| 64 |
+
"Processed 44000 molecules...\n",
|
| 65 |
+
"Processed 45000 molecules...\n",
|
| 66 |
+
"Processed 46000 molecules...\n",
|
| 67 |
+
"Processed 47000 molecules...\n",
|
| 68 |
+
"Processed 48000 molecules...\n",
|
| 69 |
+
"Processed 49000 molecules...\n",
|
| 70 |
+
"Processed 50000 molecules...\n",
|
| 71 |
+
"Processed 51000 molecules...\n",
|
| 72 |
+
"Processed 52000 molecules...\n",
|
| 73 |
+
"Processed 53000 molecules...\n",
|
| 74 |
+
"Processed 54000 molecules...\n",
|
| 75 |
+
"\n",
|
| 76 |
+
"Completed. Success: 54201, Failed: 0\n",
|
| 77 |
+
"54201\n",
|
| 78 |
+
"54201\n",
|
| 79 |
+
"总分子数 : 54201\n",
|
| 80 |
+
"成功嵌入 : 54201\n",
|
| 81 |
+
"总耗时 : 87.55 s\n",
|
| 82 |
+
"平均推理 : 1.62 ms / molecule\n"
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"source": [
|
| 87 |
+
"import os\n",
|
| 88 |
+
"import csv\n",
|
| 89 |
+
"import torch\n",
|
| 90 |
+
"import numpy as np\n",
|
| 91 |
+
"from rdkit import Chem\n",
|
| 92 |
+
"from rdkit.Chem.rdchem import BondType as BT\n",
|
| 93 |
+
"from torch_geometric.data import Data\n",
|
| 94 |
+
"import yaml\n",
|
| 95 |
+
"\n",
|
| 96 |
+
"# 禁用RDKit的日志输出\n",
|
| 97 |
+
"from rdkit import RDLogger\n",
|
| 98 |
+
"RDLogger.DisableLog('rdApp.*')\n",
|
| 99 |
+
"\n",
|
| 100 |
+
"# 原子和化学键的类型定义\n",
|
| 101 |
+
"ATOM_LIST = list(range(1, 119))\n",
|
| 102 |
+
"CHIRALITY_LIST = [\n",
|
| 103 |
+
" Chem.rdchem.ChiralType.CHI_UNSPECIFIED,\n",
|
| 104 |
+
" Chem.rdchem.ChiralType.CHI_TETRAHEDRAL_CW,\n",
|
| 105 |
+
" Chem.rdchem.ChiralType.CHI_TETRAHEDRAL_CCW,\n",
|
| 106 |
+
" Chem.rdchem.ChiralType.CHI_OTHER\n",
|
| 107 |
+
"]\n",
|
| 108 |
+
"BOND_LIST = [BT.SINGLE, BT.DOUBLE, BT.TRIPLE, BT.AROMATIC]\n",
|
| 109 |
+
"BONDDIR_LIST = [\n",
|
| 110 |
+
" Chem.rdchem.BondDir.NONE,\n",
|
| 111 |
+
" Chem.rdchem.BondDir.ENDUPRIGHT,\n",
|
| 112 |
+
" Chem.rdchem.BondDir.ENDDOWNRIGHT\n",
|
| 113 |
+
"]\n",
|
| 114 |
+
"\n",
|
| 115 |
+
"class SMILESToEmbedding:\n",
|
| 116 |
+
" def __init__(self, model_path, device='cuda' if torch.cuda.is_available() else 'cpu'):\n",
|
| 117 |
+
" self.device = torch.device(device)\n",
|
| 118 |
+
" self.model = self.load_pretrained_model(model_path)\n",
|
| 119 |
+
" self.model.eval()\n",
|
| 120 |
+
" \n",
|
| 121 |
+
" def load_pretrained_model(self, model_path):\n",
|
| 122 |
+
" import argparse\n",
|
| 123 |
+
" parser = argparse.ArgumentParser(description='PyTorch implementation of pre-training of graph neural networks')\n",
|
| 124 |
+
" parser.add_argument('--device', type=int, default=0,\n",
|
| 125 |
+
" help='which gpu to use if any (default: 0)')\n",
|
| 126 |
+
" parser.add_argument('--batch_size', type=int, default=16,\n",
|
| 127 |
+
" help='input batch size for training (default: 32)')\n",
|
| 128 |
+
" parser.add_argument('--epochs', type=int, default=100,\n",
|
| 129 |
+
" help='number of epochs to train (default: 100)')\n",
|
| 130 |
+
" parser.add_argument('--lr', type=float, default=0.001,\n",
|
| 131 |
+
" help='learning rate (default: 0.001)')\n",
|
| 132 |
+
" parser.add_argument('--lr_scale', type=float, default=1,\n",
|
| 133 |
+
" help='relative learning rate for the feature extraction layer (default: 1)')\n",
|
| 134 |
+
" parser.add_argument('--decay', type=float, default=0,\n",
|
| 135 |
+
" help='weight decay (default: 0)')\n",
|
| 136 |
+
" parser.add_argument('--num_layer', type=int, default=5,\n",
|
| 137 |
+
" help='number of GNN message passing layers (default: 5).')\n",
|
| 138 |
+
" parser.add_argument('--emb_dim', type=int, default=300,\n",
|
| 139 |
+
" help='embedding dimensions (default: 300)')\n",
|
| 140 |
+
" parser.add_argument('--dropout_ratio', type=float, default=0.5,\n",
|
| 141 |
+
" help='dropout ratio (default: 0.5)')\n",
|
| 142 |
+
" parser.add_argument('--graph_pooling', type=str, default=\"mean\",\n",
|
| 143 |
+
" help='graph level pooling (sum, mean, max, set2set, attention)')\n",
|
| 144 |
+
" parser.add_argument('--JK', type=str, default=\"last\",\n",
|
| 145 |
+
" help='how the node features across layers are combined. last, sum, max or concat')\n",
|
| 146 |
+
" parser.add_argument('--gnn_type', type=str, default=\"gin\")\n",
|
| 147 |
+
" parser.add_argument('--dataset', type=str, default = 'sider', help='root directory of dataset. For now, only classification.')\n",
|
| 148 |
+
" parser.add_argument('--input_model_file', type=str, default = 'None', help='filename to read the model (if there is any)')\n",
|
| 149 |
+
" parser.add_argument('--filename', type=str, default = '', help='output filename')\n",
|
| 150 |
+
" parser.add_argument('--seed', type=int, default=42, help = \"Seed for splitting the dataset.\")\n",
|
| 151 |
+
" parser.add_argument('--runseed', type=int, default=0, help = \"Seed for minibatch selection, random initialization.\")\n",
|
| 152 |
+
" parser.add_argument('--split', type = str, default=\"scaffold\", help = \"random or scaffold or random_scaffold\")\n",
|
| 153 |
+
" parser.add_argument('--eval_train', type=int, default = 1, help='evaluating training or not')\n",
|
| 154 |
+
" parser.add_argument('--num_workers', type=int, default = 4, help='number of workers for dataset loading')\n",
|
| 155 |
+
" args = parser.parse_args()\n",
|
| 156 |
+
" \n",
|
| 157 |
+
" from model import GNN_graphpred\n",
|
| 158 |
+
" device = torch.device(\"cuda:\" + str(args.device)) if torch.cuda.is_available() else torch.device(\"cpu\")\n",
|
| 159 |
+
" \n",
|
| 160 |
+
" model = GNN_graphpred(args.num_layer, args.emb_dim, 1, JK = args.JK, drop_ratio = args.dropout_ratio, graph_pooling = args.graph_pooling, gnn_type = args.gnn_type)\n",
|
| 161 |
+
" model.from_pretrained(model_path)\n",
|
| 162 |
+
" model.to(device)\n",
|
| 163 |
+
"\n",
|
| 164 |
+
" print(\"Loaded trained model successfully.\")\n",
|
| 165 |
+
" \n",
|
| 166 |
+
" return model\n",
|
| 167 |
+
" \n",
|
| 168 |
+
" def smiles_to_graph(self, smiles):\n",
|
| 169 |
+
" \"\"\"将SMILES字符串转换为图数据结构\"\"\"\n",
|
| 170 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 171 |
+
" if mol is None:\n",
|
| 172 |
+
" return None\n",
|
| 173 |
+
" \n",
|
| 174 |
+
" mol = Chem.AddHs(mol)\n",
|
| 175 |
+
" \n",
|
| 176 |
+
" # 原子特征\n",
|
| 177 |
+
" type_idx = []\n",
|
| 178 |
+
" chirality_idx = []\n",
|
| 179 |
+
" atomic_number = []\n",
|
| 180 |
+
" for atom in mol.GetAtoms():\n",
|
| 181 |
+
" type_idx.append(ATOM_LIST.index(atom.GetAtomicNum()))\n",
|
| 182 |
+
" chirality_idx.append(CHIRALITY_LIST.index(atom.GetChiralTag()))\n",
|
| 183 |
+
" atomic_number.append(atom.GetAtomicNum())\n",
|
| 184 |
+
"\n",
|
| 185 |
+
" x1 = torch.tensor(type_idx, dtype=torch.long).view(-1, 1)\n",
|
| 186 |
+
" x2 = torch.tensor(chirality_idx, dtype=torch.long).view(-1, 1)\n",
|
| 187 |
+
" x = torch.cat([x1, x2], dim=-1)\n",
|
| 188 |
+
"\n",
|
| 189 |
+
" # 化学键特征\n",
|
| 190 |
+
" row, col, edge_feat = [], [], []\n",
|
| 191 |
+
" for bond in mol.GetBonds():\n",
|
| 192 |
+
" start, end = bond.GetBeginAtomIdx(), bond.GetEndAtomIdx()\n",
|
| 193 |
+
" row += [start, end]\n",
|
| 194 |
+
" col += [end, start]\n",
|
| 195 |
+
" edge_feat.append([\n",
|
| 196 |
+
" BOND_LIST.index(bond.GetBondType()),\n",
|
| 197 |
+
" BONDDIR_LIST.index(bond.GetBondDir())\n",
|
| 198 |
+
" ])\n",
|
| 199 |
+
" edge_feat.append([\n",
|
| 200 |
+
" BOND_LIST.index(bond.GetBondType()),\n",
|
| 201 |
+
" BONDDIR_LIST.index(bond.GetBondDir())\n",
|
| 202 |
+
" ])\n",
|
| 203 |
+
"\n",
|
| 204 |
+
" edge_index = torch.tensor([row, col], dtype=torch.long)\n",
|
| 205 |
+
" edge_attr = torch.tensor(np.array(edge_feat), dtype=torch.long)\n",
|
| 206 |
+
" \n",
|
| 207 |
+
" return Data(x=x, edge_index=edge_index, edge_attr=edge_attr)\n",
|
| 208 |
+
" \n",
|
| 209 |
+
" def process_csv(self, csv_path, smiles_column='SMILES'):\n",
|
| 210 |
+
" \"\"\"处理CSV文件中的SMILES字符串\"\"\"\n",
|
| 211 |
+
" embeddings_dict = {} # 使用字典存储结果,键为SMILES,值为embedding\n",
|
| 212 |
+
" failed_smiles = []\n",
|
| 213 |
+
" \n",
|
| 214 |
+
" with open(csv_path, 'r') as f:\n",
|
| 215 |
+
" reader = csv.DictReader(f)\n",
|
| 216 |
+
" for i, row in enumerate(reader):\n",
|
| 217 |
+
" smiles = row[smiles_column]\n",
|
| 218 |
+
" try:\n",
|
| 219 |
+
" # 转换为图结构\n",
|
| 220 |
+
" graph = self.smiles_to_graph(smiles)\n",
|
| 221 |
+
" if graph is None:\n",
|
| 222 |
+
" failed_smiles.append(smiles)\n",
|
| 223 |
+
" continue\n",
|
| 224 |
+
" \n",
|
| 225 |
+
" # 通过模型获取嵌入\n",
|
| 226 |
+
" graph = graph.to(self.device)\n",
|
| 227 |
+
" with torch.no_grad():\n",
|
| 228 |
+
" output = self.model(graph)\n",
|
| 229 |
+
" # print(output.shape)\n",
|
| 230 |
+
" # break\n",
|
| 231 |
+
" \n",
|
| 232 |
+
" # 处理模型输出(可能是元组)\n",
|
| 233 |
+
" if isinstance(output, tuple):\n",
|
| 234 |
+
" # 假设我们只需要第一个元素作为embedding\n",
|
| 235 |
+
" embedding = output[0]\n",
|
| 236 |
+
" else:\n",
|
| 237 |
+
" embedding = output\n",
|
| 238 |
+
" \n",
|
| 239 |
+
" # 将结果存入字典\n",
|
| 240 |
+
" embeddings_dict[smiles] = embedding.cpu().numpy()\n",
|
| 241 |
+
" \n",
|
| 242 |
+
" except Exception as e:\n",
|
| 243 |
+
" print(f\"Error processing SMILES {smiles}: {str(e)}\")\n",
|
| 244 |
+
" failed_smiles.append(smiles)\n",
|
| 245 |
+
" \n",
|
| 246 |
+
" if (i+1) % 1000 == 0:\n",
|
| 247 |
+
" print(f\"Processed {i+1} molecules...\")\n",
|
| 248 |
+
" \n",
|
| 249 |
+
" print(f\"\\nCompleted. Success: {len(embeddings_dict)}, Failed: {len(failed_smiles)}\")\n",
|
| 250 |
+
" return embeddings_dict, failed_smiles\n",
|
| 251 |
+
"\n",
|
| 252 |
+
"# 使用示例\n",
|
| 253 |
+
"if __name__ == \"__main__\":\n",
|
| 254 |
+
" # 替换为你的模型路径和CSV文件路径\n",
|
| 255 |
+
" processor = SMILESToEmbedding(model_path='model_gin/Mole-BERT.pth')\n",
|
| 256 |
+
" import time\n",
|
| 257 |
+
" \n",
|
| 258 |
+
" # ----- 计时开始 -----\n",
|
| 259 |
+
" t0 = time.perf_counter()\n",
|
| 260 |
+
" \n",
|
| 261 |
+
" # 处理CSV文件\n",
|
| 262 |
+
" embeddings_dict, failed = processor.process_csv(\n",
|
| 263 |
+
" csv_path='/home/bob/boom/AIVC/VOBench/data/canonical_smiles_list.csv',\n",
|
| 264 |
+
" smiles_column='SMILES' # 替换为你的CSV中SMILES列的名称\n",
|
| 265 |
+
" )\n",
|
| 266 |
+
" print(len(embeddings_dict))\n",
|
| 267 |
+
" \n",
|
| 268 |
+
" t1 = time.perf_counter()\n",
|
| 269 |
+
" # ----- 计时结束 ----- \n",
|
| 270 |
+
" print(len(embeddings_dict))\n",
|
| 271 |
+
" \n",
|
| 272 |
+
" # 基本统计\n",
|
| 273 |
+
" total_mols = len(embeddings_dict)\n",
|
| 274 |
+
" avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 275 |
+
"\n",
|
| 276 |
+
" print(f\"总分子数 : {total_mols}\")\n",
|
| 277 |
+
" print(f\"成功嵌入 : {len(embeddings_dict)}\")\n",
|
| 278 |
+
" print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 279 |
+
" print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")"
|
| 280 |
+
]
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"cell_type": "code",
|
| 284 |
+
"execution_count": 2,
|
| 285 |
+
"metadata": {},
|
| 286 |
+
"outputs": [
|
| 287 |
+
{
|
| 288 |
+
"name": "stdout",
|
| 289 |
+
"output_type": "stream",
|
| 290 |
+
"text": [
|
| 291 |
+
"字典已成功保存到 /data/boom/Virtual_Organoid/Molecule_encoder/Mole_BERT_emb300.pickle\n"
|
| 292 |
+
]
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"source": [
|
| 296 |
+
"import pickle\n",
|
| 297 |
+
"# 保存字典为pickle文件\n",
|
| 298 |
+
"pickle_path = '/data/boom/Virtual_Organoid/Molecule_encoder/Mole_BERT_emb300.pickle'\n",
|
| 299 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 300 |
+
" pickle.dump(embeddings_dict, pickle_file)\n",
|
| 301 |
+
"\n",
|
| 302 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 303 |
+
]
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"cell_type": "code",
|
| 307 |
+
"execution_count": null,
|
| 308 |
+
"metadata": {},
|
| 309 |
+
"outputs": [],
|
| 310 |
+
"source": []
|
| 311 |
+
}
|
| 312 |
+
],
|
| 313 |
+
"metadata": {
|
| 314 |
+
"kernelspec": {
|
| 315 |
+
"display_name": "boom",
|
| 316 |
+
"language": "python",
|
| 317 |
+
"name": "python3"
|
| 318 |
+
},
|
| 319 |
+
"language_info": {
|
| 320 |
+
"codemirror_mode": {
|
| 321 |
+
"name": "ipython",
|
| 322 |
+
"version": 3
|
| 323 |
+
},
|
| 324 |
+
"file_extension": ".py",
|
| 325 |
+
"mimetype": "text/x-python",
|
| 326 |
+
"name": "python",
|
| 327 |
+
"nbconvert_exporter": "python",
|
| 328 |
+
"pygments_lexer": "ipython3",
|
| 329 |
+
"version": "3.11.10"
|
| 330 |
+
}
|
| 331 |
+
},
|
| 332 |
+
"nbformat": 4,
|
| 333 |
+
"nbformat_minor": 2
|
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
"import pickle, h5py\n",
|
| 17 |
+
"import numpy as np\n",
|
| 18 |
+
"import pandas as pd\n",
|
| 19 |
+
"\n",
|
| 20 |
+
"with open('./LINCS2020/idx2smi.pickle', 'rb') as f:\n",
|
| 21 |
+
" idx2smi = pickle.load(f)\\\n",
|
| 22 |
+
" \n",
|
| 23 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串\n"
|
| 24 |
+
]
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"cell_type": "code",
|
| 28 |
+
"execution_count": 2,
|
| 29 |
+
"metadata": {},
|
| 30 |
+
"outputs": [
|
| 31 |
+
{
|
| 32 |
+
"name": "stdout",
|
| 33 |
+
"output_type": "stream",
|
| 34 |
+
"text": [
|
| 35 |
+
"8316 BrC1C(Br)C(Br)C(Br)C(Br)C1Br\n"
|
| 36 |
+
]
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"source": [
|
| 40 |
+
"print(len(idx2smi), idx2smi[0])"
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"cell_type": "code",
|
| 45 |
+
"execution_count": 7,
|
| 46 |
+
"metadata": {},
|
| 47 |
+
"outputs": [
|
| 48 |
+
{
|
| 49 |
+
"data": {
|
| 50 |
+
"text/plain": [
|
| 51 |
+
"'BrC1C(Br)C(Br)C(Br)C(Br)C1Br'"
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
"execution_count": 7,
|
| 55 |
+
"metadata": {},
|
| 56 |
+
"output_type": "execute_result"
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"source": [
|
| 60 |
+
"idx2smi[0] # to path_to_input_smiles.csv"
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"cell_type": "code",
|
| 65 |
+
"execution_count": 30,
|
| 66 |
+
"metadata": {},
|
| 67 |
+
"outputs": [
|
| 68 |
+
{
|
| 69 |
+
"name": "stdout",
|
| 70 |
+
"output_type": "stream",
|
| 71 |
+
"text": [
|
| 72 |
+
"SMILES已成功保存到LINCS2020_smiles.csv文件中。\n"
|
| 73 |
+
]
|
| 74 |
+
}
|
| 75 |
+
],
|
| 76 |
+
"source": [
|
| 77 |
+
"import pickle\n",
|
| 78 |
+
"import csv\n",
|
| 79 |
+
"\n",
|
| 80 |
+
"# 将SMILES字符串写入CSV文件\n",
|
| 81 |
+
"with open('./LINCS2020/LINCS2020_smiles.csv', 'w', newline='') as csvfile:\n",
|
| 82 |
+
" writer = csv.writer(csvfile)\n",
|
| 83 |
+
" # 写入标题行(可选)\n",
|
| 84 |
+
" writer.writerow(['SMILES'])\n",
|
| 85 |
+
" # 遍历字典,写入SMILES\n",
|
| 86 |
+
" for idx, smi in idx2smi.items():\n",
|
| 87 |
+
" writer.writerow([smi])\n",
|
| 88 |
+
"\n",
|
| 89 |
+
"print(\"SMILES已成功保存到LINCS2020_smiles.csv文件中。\")"
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"cell_type": "markdown",
|
| 94 |
+
"metadata": {},
|
| 95 |
+
"source": [
|
| 96 |
+
"# Generate ECFP4 embedding for all smiles\n"
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"cell_type": "code",
|
| 101 |
+
"execution_count": null,
|
| 102 |
+
"metadata": {},
|
| 103 |
+
"outputs": [],
|
| 104 |
+
"source": [
|
| 105 |
+
"from rdkit import Chem\n",
|
| 106 |
+
"from rdkit.Chem import AllChem\n",
|
| 107 |
+
"import numpy as np\n",
|
| 108 |
+
"import pickle\n",
|
| 109 |
+
"\n",
|
| 110 |
+
"def smiles_to_ecfp4(smiles_list, radius=2, n_bits=2048):\n",
|
| 111 |
+
" \"\"\"\n",
|
| 112 |
+
" 将SMILES列表转换为ECFP4特征向量。\n",
|
| 113 |
+
"\n",
|
| 114 |
+
" 参数:\n",
|
| 115 |
+
" smiles_list (list): SMILES字符串列表。\n",
|
| 116 |
+
" radius (int): ECFP的半径,默认为2(即ECFP4)。\n",
|
| 117 |
+
" n_bits (int): 特征向量的长度,默认为2048。\n",
|
| 118 |
+
"\n",
|
| 119 |
+
" 返回:\n",
|
| 120 |
+
" dict: 一个字典,键为SMILES字符串,值为对应的ECFP4特征向量。\n",
|
| 121 |
+
" \"\"\"\n",
|
| 122 |
+
" ecfp4_dict = {}\n",
|
| 123 |
+
" \n",
|
| 124 |
+
" for smiles in smiles_list:\n",
|
| 125 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 126 |
+
" if mol is not None:\n",
|
| 127 |
+
" # 替换编码器\n",
|
| 128 |
+
" ecfp4 = AllChem.GetMorganFingerprintAsBitVect(mol, radius=radius, nBits=n_bits)\n",
|
| 129 |
+
" ecfp4_dict[smiles] = np.array(ecfp4, dtype=np.float32)\n",
|
| 130 |
+
" else:\n",
|
| 131 |
+
" print(\"Error in \", smiles)\n",
|
| 132 |
+
" # 如果SMILES无法解析为分子,则填充一个全零的向量\n",
|
| 133 |
+
" ecfp4_dict[smiles] = np.zeros(n_bits, dtype=np.float32)\n",
|
| 134 |
+
" \n",
|
| 135 |
+
" return ecfp4_dict\n",
|
| 136 |
+
"\n",
|
| 137 |
+
"# 从字典中提取SMILES列表\n",
|
| 138 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串\n",
|
| 139 |
+
"\n",
|
| 140 |
+
"# 计算ECFP4特征\n",
|
| 141 |
+
"ecfp4_features_dict = smiles_to_ecfp4(smiles_list)\n",
|
| 142 |
+
"\n",
|
| 143 |
+
"# ecfp4_features_dict\n"
|
| 144 |
+
]
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"cell_type": "code",
|
| 148 |
+
"execution_count": 44,
|
| 149 |
+
"metadata": {},
|
| 150 |
+
"outputs": [
|
| 151 |
+
{
|
| 152 |
+
"name": "stdout",
|
| 153 |
+
"output_type": "stream",
|
| 154 |
+
"text": [
|
| 155 |
+
"8316 8316\n"
|
| 156 |
+
]
|
| 157 |
+
}
|
| 158 |
+
],
|
| 159 |
+
"source": [
|
| 160 |
+
"print(len(smiles_list), len(ecfp4_features_dict))"
|
| 161 |
+
]
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"cell_type": "code",
|
| 165 |
+
"execution_count": null,
|
| 166 |
+
"metadata": {},
|
| 167 |
+
"outputs": [],
|
| 168 |
+
"source": [
|
| 169 |
+
"ecfp4_features_dict\n",
|
| 170 |
+
"\n",
|
| 171 |
+
"# np.str_('BrC1C(Br)C(Br)C(Br)C(Br)C1Br'): array([0., 0., 0., ..., 0., 0., 0.], dtype=float32),"
|
| 172 |
+
]
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"cell_type": "code",
|
| 176 |
+
"execution_count": null,
|
| 177 |
+
"metadata": {},
|
| 178 |
+
"outputs": [],
|
| 179 |
+
"source": [
|
| 180 |
+
"# 保存为 pickle 文件\n",
|
| 181 |
+
"with open('./LINCS2020/ECFP4_emb2048.pickle', 'wb') as f:\n",
|
| 182 |
+
" pickle.dump(ecfp4_features_dict, f)"
|
| 183 |
+
]
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"cell_type": "code",
|
| 187 |
+
"execution_count": 50,
|
| 188 |
+
"metadata": {},
|
| 189 |
+
"outputs": [
|
| 190 |
+
{
|
| 191 |
+
"data": {
|
| 192 |
+
"text/plain": [
|
| 193 |
+
"(2048,)"
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
"execution_count": 50,
|
| 197 |
+
"metadata": {},
|
| 198 |
+
"output_type": "execute_result"
|
| 199 |
+
}
|
| 200 |
+
],
|
| 201 |
+
"source": [
|
| 202 |
+
"ecfp4_features_dict['CN1CCN(CCCN2c3ccccc3Sc3ccc(cc23)C(F)(F)F)CC1'].shape"
|
| 203 |
+
]
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"cell_type": "code",
|
| 207 |
+
"execution_count": 1,
|
| 208 |
+
"metadata": {},
|
| 209 |
+
"outputs": [],
|
| 210 |
+
"source": [
|
| 211 |
+
"# import pickle, h5py\n",
|
| 212 |
+
"# import numpy as np\n",
|
| 213 |
+
"# import pandas as pd\n",
|
| 214 |
+
"\n",
|
| 215 |
+
"# with open('./embeddings/ChemBERTa2_emb384.pickle', 'rb') as f:\n",
|
| 216 |
+
"# KPGT_emb2304 = pickle.load(f)\n",
|
| 217 |
+
"# KPGT_emb2304"
|
| 218 |
+
]
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"cell_type": "code",
|
| 222 |
+
"execution_count": 2,
|
| 223 |
+
"metadata": {},
|
| 224 |
+
"outputs": [
|
| 225 |
+
{
|
| 226 |
+
"data": {
|
| 227 |
+
"text/plain": [
|
| 228 |
+
"(300,)"
|
| 229 |
+
]
|
| 230 |
+
},
|
| 231 |
+
"execution_count": 2,
|
| 232 |
+
"metadata": {},
|
| 233 |
+
"output_type": "execute_result"
|
| 234 |
+
}
|
| 235 |
+
],
|
| 236 |
+
"source": [
|
| 237 |
+
"# KPGT_emb2304['BrC1C(Br)C(Br)C(Br)C(Br)C1Br'].shape"
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"cell_type": "markdown",
|
| 242 |
+
"metadata": {},
|
| 243 |
+
"source": [
|
| 244 |
+
"# Generate KGPT embedding for all smiles"
|
| 245 |
+
]
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"cell_type": "code",
|
| 249 |
+
"execution_count": null,
|
| 250 |
+
"metadata": {},
|
| 251 |
+
"outputs": [],
|
| 252 |
+
"source": [
|
| 253 |
+
"import pickle, h5py\n",
|
| 254 |
+
"import numpy as np\n",
|
| 255 |
+
"import pandas as pd\n",
|
| 256 |
+
"\n",
|
| 257 |
+
"with open('./embeddings/KPGT_emb2304.pickle', 'rb') as f:\n",
|
| 258 |
+
" KPGT_emb2304 = pickle.load(f)\n",
|
| 259 |
+
"KPGT_emb2304"
|
| 260 |
+
]
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"cell_type": "code",
|
| 264 |
+
"execution_count": null,
|
| 265 |
+
"metadata": {},
|
| 266 |
+
"outputs": [
|
| 267 |
+
{
|
| 268 |
+
"name": "stdout",
|
| 269 |
+
"output_type": "stream",
|
| 270 |
+
"text": [
|
| 271 |
+
"预训练权重总参数量: 111,755,936\n",
|
| 272 |
+
"111.8 M\n"
|
| 273 |
+
]
|
| 274 |
+
}
|
| 275 |
+
],
|
| 276 |
+
"source": [
|
| 277 |
+
"import torch\n",
|
| 278 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/KPGT/base.pth', map_location='cpu')\n",
|
| 279 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 280 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 281 |
+
"print(f'{total/1e6:.1f} M')"
|
| 282 |
+
]
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"cell_type": "markdown",
|
| 286 |
+
"metadata": {},
|
| 287 |
+
"source": [
|
| 288 |
+
"# Generate InfoAlign embedding for all smiles"
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"cell_type": "code",
|
| 293 |
+
"execution_count": null,
|
| 294 |
+
"metadata": {},
|
| 295 |
+
"outputs": [],
|
| 296 |
+
"source": [
|
| 297 |
+
"# pip install infoalign\n",
|
| 298 |
+
"\n",
|
| 299 |
+
"# infoalign_predict --input LINCS2020/LINCS2020_smiles.csv \\\n",
|
| 300 |
+
"# --output InfoAlign_output.npy \\\n",
|
| 301 |
+
"# --output-to-input-column # Adds the representation as an additional column in the input CSV\n",
|
| 302 |
+
"\n",
|
| 303 |
+
"# 是否存在数据泄露,因为这个是基于表征学习的"
|
| 304 |
+
]
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"cell_type": "code",
|
| 308 |
+
"execution_count": 9,
|
| 309 |
+
"metadata": {},
|
| 310 |
+
"outputs": [
|
| 311 |
+
{
|
| 312 |
+
"name": "stdout",
|
| 313 |
+
"output_type": "stream",
|
| 314 |
+
"text": [
|
| 315 |
+
"预训练权重总参数量: 13,808,553\n",
|
| 316 |
+
"13.8 M\n"
|
| 317 |
+
]
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"name": "stderr",
|
| 321 |
+
"output_type": "stream",
|
| 322 |
+
"text": [
|
| 323 |
+
"/tmp/ipykernel_1948954/1463163983.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 324 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/infoalign_model/pretrain.pt', map_location='cpu')\n"
|
| 325 |
+
]
|
| 326 |
+
}
|
| 327 |
+
],
|
| 328 |
+
"source": [
|
| 329 |
+
"import torch\n",
|
| 330 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/infoalign_model/pretrain.pt', map_location='cpu')\n",
|
| 331 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 332 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 333 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 334 |
+
]
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"cell_type": "code",
|
| 338 |
+
"execution_count": 26,
|
| 339 |
+
"metadata": {},
|
| 340 |
+
"outputs": [],
|
| 341 |
+
"source": [
|
| 342 |
+
"import csv\n",
|
| 343 |
+
"import numpy as np\n",
|
| 344 |
+
"import pickle\n",
|
| 345 |
+
"\n",
|
| 346 |
+
"# CSV文件路径\n",
|
| 347 |
+
"csv_path = 'infoalign_model/LINCS2020_smiles.csv'\n",
|
| 348 |
+
"# NPY文件路径\n",
|
| 349 |
+
"npy_path = 'infoalign_model/InfoAlign_output.npy'\n",
|
| 350 |
+
"\n",
|
| 351 |
+
"# 初始化一个空字典来存储SMILES和对应的表征\n",
|
| 352 |
+
"smiles_to_representation = {}\n",
|
| 353 |
+
"\n",
|
| 354 |
+
"# 读取NPY文件\n",
|
| 355 |
+
"info_align_output = np.load(npy_path)\n",
|
| 356 |
+
"\n",
|
| 357 |
+
"# 读取CSV文件并同时替换字典中的值\n",
|
| 358 |
+
"with open(csv_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 359 |
+
" reader = csv.DictReader(csvfile)\n",
|
| 360 |
+
" for idx, row in enumerate(reader):\n",
|
| 361 |
+
" smiles = row['SMILES']\n",
|
| 362 |
+
" # 直接从info_align_output中获取对应的数值\n",
|
| 363 |
+
" representation = info_align_output[idx]\n",
|
| 364 |
+
" smiles_to_representation[smiles] = representation\n"
|
| 365 |
+
]
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"cell_type": "code",
|
| 369 |
+
"execution_count": 34,
|
| 370 |
+
"metadata": {},
|
| 371 |
+
"outputs": [
|
| 372 |
+
{
|
| 373 |
+
"data": {
|
| 374 |
+
"text/plain": [
|
| 375 |
+
"8316"
|
| 376 |
+
]
|
| 377 |
+
},
|
| 378 |
+
"execution_count": 34,
|
| 379 |
+
"metadata": {},
|
| 380 |
+
"output_type": "execute_result"
|
| 381 |
+
}
|
| 382 |
+
],
|
| 383 |
+
"source": [
|
| 384 |
+
"len(smiles_to_representation)"
|
| 385 |
+
]
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"cell_type": "code",
|
| 389 |
+
"execution_count": 29,
|
| 390 |
+
"metadata": {},
|
| 391 |
+
"outputs": [
|
| 392 |
+
{
|
| 393 |
+
"name": "stdout",
|
| 394 |
+
"output_type": "stream",
|
| 395 |
+
"text": [
|
| 396 |
+
"字典已成功保存到 embeddings/InfoAlign_emb300.pickle\n"
|
| 397 |
+
]
|
| 398 |
+
}
|
| 399 |
+
],
|
| 400 |
+
"source": [
|
| 401 |
+
"# 保存字典为pickle文件\n",
|
| 402 |
+
"pickle_path = 'embeddings/InfoAlign_emb300.pickle'\n",
|
| 403 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 404 |
+
" pickle.dump(smiles_to_representation, pickle_file)\n",
|
| 405 |
+
"\n",
|
| 406 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 407 |
+
]
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"cell_type": "markdown",
|
| 411 |
+
"metadata": {},
|
| 412 |
+
"source": [
|
| 413 |
+
"# Generate ChemBERTa-2 embedding for all smiles"
|
| 414 |
+
]
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"cell_type": "code",
|
| 418 |
+
"execution_count": 1,
|
| 419 |
+
"metadata": {},
|
| 420 |
+
"outputs": [
|
| 421 |
+
{
|
| 422 |
+
"name": "stderr",
|
| 423 |
+
"output_type": "stream",
|
| 424 |
+
"text": [
|
| 425 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 426 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 427 |
+
]
|
| 428 |
+
}
|
| 429 |
+
],
|
| 430 |
+
"source": [
|
| 431 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 432 |
+
"model = AutoModel.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\") # 77M SMILES(完整PubChem数据集)\n",
|
| 433 |
+
"tokenizer = AutoTokenizer.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\")\n",
|
| 434 |
+
"inputs = tokenizer(\"CCO\", return_tensors=\"pt\")\n",
|
| 435 |
+
"outputs = model(**inputs) # 嵌入位于 outputs.last_hidden_state"
|
| 436 |
+
]
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"cell_type": "code",
|
| 440 |
+
"execution_count": 3,
|
| 441 |
+
"metadata": {},
|
| 442 |
+
"outputs": [
|
| 443 |
+
{
|
| 444 |
+
"data": {
|
| 445 |
+
"text/plain": [
|
| 446 |
+
"torch.Size([1, 5, 384])"
|
| 447 |
+
]
|
| 448 |
+
},
|
| 449 |
+
"execution_count": 3,
|
| 450 |
+
"metadata": {},
|
| 451 |
+
"output_type": "execute_result"
|
| 452 |
+
}
|
| 453 |
+
],
|
| 454 |
+
"source": [
|
| 455 |
+
"outputs.last_hidden_state.shape"
|
| 456 |
+
]
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"cell_type": "code",
|
| 460 |
+
"execution_count": null,
|
| 461 |
+
"metadata": {},
|
| 462 |
+
"outputs": [
|
| 463 |
+
{
|
| 464 |
+
"name": "stderr",
|
| 465 |
+
"output_type": "stream",
|
| 466 |
+
"text": [
|
| 467 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 468 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 469 |
+
]
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"name": "stdout",
|
| 473 |
+
"output_type": "stream",
|
| 474 |
+
"text": [
|
| 475 |
+
"ChemBERTa-77M 可训练参数量: 3,427,440\n",
|
| 476 |
+
"3.4 M\n"
|
| 477 |
+
]
|
| 478 |
+
}
|
| 479 |
+
],
|
| 480 |
+
"source": [
|
| 481 |
+
"# from transformers import AutoModel\n",
|
| 482 |
+
"\n",
|
| 483 |
+
"# model = AutoModel.from_pretrained(\"DeepChem/ChemBERTa-77M-MLM\")\n",
|
| 484 |
+
"\n",
|
| 485 |
+
"# trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)\n",
|
| 486 |
+
"# print(f\"ChemBERTa-77M 可训练参数量: {trainable:,}\")\n",
|
| 487 |
+
"# print(f\"{trainable/1e6:.1f} M\") # → 85.7 M"
|
| 488 |
+
]
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"cell_type": "code",
|
| 492 |
+
"execution_count": null,
|
| 493 |
+
"metadata": {},
|
| 494 |
+
"outputs": [
|
| 495 |
+
{
|
| 496 |
+
"name": "stderr",
|
| 497 |
+
"output_type": "stream",
|
| 498 |
+
"text": [
|
| 499 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 500 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
|
| 501 |
+
]
|
| 502 |
+
}
|
| 503 |
+
],
|
| 504 |
+
"source": [
|
| 505 |
+
"# from transformers import AutoModel, AutoTokenizer\n",
|
| 506 |
+
"# import torch, os, shutil\n",
|
| 507 |
+
"\n",
|
| 508 |
+
"# repo_id = \"DeepChem/ChemBERTa-77M-MLM\"\n",
|
| 509 |
+
"\n",
|
| 510 |
+
"# # 1. 磁盘大小:下载后统计整个 snapshot 目录\n",
|
| 511 |
+
"# tmp_dir = \"./tmp_snapshot\" # 临时目录,用完即删\n",
|
| 512 |
+
"# model = AutoModel.from_pretrained(repo_id, cache_dir=tmp_dir)\n",
|
| 513 |
+
"# tokenizer = AutoTokenizer.from_pretrained(repo_id, cache_dir=tmp_dir)\n",
|
| 514 |
+
"\n",
|
| 515 |
+
"# disk_mb = sum(\n",
|
| 516 |
+
"# os.path.getsize(os.path.join(root, f))\n",
|
| 517 |
+
"# for root, _, files in os.walk(tmp_dir)\n",
|
| 518 |
+
"# for f in files\n",
|
| 519 |
+
"# ) / 1024 ** 2\n",
|
| 520 |
+
"\n",
|
| 521 |
+
"# print(f\"权重文件磁盘占用:{disk_mb:.1f} MB\")"
|
| 522 |
+
]
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"cell_type": "code",
|
| 526 |
+
"execution_count": null,
|
| 527 |
+
"metadata": {},
|
| 528 |
+
"outputs": [
|
| 529 |
+
{
|
| 530 |
+
"name": "stderr",
|
| 531 |
+
"output_type": "stream",
|
| 532 |
+
"text": [
|
| 533 |
+
"Some weights of RobertaModel were not initialized from the model checkpoint at DeepChem/ChemBERTa-77M-MLM and are newly initialized: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']\n",
|
| 534 |
+
"You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n",
|
| 535 |
+
"100%|██████████| 260/260 [00:01<00:00, 168.25it/s]"
|
| 536 |
+
]
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"name": "stdout",
|
| 540 |
+
"output_type": "stream",
|
| 541 |
+
"text": [
|
| 542 |
+
"总分子数 : 8316\n",
|
| 543 |
+
"总耗时 : 2.82 s\n",
|
| 544 |
+
"平均推理 : 0.34 ms / molecule\n"
|
| 545 |
+
]
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"name": "stderr",
|
| 549 |
+
"output_type": "stream",
|
| 550 |
+
"text": [
|
| 551 |
+
"\n"
|
| 552 |
+
]
|
| 553 |
+
}
|
| 554 |
+
],
|
| 555 |
+
"source": [
|
| 556 |
+
"import pickle\n",
|
| 557 |
+
"import time\n",
|
| 558 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 559 |
+
"import torch\n",
|
| 560 |
+
"import numpy as np\n",
|
| 561 |
+
"from rdkit import Chem\n",
|
| 562 |
+
"from tqdm import tqdm # 可选:用于进度条\n",
|
| 563 |
+
"\n",
|
| 564 |
+
"def smiles_to_chemberta2(smiles_list, model_name=\"DeepChem/ChemBERTa-77M-MLM\", batch_size=32):\n",
|
| 565 |
+
" \"\"\"\n",
|
| 566 |
+
" 将SMILES列表转换为ChemBERTa-2的嵌入向量(CLS token的隐藏状态)。\n",
|
| 567 |
+
" \n",
|
| 568 |
+
" 参数:\n",
|
| 569 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 570 |
+
" model_name (str): Hugging Face模型ID,默认为ChemBERTa-2的MLM版本\n",
|
| 571 |
+
" batch_size (int): 批处理大小,根据GPU内存调整\n",
|
| 572 |
+
" \n",
|
| 573 |
+
" 返回:\n",
|
| 574 |
+
" dict: 键为SMILES,值为768维嵌入向量(numpy数组)\n",
|
| 575 |
+
" \"\"\"\n",
|
| 576 |
+
" # 加载模型和tokenizer\n",
|
| 577 |
+
" tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
|
| 578 |
+
" model = AutoModel.from_pretrained(model_name)\n",
|
| 579 |
+
" model.eval() # 切换到推理模式\n",
|
| 580 |
+
" \n",
|
| 581 |
+
" # 检查CUDA可用性\n",
|
| 582 |
+
" device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 583 |
+
" model.to(device)\n",
|
| 584 |
+
" \n",
|
| 585 |
+
" chemberta2_dict = {}\n",
|
| 586 |
+
" \n",
|
| 587 |
+
" # 分批处理SMILES\n",
|
| 588 |
+
" for i in tqdm(range(0, len(smiles_list), batch_size)):\n",
|
| 589 |
+
" batch_smiles = smiles_list[i:i+batch_size]\n",
|
| 590 |
+
" valid_indices = []\n",
|
| 591 |
+
" batch_inputs = []\n",
|
| 592 |
+
" \n",
|
| 593 |
+
" # 过滤无效SMILES并生成输入\n",
|
| 594 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 595 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 596 |
+
" if mol is not None:\n",
|
| 597 |
+
" valid_indices.append(idx)\n",
|
| 598 |
+
" batch_inputs.append(smiles)\n",
|
| 599 |
+
" else:\n",
|
| 600 |
+
" print(f\"Invalid SMILES: {smiles}\")\n",
|
| 601 |
+
" \n",
|
| 602 |
+
" if not batch_inputs:\n",
|
| 603 |
+
" continue\n",
|
| 604 |
+
" \n",
|
| 605 |
+
" # Tokenize并移动到设备\n",
|
| 606 |
+
" inputs = tokenizer(\n",
|
| 607 |
+
" batch_inputs, \n",
|
| 608 |
+
" return_tensors=\"pt\", \n",
|
| 609 |
+
" padding=True, \n",
|
| 610 |
+
" truncation=True, \n",
|
| 611 |
+
" max_length=512\n",
|
| 612 |
+
" ).to(device)\n",
|
| 613 |
+
" \n",
|
| 614 |
+
" # 生成嵌入\n",
|
| 615 |
+
" with torch.no_grad():\n",
|
| 616 |
+
" outputs = model(**inputs)\n",
|
| 617 |
+
" embeddings = outputs.last_hidden_state[:, 0, :] # 取CLS token的嵌入\n",
|
| 618 |
+
" \n",
|
| 619 |
+
" # 将有效结果存入字典\n",
|
| 620 |
+
" for j, idx in enumerate(valid_indices):\n",
|
| 621 |
+
" chemberta2_dict[batch_smiles[idx]] = embeddings[j].cpu().numpy()\n",
|
| 622 |
+
" \n",
|
| 623 |
+
" # 处理无效SMILES(填充零向量)\n",
|
| 624 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 625 |
+
" if idx not in valid_indices:\n",
|
| 626 |
+
" chemberta2_dict[smiles] = np.zeros(768, dtype=np.float32)\n",
|
| 627 |
+
" \n",
|
| 628 |
+
" return chemberta2_dict\n",
|
| 629 |
+
"\n",
|
| 630 |
+
"# 使用示例\n",
|
| 631 |
+
"import time\n",
|
| 632 |
+
"# ----- 计时开始 -----\n",
|
| 633 |
+
"t0 = time.perf_counter()\n",
|
| 634 |
+
"smiles_list = list(idx2smi.values()) # 假设idx2smi是SMILES字典\n",
|
| 635 |
+
"chemberta2_features_dict = smiles_to_chemberta2(smiles_list)\n",
|
| 636 |
+
"\n",
|
| 637 |
+
"t1 = time.perf_counter()\n",
|
| 638 |
+
"# ----- 计时结束 -----\n",
|
| 639 |
+
"\n",
|
| 640 |
+
"# 基本统计\n",
|
| 641 |
+
"total_mols = len(chemberta2_features_dict)\n",
|
| 642 |
+
"avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 643 |
+
"\n",
|
| 644 |
+
"print(f\"总分子数 : {total_mols}\")\n",
|
| 645 |
+
"print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 646 |
+
"print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")"
|
| 647 |
+
]
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"cell_type": "code",
|
| 651 |
+
"execution_count": 8,
|
| 652 |
+
"metadata": {},
|
| 653 |
+
"outputs": [
|
| 654 |
+
{
|
| 655 |
+
"name": "stdout",
|
| 656 |
+
"output_type": "stream",
|
| 657 |
+
"text": [
|
| 658 |
+
"8316 384\n"
|
| 659 |
+
]
|
| 660 |
+
}
|
| 661 |
+
],
|
| 662 |
+
"source": [
|
| 663 |
+
"print(len(chemberta2_features_dict), len(chemberta2_features_dict['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 664 |
+
]
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"cell_type": "code",
|
| 668 |
+
"execution_count": null,
|
| 669 |
+
"metadata": {},
|
| 670 |
+
"outputs": [],
|
| 671 |
+
"source": [
|
| 672 |
+
"chemberta2_features_dict['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']"
|
| 673 |
+
]
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"cell_type": "code",
|
| 677 |
+
"execution_count": 7,
|
| 678 |
+
"metadata": {},
|
| 679 |
+
"outputs": [
|
| 680 |
+
{
|
| 681 |
+
"name": "stdout",
|
| 682 |
+
"output_type": "stream",
|
| 683 |
+
"text": [
|
| 684 |
+
"字典已成功保存到 embeddings/ChemBERTa2_emb384.pickle\n"
|
| 685 |
+
]
|
| 686 |
+
}
|
| 687 |
+
],
|
| 688 |
+
"source": [
|
| 689 |
+
"# 保存字典为pickle文件\n",
|
| 690 |
+
"pickle_path = 'embeddings/ChemBERTa2_emb384.pickle'\n",
|
| 691 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 692 |
+
" pickle.dump(chemberta2_features_dict, pickle_file)\n",
|
| 693 |
+
"\n",
|
| 694 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 695 |
+
]
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"cell_type": "markdown",
|
| 699 |
+
"metadata": {},
|
| 700 |
+
"source": [
|
| 701 |
+
"# Generate MolT5 embedding for all smiles"
|
| 702 |
+
]
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"cell_type": "code",
|
| 706 |
+
"execution_count": 11,
|
| 707 |
+
"metadata": {},
|
| 708 |
+
"outputs": [
|
| 709 |
+
{
|
| 710 |
+
"name": "stdout",
|
| 711 |
+
"output_type": "stream",
|
| 712 |
+
"text": [
|
| 713 |
+
"torch.Size([1, 768])\n"
|
| 714 |
+
]
|
| 715 |
+
}
|
| 716 |
+
],
|
| 717 |
+
"source": [
|
| 718 |
+
"from transformers import T5ForConditionalGeneration, AutoTokenizer\n",
|
| 719 |
+
"model = T5ForConditionalGeneration.from_pretrained(\"laituan245/molt5-base\")\n",
|
| 720 |
+
"tokenizer = AutoTokenizer.from_pretrained(\"laituan245/molt5-base\")\n",
|
| 721 |
+
"inputs = tokenizer(\"CCO\", return_tensors=\"pt\")\n",
|
| 722 |
+
"embeddings = model.encoder(**inputs).last_hidden_state.mean(dim=1) # 平均池化\n",
|
| 723 |
+
"print(embeddings.shape)"
|
| 724 |
+
]
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"cell_type": "code",
|
| 728 |
+
"execution_count": 12,
|
| 729 |
+
"metadata": {},
|
| 730 |
+
"outputs": [
|
| 731 |
+
{
|
| 732 |
+
"name": "stdout",
|
| 733 |
+
"output_type": "stream",
|
| 734 |
+
"text": [
|
| 735 |
+
"MolT5-base 可训练参数量: 247.6 M\n"
|
| 736 |
+
]
|
| 737 |
+
}
|
| 738 |
+
],
|
| 739 |
+
"source": [
|
| 740 |
+
"trainable = sum(p.numel() for p in model.parameters() if p.requires_grad)\n",
|
| 741 |
+
"print(f'MolT5-base 可训练参数量: {trainable/1e6:.1f} M')"
|
| 742 |
+
]
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"cell_type": "code",
|
| 746 |
+
"execution_count": 10,
|
| 747 |
+
"metadata": {},
|
| 748 |
+
"outputs": [
|
| 749 |
+
{
|
| 750 |
+
"name": "stdout",
|
| 751 |
+
"output_type": "stream",
|
| 752 |
+
"text": [
|
| 753 |
+
"已缓存权重磁盘占用:3784.1 MB\n"
|
| 754 |
+
]
|
| 755 |
+
}
|
| 756 |
+
],
|
| 757 |
+
"source": [
|
| 758 |
+
"# molt5_disk_usage.py\n",
|
| 759 |
+
"from transformers import AutoModel, AutoTokenizer\n",
|
| 760 |
+
"import os, pathlib\n",
|
| 761 |
+
"\n",
|
| 762 |
+
"repo_id = \"laituan245/molt5-base\"\n",
|
| 763 |
+
"\n",
|
| 764 |
+
"# 让 transformers 只走本地缓存,不会触发下载\n",
|
| 765 |
+
"model = AutoModel.from_pretrained(repo_id, local_files_only=True)\n",
|
| 766 |
+
"tokenizer = AutoTokenizer.from_pretrained(repo_id, local_files_only=True)\n",
|
| 767 |
+
"\n",
|
| 768 |
+
"# 找到缓存目录\n",
|
| 769 |
+
"cache_root = pathlib.Path.home() / \".cache/huggingface/hub\"\n",
|
| 770 |
+
"# 仓库目录名格式:models--{user}--{repo}\n",
|
| 771 |
+
"repo_dir = cache_root / f\"models--{repo_id.replace('/', '--')}\"\n",
|
| 772 |
+
"\n",
|
| 773 |
+
"disk_bytes = sum(f.stat().st_size for f in repo_dir.rglob(\"*\") if f.is_file())\n",
|
| 774 |
+
"disk_mb = disk_bytes / 1024 ** 2\n",
|
| 775 |
+
"\n",
|
| 776 |
+
"print(f\"已缓存权重磁盘占用:{disk_mb:.1f} MB\")"
|
| 777 |
+
]
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"cell_type": "code",
|
| 781 |
+
"execution_count": 11,
|
| 782 |
+
"metadata": {},
|
| 783 |
+
"outputs": [
|
| 784 |
+
{
|
| 785 |
+
"name": "stderr",
|
| 786 |
+
"output_type": "stream",
|
| 787 |
+
"text": [
|
| 788 |
+
"100%|██████████| 130/130 [00:09<00:00, 13.90it/s]"
|
| 789 |
+
]
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"name": "stdout",
|
| 793 |
+
"output_type": "stream",
|
| 794 |
+
"text": [
|
| 795 |
+
"总分子数 : 8316\n",
|
| 796 |
+
"总耗时 : 11.55 s\n",
|
| 797 |
+
"平均推理 : 1.39 ms / molecule\n"
|
| 798 |
+
]
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"name": "stderr",
|
| 802 |
+
"output_type": "stream",
|
| 803 |
+
"text": [
|
| 804 |
+
"\n"
|
| 805 |
+
]
|
| 806 |
+
}
|
| 807 |
+
],
|
| 808 |
+
"source": [
|
| 809 |
+
"import pickle\n",
|
| 810 |
+
"from transformers import T5ForConditionalGeneration, AutoTokenizer\n",
|
| 811 |
+
"import torch\n",
|
| 812 |
+
"import numpy as np\n",
|
| 813 |
+
"from rdkit import Chem\n",
|
| 814 |
+
"from tqdm import tqdm\n",
|
| 815 |
+
"\n",
|
| 816 |
+
"def smiles_to_molt5(smiles_list, model_name=\"laituan245/molt5-base\", batch_size=32, pooling=\"mean\"):\n",
|
| 817 |
+
" \"\"\"\n",
|
| 818 |
+
" 使用 MolT5 生成 SMILES 的嵌入向量(基于 encoder 的隐藏状态)\n",
|
| 819 |
+
" \n",
|
| 820 |
+
" 参数:\n",
|
| 821 |
+
" smiles_list (list): SMILES 字符串列表\n",
|
| 822 |
+
" model_name (str): Hugging Face 模型 ID,默认为 MolT5-base\n",
|
| 823 |
+
" batch_size (int): 批处理大小,根据 GPU 内存调整\n",
|
| 824 |
+
" pooling (str): 池化方法,可选 \"mean\"(平均池化)或 \"cls\"(取 CLS token)\n",
|
| 825 |
+
" \n",
|
| 826 |
+
" 返回:\n",
|
| 827 |
+
" dict: 键为 SMILES,值为嵌入向量(numpy 数组)\n",
|
| 828 |
+
" \"\"\"\n",
|
| 829 |
+
" # 加载 MolT5 的 tokenizer 和模型\n",
|
| 830 |
+
" model = T5ForConditionalGeneration.from_pretrained(model_name)\n",
|
| 831 |
+
" tokenizer = AutoTokenizer.from_pretrained(model_name)\n",
|
| 832 |
+
" model.eval()\n",
|
| 833 |
+
" \n",
|
| 834 |
+
" # 设备设置\n",
|
| 835 |
+
" device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 836 |
+
" model.to(device)\n",
|
| 837 |
+
" \n",
|
| 838 |
+
" molt5_dict = {}\n",
|
| 839 |
+
" \n",
|
| 840 |
+
" # 分批处理\n",
|
| 841 |
+
" for i in tqdm(range(0, len(smiles_list), batch_size)):\n",
|
| 842 |
+
" batch_smiles = smiles_list[i:i+batch_size]\n",
|
| 843 |
+
" valid_indices = []\n",
|
| 844 |
+
" batch_inputs = []\n",
|
| 845 |
+
" \n",
|
| 846 |
+
" # 过滤无效 SMILES\n",
|
| 847 |
+
" for idx, smiles in enumerate(batch_smiles):\n",
|
| 848 |
+
" mol = Chem.MolFromSmiles(smiles)\n",
|
| 849 |
+
" if mol is not None:\n",
|
| 850 |
+
" valid_indices.append(idx)\n",
|
| 851 |
+
" batch_inputs.append(smiles)\n",
|
| 852 |
+
" else:\n",
|
| 853 |
+
" print(f\"Invalid SMILES: {smiles}\")\n",
|
| 854 |
+
" molt5_dict[smiles] = np.zeros(model.config.d_model, dtype=np.float32) # 填充零向量\n",
|
| 855 |
+
" \n",
|
| 856 |
+
" if not batch_inputs:\n",
|
| 857 |
+
" continue\n",
|
| 858 |
+
" \n",
|
| 859 |
+
" # Tokenize 并生成嵌入\n",
|
| 860 |
+
" inputs = tokenizer(\n",
|
| 861 |
+
" batch_inputs,\n",
|
| 862 |
+
" return_tensors=\"pt\",\n",
|
| 863 |
+
" padding=True,\n",
|
| 864 |
+
" truncation=True,\n",
|
| 865 |
+
" max_length=512\n",
|
| 866 |
+
" ).to(device)\n",
|
| 867 |
+
" \n",
|
| 868 |
+
" with torch.no_grad():\n",
|
| 869 |
+
" # 获取 encoder 的隐藏状态(形状: [batch_size, seq_len, hidden_dim])\n",
|
| 870 |
+
" encoder_outputs = model.encoder(**inputs)\n",
|
| 871 |
+
" hidden_states = encoder_outputs.last_hidden_state\n",
|
| 872 |
+
" \n",
|
| 873 |
+
" # 池化策略\n",
|
| 874 |
+
" if pooling == \"mean\":\n",
|
| 875 |
+
" embeddings = hidden_states.mean(dim=1) # 平均池化\n",
|
| 876 |
+
" elif pooling == \"cls\":\n",
|
| 877 |
+
" embeddings = hidden_states[:, 0, :] # CLS token\n",
|
| 878 |
+
" else:\n",
|
| 879 |
+
" raise ValueError(\"pooling 必须是 'mean' 或 'cls'\")\n",
|
| 880 |
+
" \n",
|
| 881 |
+
" # 存储结果\n",
|
| 882 |
+
" for j, idx in enumerate(valid_indices):\n",
|
| 883 |
+
" molt5_dict[batch_smiles[idx]] = embeddings[j].cpu().numpy()\n",
|
| 884 |
+
" \n",
|
| 885 |
+
" return molt5_dict\n",
|
| 886 |
+
"\n",
|
| 887 |
+
"\n",
|
| 888 |
+
"import time\n",
|
| 889 |
+
"# ----- 计时开始 -----\n",
|
| 890 |
+
"smiles_list = list(idx2smi.values()) # 假设 idx2smi 是 SMILES 字典\n",
|
| 891 |
+
"\n",
|
| 892 |
+
"t0 = time.perf_counter()\n",
|
| 893 |
+
"molt5_embeddings = smiles_to_molt5(smiles_list, batch_size=64, pooling=\"mean\")\n",
|
| 894 |
+
"\n",
|
| 895 |
+
"t1 = time.perf_counter()\n",
|
| 896 |
+
"# ----- 计时结束 -----\n",
|
| 897 |
+
"\n",
|
| 898 |
+
"# 基本统计\n",
|
| 899 |
+
"total_mols = len(molt5_embeddings)\n",
|
| 900 |
+
"avg_time_ms = (t1 - t0) / total_mols * 1000\n",
|
| 901 |
+
"\n",
|
| 902 |
+
"print(f\"总分子数 : {total_mols}\")\n",
|
| 903 |
+
"print(f\"总耗时 : {t1 - t0:.2f} s\")\n",
|
| 904 |
+
"print(f\"平均推理 : {avg_time_ms:.2f} ms / molecule\")\n"
|
| 905 |
+
]
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"cell_type": "code",
|
| 909 |
+
"execution_count": 7,
|
| 910 |
+
"metadata": {},
|
| 911 |
+
"outputs": [
|
| 912 |
+
{
|
| 913 |
+
"name": "stdout",
|
| 914 |
+
"output_type": "stream",
|
| 915 |
+
"text": [
|
| 916 |
+
"8316 768\n"
|
| 917 |
+
]
|
| 918 |
+
}
|
| 919 |
+
],
|
| 920 |
+
"source": [
|
| 921 |
+
"print(len(molt5_embeddings), len(molt5_embeddings['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 922 |
+
]
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"cell_type": "code",
|
| 926 |
+
"execution_count": null,
|
| 927 |
+
"metadata": {},
|
| 928 |
+
"outputs": [],
|
| 929 |
+
"source": [
|
| 930 |
+
"molt5_embeddings['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']"
|
| 931 |
+
]
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"cell_type": "code",
|
| 935 |
+
"execution_count": 8,
|
| 936 |
+
"metadata": {},
|
| 937 |
+
"outputs": [
|
| 938 |
+
{
|
| 939 |
+
"name": "stdout",
|
| 940 |
+
"output_type": "stream",
|
| 941 |
+
"text": [
|
| 942 |
+
"字典已成功保存到 embeddings/molt5_emb768.pickle\n"
|
| 943 |
+
]
|
| 944 |
+
}
|
| 945 |
+
],
|
| 946 |
+
"source": [
|
| 947 |
+
"# 保存字典为pickle文件\n",
|
| 948 |
+
"pickle_path = 'embeddings/molt5_emb768.pickle'\n",
|
| 949 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 950 |
+
" pickle.dump(molt5_embeddings, pickle_file)\n",
|
| 951 |
+
"\n",
|
| 952 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 953 |
+
]
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"cell_type": "markdown",
|
| 957 |
+
"metadata": {},
|
| 958 |
+
"source": [
|
| 959 |
+
"# Generate Chemprop embedding for all smiles"
|
| 960 |
+
]
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"cell_type": "code",
|
| 964 |
+
"execution_count": null,
|
| 965 |
+
"metadata": {},
|
| 966 |
+
"outputs": [],
|
| 967 |
+
"source": [
|
| 968 |
+
"# git clone https://github.com/chemprop/chemprop.git\n",
|
| 969 |
+
"# https://chemprop.readthedocs.io/en/main/installation.html\n",
|
| 970 |
+
"# https://chemprop.readthedocs.io/en/main/tutorial/cli/fingerprint.html#fingerprint \n",
|
| 971 |
+
"\n",
|
| 972 |
+
"# chemprop fingerprint --test-path ./embeddings/LINCS2020_smiles.csv --model-path chemprop/tests/data/example_model_v2_regression_mol.ckpt --output embeddings/fps.csv --ffn-block-index -2"
|
| 973 |
+
]
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"cell_type": "code",
|
| 977 |
+
"execution_count": 14,
|
| 978 |
+
"metadata": {},
|
| 979 |
+
"outputs": [
|
| 980 |
+
{
|
| 981 |
+
"name": "stdout",
|
| 982 |
+
"output_type": "stream",
|
| 983 |
+
"text": [
|
| 984 |
+
"预训练权重总参数量: 319,505\n",
|
| 985 |
+
"0.3 M\n"
|
| 986 |
+
]
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"name": "stderr",
|
| 990 |
+
"output_type": "stream",
|
| 991 |
+
"text": [
|
| 992 |
+
"/tmp/ipykernel_1948954/3140832406.py:3: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 993 |
+
" ckpt = torch.load('/home/bob/boom/VCBench/Molecule_encoder/chemprop/tests/data/example_model_v2_regression_mol.ckpt',\n"
|
| 994 |
+
]
|
| 995 |
+
}
|
| 996 |
+
],
|
| 997 |
+
"source": [
|
| 998 |
+
"import torch\n",
|
| 999 |
+
"\n",
|
| 1000 |
+
"ckpt = torch.load('/home/bob/boom/VCBench/Molecule_encoder/chemprop/tests/data/example_model_v2_regression_mol.ckpt',\n",
|
| 1001 |
+
" map_location='cpu')\n",
|
| 1002 |
+
"\n",
|
| 1003 |
+
"# 取出模型参数部分\n",
|
| 1004 |
+
"model_state = ckpt['state_dict']\n",
|
| 1005 |
+
"\n",
|
| 1006 |
+
"total = sum(v.numel() for v in model_state.values() if isinstance(v, torch.Tensor))\n",
|
| 1007 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1008 |
+
"print(f'{total/1e6:.1f} M')"
|
| 1009 |
+
]
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"cell_type": "code",
|
| 1013 |
+
"execution_count": 14,
|
| 1014 |
+
"metadata": {},
|
| 1015 |
+
"outputs": [
|
| 1016 |
+
{
|
| 1017 |
+
"data": {
|
| 1018 |
+
"text/plain": [
|
| 1019 |
+
"8316"
|
| 1020 |
+
]
|
| 1021 |
+
},
|
| 1022 |
+
"execution_count": 14,
|
| 1023 |
+
"metadata": {},
|
| 1024 |
+
"output_type": "execute_result"
|
| 1025 |
+
}
|
| 1026 |
+
],
|
| 1027 |
+
"source": [
|
| 1028 |
+
"import csv\n",
|
| 1029 |
+
"import numpy as np\n",
|
| 1030 |
+
"\n",
|
| 1031 |
+
"# CSV文件路径\n",
|
| 1032 |
+
"csv1_path = 'infoalign_model/LINCS2020_smiles.csv'\n",
|
| 1033 |
+
"csv2_path = 'embeddings/fps_0.csv'\n",
|
| 1034 |
+
"\n",
|
| 1035 |
+
"# 初始化一个空字典来存储SMILES和对应的表征\n",
|
| 1036 |
+
"smiles_to_representation = {}\n",
|
| 1037 |
+
"\n",
|
| 1038 |
+
"# 读取第一个CSV文件(SMILES信息)\n",
|
| 1039 |
+
"smiles_list = []\n",
|
| 1040 |
+
"with open(csv1_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 1041 |
+
" reader = csv.DictReader(csvfile)\n",
|
| 1042 |
+
" for row in reader:\n",
|
| 1043 |
+
" smiles = row['SMILES'] # 假设CSV文件中列名为'SMILES'\n",
|
| 1044 |
+
" smiles_list.append(smiles)\n",
|
| 1045 |
+
"\n",
|
| 1046 |
+
"# 读取第二个CSV文件(表征信息),跳过第一行\n",
|
| 1047 |
+
"representation_list = []\n",
|
| 1048 |
+
"with open(csv2_path, mode='r', newline='', encoding='utf-8') as csvfile:\n",
|
| 1049 |
+
" reader = csv.reader(csvfile)\n",
|
| 1050 |
+
" next(reader) # 跳过第一行\n",
|
| 1051 |
+
" for row in reader:\n",
|
| 1052 |
+
" # 将字符串转换为浮点数\n",
|
| 1053 |
+
" representation = [np.float32(x) for x in row] # 假设表征信息是整行数据\n",
|
| 1054 |
+
" representation_list.append(representation)\n",
|
| 1055 |
+
"\n",
|
| 1056 |
+
"# 将列表转换为numpy数组\n",
|
| 1057 |
+
"representation_array = np.array(representation_list)\n",
|
| 1058 |
+
"\n",
|
| 1059 |
+
"# 将SMILES和对应的表征合并到字典中\n",
|
| 1060 |
+
"for smiles, representation in zip(smiles_list, representation_array):\n",
|
| 1061 |
+
" smiles_to_representation[smiles] = representation\n",
|
| 1062 |
+
"\n",
|
| 1063 |
+
"len(smiles_to_representation)"
|
| 1064 |
+
]
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"cell_type": "code",
|
| 1068 |
+
"execution_count": 15,
|
| 1069 |
+
"metadata": {},
|
| 1070 |
+
"outputs": [
|
| 1071 |
+
{
|
| 1072 |
+
"name": "stdout",
|
| 1073 |
+
"output_type": "stream",
|
| 1074 |
+
"text": [
|
| 1075 |
+
"300 <class 'numpy.ndarray'>\n"
|
| 1076 |
+
]
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"data": {
|
| 1080 |
+
"text/plain": [
|
| 1081 |
+
"dtype('float32')"
|
| 1082 |
+
]
|
| 1083 |
+
},
|
| 1084 |
+
"execution_count": 15,
|
| 1085 |
+
"metadata": {},
|
| 1086 |
+
"output_type": "execute_result"
|
| 1087 |
+
}
|
| 1088 |
+
],
|
| 1089 |
+
"source": [
|
| 1090 |
+
"print(len(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']), type(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))\n",
|
| 1091 |
+
"\n",
|
| 1092 |
+
"smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br'].dtype"
|
| 1093 |
+
]
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"cell_type": "code",
|
| 1097 |
+
"execution_count": 16,
|
| 1098 |
+
"metadata": {},
|
| 1099 |
+
"outputs": [
|
| 1100 |
+
{
|
| 1101 |
+
"name": "stdout",
|
| 1102 |
+
"output_type": "stream",
|
| 1103 |
+
"text": [
|
| 1104 |
+
"300\n",
|
| 1105 |
+
"字典已成功保存到 embeddings/Chemprop_emb300.pickle\n"
|
| 1106 |
+
]
|
| 1107 |
+
}
|
| 1108 |
+
],
|
| 1109 |
+
"source": [
|
| 1110 |
+
"print(len(smiles_to_representation['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))\n",
|
| 1111 |
+
"\n",
|
| 1112 |
+
"import pickle\n",
|
| 1113 |
+
"# 保存字典为pickle文件\n",
|
| 1114 |
+
"pickle_path = 'embeddings/Chemprop_emb300.pickle'\n",
|
| 1115 |
+
"with open(pickle_path, 'wb') as pickle_file:\n",
|
| 1116 |
+
" pickle.dump(smiles_to_representation, pickle_file)\n",
|
| 1117 |
+
"\n",
|
| 1118 |
+
"print(f\"字典已成功保存到 {pickle_path}\")"
|
| 1119 |
+
]
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"cell_type": "markdown",
|
| 1123 |
+
"metadata": {},
|
| 1124 |
+
"source": [
|
| 1125 |
+
"# Generate MolCLR embedding for all smiles\n",
|
| 1126 |
+
"\n",
|
| 1127 |
+
"## see /home/bob/boom/DrugIM/TranSiGen/data/MolCLR/Get_emd.ipynb\n",
|
| 1128 |
+
"\n",
|
| 1129 |
+
"### We use GIN model, which has a better performance in their paper"
|
| 1130 |
+
]
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"cell_type": "code",
|
| 1134 |
+
"execution_count": 15,
|
| 1135 |
+
"metadata": {},
|
| 1136 |
+
"outputs": [
|
| 1137 |
+
{
|
| 1138 |
+
"name": "stdout",
|
| 1139 |
+
"output_type": "stream",
|
| 1140 |
+
"text": [
|
| 1141 |
+
"预训练权重总参数量: 2,407,201\n",
|
| 1142 |
+
"2.4 M\n"
|
| 1143 |
+
]
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"name": "stderr",
|
| 1147 |
+
"output_type": "stream",
|
| 1148 |
+
"text": [
|
| 1149 |
+
"/tmp/ipykernel_1948954/3871607093.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 1150 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/MolCLR/ckpt/pretrained_gin/checkpoints/model.pth', map_location='cpu')\n"
|
| 1151 |
+
]
|
| 1152 |
+
}
|
| 1153 |
+
],
|
| 1154 |
+
"source": [
|
| 1155 |
+
"import torch\n",
|
| 1156 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/MolCLR/ckpt/pretrained_gin/checkpoints/model.pth', map_location='cpu')\n",
|
| 1157 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 1158 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1159 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 1160 |
+
]
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"cell_type": "markdown",
|
| 1164 |
+
"metadata": {},
|
| 1165 |
+
"source": []
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"cell_type": "markdown",
|
| 1169 |
+
"metadata": {},
|
| 1170 |
+
"source": [
|
| 1171 |
+
"# Generate Mole-BERT embedding for all smiles\n",
|
| 1172 |
+
"\n",
|
| 1173 |
+
"## see /home/bob/boom/DrugIM/TranSiGen/data/Mole-BERT/Get_emd.ipynb\n",
|
| 1174 |
+
"\n",
|
| 1175 |
+
"### We use GNN_graphpred model, which has a better performance in their paper"
|
| 1176 |
+
]
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"cell_type": "code",
|
| 1180 |
+
"execution_count": 16,
|
| 1181 |
+
"metadata": {},
|
| 1182 |
+
"outputs": [
|
| 1183 |
+
{
|
| 1184 |
+
"name": "stdout",
|
| 1185 |
+
"output_type": "stream",
|
| 1186 |
+
"text": [
|
| 1187 |
+
"预训练权重总参数量: 1,860,905\n",
|
| 1188 |
+
"1.9 M\n"
|
| 1189 |
+
]
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"name": "stderr",
|
| 1193 |
+
"output_type": "stream",
|
| 1194 |
+
"text": [
|
| 1195 |
+
"/tmp/ipykernel_1948954/2103728332.py:2: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 1196 |
+
" state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/Mole-BERT/model_gin/Mole-BERT.pth', map_location='cpu')\n"
|
| 1197 |
+
]
|
| 1198 |
+
}
|
| 1199 |
+
],
|
| 1200 |
+
"source": [
|
| 1201 |
+
"import torch\n",
|
| 1202 |
+
"state_dict = torch.load('/home/bob/boom/VCBench/Molecule_encoder/Mole-BERT/model_gin/Mole-BERT.pth', map_location='cpu')\n",
|
| 1203 |
+
"total = sum(v.numel() for v in state_dict.values())\n",
|
| 1204 |
+
"print(f'预训练权重总参数量: {total:,}')\n",
|
| 1205 |
+
"print(f'{total/1e6:.1f} M') # → 21.2 M"
|
| 1206 |
+
]
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"cell_type": "code",
|
| 1210 |
+
"execution_count": null,
|
| 1211 |
+
"metadata": {},
|
| 1212 |
+
"outputs": [],
|
| 1213 |
+
"source": []
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"cell_type": "markdown",
|
| 1217 |
+
"metadata": {},
|
| 1218 |
+
"source": [
|
| 1219 |
+
"# 3D UniMol"
|
| 1220 |
+
]
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"cell_type": "code",
|
| 1224 |
+
"execution_count": 1,
|
| 1225 |
+
"metadata": {},
|
| 1226 |
+
"outputs": [
|
| 1227 |
+
{
|
| 1228 |
+
"data": {
|
| 1229 |
+
"text/plain": [
|
| 1230 |
+
"8316"
|
| 1231 |
+
]
|
| 1232 |
+
},
|
| 1233 |
+
"execution_count": 1,
|
| 1234 |
+
"metadata": {},
|
| 1235 |
+
"output_type": "execute_result"
|
| 1236 |
+
}
|
| 1237 |
+
],
|
| 1238 |
+
"source": [
|
| 1239 |
+
"import pickle, h5py\n",
|
| 1240 |
+
"import numpy as np\n",
|
| 1241 |
+
"import pandas as pd\n",
|
| 1242 |
+
"\n",
|
| 1243 |
+
"with open('./LINCS2020/idx2smi.pickle', 'rb') as f:\n",
|
| 1244 |
+
" idx2smi = pickle.load(f)\\\n",
|
| 1245 |
+
"\n",
|
| 1246 |
+
"unique_smiles = list(idx2smi.values()) # 假设idx2smi是一个字典,其值为SMILES字符串\n",
|
| 1247 |
+
"len(unique_smiles)"
|
| 1248 |
+
]
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"cell_type": "code",
|
| 1252 |
+
"execution_count": null,
|
| 1253 |
+
"metadata": {},
|
| 1254 |
+
"outputs": [
|
| 1255 |
+
{
|
| 1256 |
+
"name": "stderr",
|
| 1257 |
+
"output_type": "stream",
|
| 1258 |
+
"text": [
|
| 1259 |
+
"2025-09-15 11:17:31 | unimol_tools/models/unimolv2.py | 161 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/modelzoo/310M/checkpoint.pt\n"
|
| 1260 |
+
]
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"name": "stdout",
|
| 1264 |
+
"output_type": "stream",
|
| 1265 |
+
"text": [
|
| 1266 |
+
"开始生成32个SMILES的嵌入表示...\n",
|
| 1267 |
+
"开始\n"
|
| 1268 |
+
]
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"name": "stderr",
|
| 1272 |
+
"output_type": "stream",
|
| 1273 |
+
"text": [
|
| 1274 |
+
"处理批次: 0%| | 0/1 [00:00<?, ?it/s]2025-09-15 11:17:32 | unimol_tools/data/conformer.py | 437 | INFO | Uni-Mol Tools | Start generating conformers...\n",
|
| 1275 |
+
"32it [00:00, 82.76it/s]\n",
|
| 1276 |
+
"2025-09-15 11:17:33 | unimol_tools/data/conformer.py | 452 | INFO | Uni-Mol Tools | Succeeded in generating conformers for 100.00% of molecules.\n",
|
| 1277 |
+
"2025-09-15 11:17:33 | unimol_tools/data/conformer.py | 469 | INFO | Uni-Mol Tools | Succeeded in generating 3d conformers for 100.00% of molecules.\n",
|
| 1278 |
+
"2025-09-15 11:17:33 | unimol_tools/tasks/trainer.py | 78 | INFO | Uni-Mol Tools | Number of GPUs available: 1\n",
|
| 1279 |
+
"2025-09-15 11:17:33 | unimol_tools/tasks/trainer.py | 98 | INFO | Uni-Mol Tools | Using single GPU.\n",
|
| 1280 |
+
"100%|██████████| 1/1 [00:00<00:00, 2.32it/s]\n",
|
| 1281 |
+
"处理批次: 100%|██████████| 1/1 [00:01<00:00, 1.25s/it]"
|
| 1282 |
+
]
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"name": "stdout",
|
| 1286 |
+
"output_type": "stream",
|
| 1287 |
+
"text": [
|
| 1288 |
+
"嵌入生成完成!共处理 32 个SMILES,32 个成功,0 个失败。\n",
|
| 1289 |
+
"嵌入结果已保存至 embeddings/UniMolV2_emb1024.pkl\n",
|
| 1290 |
+
"总分子数 : 32\n",
|
| 1291 |
+
"总耗时 : 3.50 s\n",
|
| 1292 |
+
"平均推理 : 109.37 ms / molecule\n"
|
| 1293 |
+
]
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"name": "stderr",
|
| 1297 |
+
"output_type": "stream",
|
| 1298 |
+
"text": [
|
| 1299 |
+
"\n"
|
| 1300 |
+
]
|
| 1301 |
+
}
|
| 1302 |
+
],
|
| 1303 |
+
"source": [
|
| 1304 |
+
"import os\n",
|
| 1305 |
+
"import pickle\n",
|
| 1306 |
+
"import numpy as np\n",
|
| 1307 |
+
"from tqdm import tqdm\n",
|
| 1308 |
+
"from unimol_tools import UniMolRepr\n",
|
| 1309 |
+
"import os, sys, contextlib\n",
|
| 1310 |
+
"\n",
|
| 1311 |
+
"@contextlib.contextmanager\n",
|
| 1312 |
+
"def suppress_stdout_stderr():\n",
|
| 1313 |
+
" \"\"\"with 块内所有 print / tqdm / warning 都不会显示\"\"\"\n",
|
| 1314 |
+
" with open(os.devnull, 'w') as devnull:\n",
|
| 1315 |
+
" old_out, old_err = sys.stdout, sys.stderr\n",
|
| 1316 |
+
" sys.stdout, sys.stderr = devnull, devnull\n",
|
| 1317 |
+
" try:\n",
|
| 1318 |
+
" yield\n",
|
| 1319 |
+
" finally:\n",
|
| 1320 |
+
" sys.stdout, sys.stderr = old_out, old_err\n",
|
| 1321 |
+
"\n",
|
| 1322 |
+
"def get_unimol_embeddings(smiles_list, output_file=\"UniMol_emb512.pkl\", \n",
|
| 1323 |
+
" model_name='unimolv1', model_size='84m', \n",
|
| 1324 |
+
" remove_hs=False, batch_size=32):\n",
|
| 1325 |
+
" \"\"\"\n",
|
| 1326 |
+
" 使用Uni-Mol模型为SMILES列表生成分子嵌入,并保存为pickle文件\n",
|
| 1327 |
+
" \n",
|
| 1328 |
+
" 参数:\n",
|
| 1329 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 1330 |
+
" output_file (str): 输出pickle文件路径\n",
|
| 1331 |
+
" model_name (str): 模型名称,可选'unimolv1'或'unimolv2'\n",
|
| 1332 |
+
" model_size (str): 模型大小,仅在使用unimolv2时有效\n",
|
| 1333 |
+
" remove_hs (bool): 是否移除氢原子\n",
|
| 1334 |
+
" batch_size (int): 批处理大小\n",
|
| 1335 |
+
" \n",
|
| 1336 |
+
" 返回:\n",
|
| 1337 |
+
" dict: 包含SMILES及其对应嵌入的字典\n",
|
| 1338 |
+
" \"\"\"\n",
|
| 1339 |
+
" # 初始化模型\n",
|
| 1340 |
+
" clf = UniMolRepr(\n",
|
| 1341 |
+
" data_type='molecule',\n",
|
| 1342 |
+
" remove_hs=remove_hs,\n",
|
| 1343 |
+
" model_name=model_name,\n",
|
| 1344 |
+
" model_size=model_size\n",
|
| 1345 |
+
" )\n",
|
| 1346 |
+
" \n",
|
| 1347 |
+
" # 用于存储结果的字典\n",
|
| 1348 |
+
" embeddings_dict = {}\n",
|
| 1349 |
+
" error_smiles = []\n",
|
| 1350 |
+
" \n",
|
| 1351 |
+
" # 批处理SMILES\n",
|
| 1352 |
+
" total_batches = (len(smiles_list) + batch_size - 1) // batch_size\n",
|
| 1353 |
+
" \n",
|
| 1354 |
+
" print(f\"开始生成{len(smiles_list)}个SMILES的嵌入表示...\")\n",
|
| 1355 |
+
" \n",
|
| 1356 |
+
" print(\"开始\")\n",
|
| 1357 |
+
" # with suppress_stdout_stderr():\n",
|
| 1358 |
+
" for i in tqdm(range(total_batches), desc=\"处理批次\"):\n",
|
| 1359 |
+
" batch = smiles_list[i*batch_size : (i+1)*batch_size]\n",
|
| 1360 |
+
" \n",
|
| 1361 |
+
" try:\n",
|
| 1362 |
+
" # 获取嵌入表示\n",
|
| 1363 |
+
" batch_repr = clf.get_repr(batch, return_atomic_reprs=False)\n",
|
| 1364 |
+
" \n",
|
| 1365 |
+
" # 将结果存入字典 (使用CLS token作为分子表示)\n",
|
| 1366 |
+
" for idx, smiles in enumerate(batch):\n",
|
| 1367 |
+
" embeddings_dict[smiles] = batch_repr['cls_repr'][idx]\n",
|
| 1368 |
+
" \n",
|
| 1369 |
+
" except Exception as e:\n",
|
| 1370 |
+
" print(f\"处理批次 {i+1}/{total_batches} 时发生错误: {str(e)}\")\n",
|
| 1371 |
+
" # 记录处理失败的SMILES\n",
|
| 1372 |
+
" error_smiles.extend(batch)\n",
|
| 1373 |
+
" \n",
|
| 1374 |
+
" # 保存嵌入结果\n",
|
| 1375 |
+
" with open(output_file, 'wb') as f:\n",
|
| 1376 |
+
" pickle.dump(embeddings_dict, f)\n",
|
| 1377 |
+
" \n",
|
| 1378 |
+
" print(f\"嵌入生成完成!共处理 {len(smiles_list)} 个SMILES,\"\n",
|
| 1379 |
+
" f\"{len(smiles_list) - len(error_smiles)} 个成功,\"\n",
|
| 1380 |
+
" f\"{len(error_smiles)} 个失败。\")\n",
|
| 1381 |
+
" print(f\"嵌入结果已保存至 {output_file}\")\n",
|
| 1382 |
+
" \n",
|
| 1383 |
+
" if error_smiles:\n",
|
| 1384 |
+
" print(f\"处理失败的SMILES已记录。\")\n",
|
| 1385 |
+
" \n",
|
| 1386 |
+
" return embeddings_dict\n",
|
| 1387 |
+
"\n",
|
| 1388 |
+
"# 使用示例\n",
|
| 1389 |
+
"if __name__ == \"__main__\":\n",
|
| 1390 |
+
" \n",
|
| 1391 |
+
" # 假设unique_smiles是你的SMILES列表\n",
|
| 1392 |
+
" unique_smiles = [\n",
|
| 1393 |
+
" \"CC(=O)OC1=CC=CC=C1C(=O)O\", # Aspirin\n",
|
| 1394 |
+
" \"CN1C=NC2=C1C(=O)N(C(=O)N2C)C\" # Caffeine\n",
|
| 1395 |
+
" ] # 示例SMILES列表\n",
|
| 1396 |
+
" unique_smiles = pd.read_csv('./LINCS2020/LINCS2020_smiles.csv')['SMILES'].tolist()\n",
|
| 1397 |
+
"\n",
|
| 1398 |
+
" # UniMol V1\n",
|
| 1399 |
+
" # embeddings = get_unimol_embeddings(\n",
|
| 1400 |
+
" # smiles_list=unique_smiles,\n",
|
| 1401 |
+
" # output_file=\"embeddings/UniMol_emb512.pkl\",\n",
|
| 1402 |
+
" # model_name='unimolv1',\n",
|
| 1403 |
+
" # model_size='84m',\n",
|
| 1404 |
+
" # remove_hs=False,\n",
|
| 1405 |
+
" # batch_size=32\n",
|
| 1406 |
+
" # )\n",
|
| 1407 |
+
" \n",
|
| 1408 |
+
" # UniMol V2\n",
|
| 1409 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1410 |
+
" smiles_list=unique_smiles,\n",
|
| 1411 |
+
" output_file=\"embeddings/UniMolV2_emb1024.pkl\", # save path\n",
|
| 1412 |
+
" model_name='unimolv2', # 修改为 v2 版本\n",
|
| 1413 |
+
" model_size='310m', # 指定 v2 模型大小(根据需要选择)\n",
|
| 1414 |
+
" remove_hs=False,\n",
|
| 1415 |
+
" batch_size=32\n",
|
| 1416 |
+
" )\n",
|
| 1417 |
+
"\n",
|
| 1418 |
+
" # 打印样例嵌入\n",
|
| 1419 |
+
" sample_smiles = unique_smiles[0]\n",
|
| 1420 |
+
" print(f\"SMILES: {sample_smiles}\")\n",
|
| 1421 |
+
" print(f\"嵌入向量: {embeddings[sample_smiles]}\")\n",
|
| 1422 |
+
" print(f\"嵌入维度: {len(embeddings[sample_smiles])}\")\n",
|
| 1423 |
+
" "
|
| 1424 |
+
]
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"cell_type": "code",
|
| 1428 |
+
"execution_count": 18,
|
| 1429 |
+
"metadata": {},
|
| 1430 |
+
"outputs": [
|
| 1431 |
+
{
|
| 1432 |
+
"name": "stderr",
|
| 1433 |
+
"output_type": "stream",
|
| 1434 |
+
"text": [
|
| 1435 |
+
"2025-10-16 21:29:18 | unimol_tools/models/unimol.py | 136 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/mol_pre_all_h_220816.pt\n"
|
| 1436 |
+
]
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"name": "stdout",
|
| 1440 |
+
"output_type": "stream",
|
| 1441 |
+
"text": [
|
| 1442 |
+
"UniMol-unimolv1-84m 可训练参数量: 47.3 M\n"
|
| 1443 |
+
]
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"name": "stderr",
|
| 1447 |
+
"output_type": "stream",
|
| 1448 |
+
"text": [
|
| 1449 |
+
"2025-10-16 21:29:20 | unimol_tools/models/unimolv2.py | 161 | INFO | Uni-Mol Tools | Loading pretrained weights from /home/bob/anaconda3/envs/boom/lib/python3.11/site-packages/unimol_tools/weights/modelzoo/310M/checkpoint.pt\n"
|
| 1450 |
+
]
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"name": "stdout",
|
| 1454 |
+
"output_type": "stream",
|
| 1455 |
+
"text": [
|
| 1456 |
+
"UniMol-unimolv2-310m 可训练参数量: 308.9 M\n"
|
| 1457 |
+
]
|
| 1458 |
+
}
|
| 1459 |
+
],
|
| 1460 |
+
"source": [
|
| 1461 |
+
"import os\n",
|
| 1462 |
+
"import pickle\n",
|
| 1463 |
+
"import numpy as np\n",
|
| 1464 |
+
"from tqdm import tqdm\n",
|
| 1465 |
+
"from unimol_tools import UniMolRepr\n",
|
| 1466 |
+
"import os, sys, contextlib\n",
|
| 1467 |
+
"\n",
|
| 1468 |
+
"def get_unimol_embeddings(smiles_list, output_file=\"UniMol_emb512.pkl\", \n",
|
| 1469 |
+
" model_name='unimolv1', model_size='84m', \n",
|
| 1470 |
+
" remove_hs=False, batch_size=32):\n",
|
| 1471 |
+
" \"\"\"\n",
|
| 1472 |
+
" 使用Uni-Mol模型为SMILES列表生成分子嵌入,并保存为pickle文件\n",
|
| 1473 |
+
" \n",
|
| 1474 |
+
" 参数:\n",
|
| 1475 |
+
" smiles_list (list): SMILES字符串列表\n",
|
| 1476 |
+
" output_file (str): 输出pickle文件路径\n",
|
| 1477 |
+
" model_name (str): 模型名称,可选'unimolv1'或'unimolv2'\n",
|
| 1478 |
+
" model_size (str): 模型大小,仅在使用unimolv2时有效\n",
|
| 1479 |
+
" remove_hs (bool): 是否移除氢原子\n",
|
| 1480 |
+
" batch_size (int): 批处理大小\n",
|
| 1481 |
+
" \n",
|
| 1482 |
+
" 返回:\n",
|
| 1483 |
+
" dict: 包含SMILES及其对应嵌入的字典\n",
|
| 1484 |
+
" \"\"\"\n",
|
| 1485 |
+
" # 初始化模型\n",
|
| 1486 |
+
" # ===== 在 clf 初始化完成后立即统计 =====\n",
|
| 1487 |
+
" clf = UniMolRepr(\n",
|
| 1488 |
+
" data_type='molecule',\n",
|
| 1489 |
+
" remove_hs=remove_hs,\n",
|
| 1490 |
+
" model_name=model_name,\n",
|
| 1491 |
+
" model_size=model_size)\n",
|
| 1492 |
+
"\n",
|
| 1493 |
+
" # 取出真正的网络\n",
|
| 1494 |
+
" real_model = clf.model # <== 关键属性\n",
|
| 1495 |
+
"\n",
|
| 1496 |
+
" total = sum(p.numel() for p in real_model.parameters() if p.requires_grad)\n",
|
| 1497 |
+
" print(f'UniMol-{model_name}-{model_size} 可训练参数量: {total/1e6:.1f} M')\n",
|
| 1498 |
+
" \n",
|
| 1499 |
+
" \n",
|
| 1500 |
+
"# 使用示例\n",
|
| 1501 |
+
"if __name__ == \"__main__\":\n",
|
| 1502 |
+
" # 假设unique_smiles是你的SMILES列表\n",
|
| 1503 |
+
" # 生成并保存嵌入\n",
|
| 1504 |
+
" import time\n",
|
| 1505 |
+
" # ----- 计时开始 -----\n",
|
| 1506 |
+
" unique_smiles = list(idx2smi.values()) # 假设 idx2smi 是 SMILES 字典\n",
|
| 1507 |
+
"\n",
|
| 1508 |
+
" t0 = time.perf_counter()\n",
|
| 1509 |
+
" \n",
|
| 1510 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1511 |
+
" smiles_list=unique_smiles[:32],\n",
|
| 1512 |
+
" output_file=\"embeddings/UniMol_emb512.pkl\",\n",
|
| 1513 |
+
" model_name='unimolv1',\n",
|
| 1514 |
+
" model_size='84m',\n",
|
| 1515 |
+
" remove_hs=False,\n",
|
| 1516 |
+
" batch_size=32\n",
|
| 1517 |
+
" )\n",
|
| 1518 |
+
" # UniMol 2\n",
|
| 1519 |
+
" embeddings = get_unimol_embeddings(\n",
|
| 1520 |
+
" smiles_list=unique_smiles[:32],\n",
|
| 1521 |
+
" output_file=\"embeddings/UniMolV2_emb1024.pkl\",\n",
|
| 1522 |
+
" model_name='unimolv2', # 修改为 v2 版本\n",
|
| 1523 |
+
" model_size='310m', # 指定 v2 模型大小(根据需要选择)\n",
|
| 1524 |
+
" remove_hs=False,\n",
|
| 1525 |
+
" batch_size=32\n",
|
| 1526 |
+
" )"
|
| 1527 |
+
]
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"cell_type": "code",
|
| 1531 |
+
"execution_count": null,
|
| 1532 |
+
"metadata": {},
|
| 1533 |
+
"outputs": [],
|
| 1534 |
+
"source": [
|
| 1535 |
+
"\n",
|
| 1536 |
+
"# output_file=\"embeddings/UniMolV2_emb1024.pkl\"\n",
|
| 1537 |
+
"# with open(output_file, 'wb') as f:\n",
|
| 1538 |
+
"# pickle.dump(embeddings, f)"
|
| 1539 |
+
]
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"cell_type": "code",
|
| 1543 |
+
"execution_count": null,
|
| 1544 |
+
"metadata": {},
|
| 1545 |
+
"outputs": [],
|
| 1546 |
+
"source": [
|
| 1547 |
+
"path = './embeddings/UniMolV2_emb1024.pkl'\n",
|
| 1548 |
+
"import pickle\n",
|
| 1549 |
+
"with open(path, 'rb') as f:\n",
|
| 1550 |
+
" unimol_feat = pickle.load(f)\n",
|
| 1551 |
+
"\n",
|
| 1552 |
+
"unimol_feat"
|
| 1553 |
+
]
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"cell_type": "code",
|
| 1557 |
+
"execution_count": 9,
|
| 1558 |
+
"metadata": {},
|
| 1559 |
+
"outputs": [
|
| 1560 |
+
{
|
| 1561 |
+
"name": "stdout",
|
| 1562 |
+
"output_type": "stream",
|
| 1563 |
+
"text": [
|
| 1564 |
+
"8316 512\n"
|
| 1565 |
+
]
|
| 1566 |
+
}
|
| 1567 |
+
],
|
| 1568 |
+
"source": [
|
| 1569 |
+
"print(len(unimol_feat), len(unimol_feat['BrC1C(Br)C(Br)C(Br)C(Br)C1Br']))"
|
| 1570 |
+
]
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"cell_type": "code",
|
| 1574 |
+
"execution_count": 11,
|
| 1575 |
+
"metadata": {},
|
| 1576 |
+
"outputs": [
|
| 1577 |
+
{
|
| 1578 |
+
"name": "stdout",
|
| 1579 |
+
"output_type": "stream",
|
| 1580 |
+
"text": [
|
| 1581 |
+
"处理前维度: (1, 512)\n",
|
| 1582 |
+
"处理后维度: (512,)\n"
|
| 1583 |
+
]
|
| 1584 |
+
}
|
| 1585 |
+
],
|
| 1586 |
+
"source": [
|
| 1587 |
+
"# import pickle\n",
|
| 1588 |
+
"# import numpy as np\n",
|
| 1589 |
+
"\n",
|
| 1590 |
+
"# # 加载原始特征\n",
|
| 1591 |
+
"# path = './embeddings/UniMol_emb512.pkl'\n",
|
| 1592 |
+
"# with open(path, 'rb') as f:\n",
|
| 1593 |
+
"# unimol_feat = pickle.load(f)\n",
|
| 1594 |
+
"\n",
|
| 1595 |
+
"# # 处理特征维度:从(1,512)变为(512,)\n",
|
| 1596 |
+
"# unimol_feat_processed = {k: v.squeeze() for k, v in unimol_feat.items()}\n",
|
| 1597 |
+
"\n",
|
| 1598 |
+
"# # 验证处理结果\n",
|
| 1599 |
+
"# test_molecule = 'BrC1C(Br)C(Br)C(Br)C(Br)C1Br'\n",
|
| 1600 |
+
"# if test_molecule in unimol_feat_processed:\n",
|
| 1601 |
+
"# print(f\"处理前维度: {unimol_feat[test_molecule].shape}\")\n",
|
| 1602 |
+
"# print(f\"处理后维度: {unimol_feat_processed[test_molecule].shape}\")"
|
| 1603 |
+
]
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"cell_type": "code",
|
| 1607 |
+
"execution_count": null,
|
| 1608 |
+
"metadata": {},
|
| 1609 |
+
"outputs": [],
|
| 1610 |
+
"source": [
|
| 1611 |
+
"# # 保存处理后的特征\n",
|
| 1612 |
+
"# # 选项1:覆盖原始文件\n",
|
| 1613 |
+
"# with open(path, 'wb') as f:\n",
|
| 1614 |
+
"# pickle.dump(unimol_feat_processed, f)\n",
|
| 1615 |
+
"\n",
|
| 1616 |
+
"# 选项2:保存到新文件(推荐,避免覆盖原始数据)\n",
|
| 1617 |
+
"# processed_path = './embeddings/UniMol_emb512_processed.pkl'\n",
|
| 1618 |
+
"# with open(processed_path, 'wb') as f:\n",
|
| 1619 |
+
"# pickle.dump(unimol_feat_processed, f)\n",
|
| 1620 |
+
"\n",
|
| 1621 |
+
"# print(f\"处理后的特征已保存至: {processed_path}\")\n"
|
| 1622 |
+
]
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"cell_type": "code",
|
| 1626 |
+
"execution_count": null,
|
| 1627 |
+
"metadata": {},
|
| 1628 |
+
"outputs": [],
|
| 1629 |
+
"source": []
|
| 1630 |
+
}
|
| 1631 |
+
],
|
| 1632 |
+
"metadata": {
|
| 1633 |
+
"kernelspec": {
|
| 1634 |
+
"display_name": "boom",
|
| 1635 |
+
"language": "python",
|
| 1636 |
+
"name": "python3"
|
| 1637 |
+
},
|
| 1638 |
+
"language_info": {
|
| 1639 |
+
"codemirror_mode": {
|
| 1640 |
+
"name": "ipython",
|
| 1641 |
+
"version": 3
|
| 1642 |
+
},
|
| 1643 |
+
"file_extension": ".py",
|
| 1644 |
+
"mimetype": "text/x-python",
|
| 1645 |
+
"name": "python",
|
| 1646 |
+
"nbconvert_exporter": "python",
|
| 1647 |
+
"pygments_lexer": "ipython3",
|
| 1648 |
+
"version": "3.11.10"
|
| 1649 |
+
}
|
| 1650 |
+
},
|
| 1651 |
+
"nbformat": 4,
|
| 1652 |
+
"nbformat_minor": 2
|
| 1653 |
+
}
|
Tahoe-100M/Tahoe.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Tahoe-100M/lincs_in_scgpt_indices.csv
ADDED
|
@@ -0,0 +1,966 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
scgpt_index
|
| 2 |
+
106
|
| 3 |
+
122
|
| 4 |
+
135
|
| 5 |
+
138
|
| 6 |
+
172
|
| 7 |
+
199
|
| 8 |
+
200
|
| 9 |
+
205
|
| 10 |
+
225
|
| 11 |
+
238
|
| 12 |
+
240
|
| 13 |
+
292
|
| 14 |
+
313
|
| 15 |
+
331
|
| 16 |
+
346
|
| 17 |
+
360
|
| 18 |
+
377
|
| 19 |
+
385
|
| 20 |
+
387
|
| 21 |
+
398
|
| 22 |
+
403
|
| 23 |
+
413
|
| 24 |
+
425
|
| 25 |
+
442
|
| 26 |
+
458
|
| 27 |
+
494
|
| 28 |
+
499
|
| 29 |
+
549
|
| 30 |
+
553
|
| 31 |
+
581
|
| 32 |
+
629
|
| 33 |
+
633
|
| 34 |
+
637
|
| 35 |
+
642
|
| 36 |
+
650
|
| 37 |
+
723
|
| 38 |
+
728
|
| 39 |
+
743
|
| 40 |
+
769
|
| 41 |
+
830
|
| 42 |
+
832
|
| 43 |
+
837
|
| 44 |
+
839
|
| 45 |
+
883
|
| 46 |
+
889
|
| 47 |
+
893
|
| 48 |
+
903
|
| 49 |
+
904
|
| 50 |
+
939
|
| 51 |
+
961
|
| 52 |
+
964
|
| 53 |
+
966
|
| 54 |
+
975
|
| 55 |
+
983
|
| 56 |
+
996
|
| 57 |
+
997
|
| 58 |
+
1011
|
| 59 |
+
1024
|
| 60 |
+
1041
|
| 61 |
+
1068
|
| 62 |
+
1083
|
| 63 |
+
1151
|
| 64 |
+
1165
|
| 65 |
+
1178
|
| 66 |
+
1179
|
| 67 |
+
1183
|
| 68 |
+
1195
|
| 69 |
+
1200
|
| 70 |
+
1206
|
| 71 |
+
1225
|
| 72 |
+
1232
|
| 73 |
+
1289
|
| 74 |
+
1314
|
| 75 |
+
1376
|
| 76 |
+
1385
|
| 77 |
+
1398
|
| 78 |
+
1407
|
| 79 |
+
1408
|
| 80 |
+
1449
|
| 81 |
+
1456
|
| 82 |
+
1459
|
| 83 |
+
1464
|
| 84 |
+
1465
|
| 85 |
+
1523
|
| 86 |
+
1536
|
| 87 |
+
1537
|
| 88 |
+
1604
|
| 89 |
+
1610
|
| 90 |
+
1665
|
| 91 |
+
1680
|
| 92 |
+
1693
|
| 93 |
+
1724
|
| 94 |
+
1758
|
| 95 |
+
1792
|
| 96 |
+
1819
|
| 97 |
+
1862
|
| 98 |
+
1872
|
| 99 |
+
1902
|
| 100 |
+
1913
|
| 101 |
+
1918
|
| 102 |
+
1933
|
| 103 |
+
2009
|
| 104 |
+
2053
|
| 105 |
+
2078
|
| 106 |
+
2132
|
| 107 |
+
2146
|
| 108 |
+
2152
|
| 109 |
+
2160
|
| 110 |
+
2173
|
| 111 |
+
2178
|
| 112 |
+
2184
|
| 113 |
+
2196
|
| 114 |
+
2249
|
| 115 |
+
2250
|
| 116 |
+
2269
|
| 117 |
+
2279
|
| 118 |
+
2291
|
| 119 |
+
2330
|
| 120 |
+
2343
|
| 121 |
+
2349
|
| 122 |
+
2359
|
| 123 |
+
2379
|
| 124 |
+
2390
|
| 125 |
+
2475
|
| 126 |
+
2537
|
| 127 |
+
2552
|
| 128 |
+
2566
|
| 129 |
+
2573
|
| 130 |
+
2576
|
| 131 |
+
2616
|
| 132 |
+
2634
|
| 133 |
+
2651
|
| 134 |
+
2675
|
| 135 |
+
2746
|
| 136 |
+
2753
|
| 137 |
+
2787
|
| 138 |
+
2838
|
| 139 |
+
2851
|
| 140 |
+
2898
|
| 141 |
+
2900
|
| 142 |
+
2904
|
| 143 |
+
2913
|
| 144 |
+
2921
|
| 145 |
+
2957
|
| 146 |
+
2974
|
| 147 |
+
2978
|
| 148 |
+
3002
|
| 149 |
+
3019
|
| 150 |
+
3038
|
| 151 |
+
3075
|
| 152 |
+
3087
|
| 153 |
+
3108
|
| 154 |
+
3109
|
| 155 |
+
3110
|
| 156 |
+
3116
|
| 157 |
+
3121
|
| 158 |
+
3129
|
| 159 |
+
3147
|
| 160 |
+
3150
|
| 161 |
+
3181
|
| 162 |
+
3183
|
| 163 |
+
3185
|
| 164 |
+
3195
|
| 165 |
+
3201
|
| 166 |
+
3211
|
| 167 |
+
3234
|
| 168 |
+
3254
|
| 169 |
+
3275
|
| 170 |
+
3382
|
| 171 |
+
3401
|
| 172 |
+
3538
|
| 173 |
+
3544
|
| 174 |
+
3572
|
| 175 |
+
3596
|
| 176 |
+
3602
|
| 177 |
+
3648
|
| 178 |
+
3654
|
| 179 |
+
3667
|
| 180 |
+
3668
|
| 181 |
+
3671
|
| 182 |
+
3677
|
| 183 |
+
3687
|
| 184 |
+
3694
|
| 185 |
+
3702
|
| 186 |
+
3710
|
| 187 |
+
3715
|
| 188 |
+
3733
|
| 189 |
+
3747
|
| 190 |
+
3776
|
| 191 |
+
3817
|
| 192 |
+
3829
|
| 193 |
+
3838
|
| 194 |
+
3873
|
| 195 |
+
3882
|
| 196 |
+
3891
|
| 197 |
+
3895
|
| 198 |
+
3906
|
| 199 |
+
3912
|
| 200 |
+
3969
|
| 201 |
+
4000
|
| 202 |
+
4002
|
| 203 |
+
4019
|
| 204 |
+
4035
|
| 205 |
+
4036
|
| 206 |
+
4058
|
| 207 |
+
4064
|
| 208 |
+
4068
|
| 209 |
+
4075
|
| 210 |
+
4083
|
| 211 |
+
4095
|
| 212 |
+
4096
|
| 213 |
+
4104
|
| 214 |
+
4115
|
| 215 |
+
4136
|
| 216 |
+
4168
|
| 217 |
+
4172
|
| 218 |
+
4199
|
| 219 |
+
4217
|
| 220 |
+
4230
|
| 221 |
+
4253
|
| 222 |
+
4300
|
| 223 |
+
4305
|
| 224 |
+
4359
|
| 225 |
+
4385
|
| 226 |
+
4389
|
| 227 |
+
4405
|
| 228 |
+
4412
|
| 229 |
+
4429
|
| 230 |
+
4460
|
| 231 |
+
4465
|
| 232 |
+
4503
|
| 233 |
+
4521
|
| 234 |
+
4555
|
| 235 |
+
4592
|
| 236 |
+
4607
|
| 237 |
+
4648
|
| 238 |
+
4673
|
| 239 |
+
4678
|
| 240 |
+
4689
|
| 241 |
+
4697
|
| 242 |
+
4703
|
| 243 |
+
4718
|
| 244 |
+
4731
|
| 245 |
+
4749
|
| 246 |
+
4752
|
| 247 |
+
4782
|
| 248 |
+
4789
|
| 249 |
+
4900
|
| 250 |
+
4919
|
| 251 |
+
4922
|
| 252 |
+
4931
|
| 253 |
+
4938
|
| 254 |
+
4959
|
| 255 |
+
4991
|
| 256 |
+
4993
|
| 257 |
+
5029
|
| 258 |
+
5037
|
| 259 |
+
5050
|
| 260 |
+
5076
|
| 261 |
+
5120
|
| 262 |
+
5137
|
| 263 |
+
5164
|
| 264 |
+
5198
|
| 265 |
+
5251
|
| 266 |
+
5268
|
| 267 |
+
5310
|
| 268 |
+
5317
|
| 269 |
+
5325
|
| 270 |
+
5337
|
| 271 |
+
5345
|
| 272 |
+
5350
|
| 273 |
+
5394
|
| 274 |
+
5438
|
| 275 |
+
5445
|
| 276 |
+
5517
|
| 277 |
+
5541
|
| 278 |
+
5566
|
| 279 |
+
5623
|
| 280 |
+
5628
|
| 281 |
+
5690
|
| 282 |
+
5725
|
| 283 |
+
5768
|
| 284 |
+
5770
|
| 285 |
+
5787
|
| 286 |
+
5811
|
| 287 |
+
5843
|
| 288 |
+
5861
|
| 289 |
+
5867
|
| 290 |
+
5881
|
| 291 |
+
5907
|
| 292 |
+
5944
|
| 293 |
+
5953
|
| 294 |
+
5964
|
| 295 |
+
5969
|
| 296 |
+
6037
|
| 297 |
+
6088
|
| 298 |
+
6105
|
| 299 |
+
6148
|
| 300 |
+
6183
|
| 301 |
+
6202
|
| 302 |
+
6213
|
| 303 |
+
6232
|
| 304 |
+
6265
|
| 305 |
+
6281
|
| 306 |
+
6284
|
| 307 |
+
6287
|
| 308 |
+
6297
|
| 309 |
+
6303
|
| 310 |
+
6313
|
| 311 |
+
6318
|
| 312 |
+
6327
|
| 313 |
+
6348
|
| 314 |
+
6357
|
| 315 |
+
6364
|
| 316 |
+
6366
|
| 317 |
+
6379
|
| 318 |
+
6389
|
| 319 |
+
6391
|
| 320 |
+
6409
|
| 321 |
+
6412
|
| 322 |
+
6414
|
| 323 |
+
6416
|
| 324 |
+
6423
|
| 325 |
+
6424
|
| 326 |
+
6428
|
| 327 |
+
6495
|
| 328 |
+
6553
|
| 329 |
+
6603
|
| 330 |
+
6623
|
| 331 |
+
6625
|
| 332 |
+
6654
|
| 333 |
+
6660
|
| 334 |
+
6661
|
| 335 |
+
6686
|
| 336 |
+
6693
|
| 337 |
+
6704
|
| 338 |
+
6735
|
| 339 |
+
6748
|
| 340 |
+
6771
|
| 341 |
+
6774
|
| 342 |
+
6796
|
| 343 |
+
6821
|
| 344 |
+
6833
|
| 345 |
+
6864
|
| 346 |
+
6866
|
| 347 |
+
6872
|
| 348 |
+
6910
|
| 349 |
+
6933
|
| 350 |
+
6944
|
| 351 |
+
6954
|
| 352 |
+
6970
|
| 353 |
+
7007
|
| 354 |
+
7009
|
| 355 |
+
7049
|
| 356 |
+
7099
|
| 357 |
+
7104
|
| 358 |
+
7106
|
| 359 |
+
7121
|
| 360 |
+
7147
|
| 361 |
+
7148
|
| 362 |
+
7237
|
| 363 |
+
7257
|
| 364 |
+
7293
|
| 365 |
+
7324
|
| 366 |
+
7372
|
| 367 |
+
7388
|
| 368 |
+
7397
|
| 369 |
+
7413
|
| 370 |
+
7433
|
| 371 |
+
7472
|
| 372 |
+
7480
|
| 373 |
+
7510
|
| 374 |
+
7511
|
| 375 |
+
7544
|
| 376 |
+
7555
|
| 377 |
+
7591
|
| 378 |
+
7614
|
| 379 |
+
7626
|
| 380 |
+
7654
|
| 381 |
+
7676
|
| 382 |
+
7677
|
| 383 |
+
7691
|
| 384 |
+
7753
|
| 385 |
+
7755
|
| 386 |
+
7771
|
| 387 |
+
7776
|
| 388 |
+
7782
|
| 389 |
+
7805
|
| 390 |
+
7822
|
| 391 |
+
7839
|
| 392 |
+
7856
|
| 393 |
+
7857
|
| 394 |
+
7886
|
| 395 |
+
7912
|
| 396 |
+
7920
|
| 397 |
+
7923
|
| 398 |
+
7951
|
| 399 |
+
7971
|
| 400 |
+
8022
|
| 401 |
+
8023
|
| 402 |
+
8095
|
| 403 |
+
8108
|
| 404 |
+
8111
|
| 405 |
+
8126
|
| 406 |
+
8144
|
| 407 |
+
8157
|
| 408 |
+
8179
|
| 409 |
+
8230
|
| 410 |
+
8268
|
| 411 |
+
8269
|
| 412 |
+
8300
|
| 413 |
+
8306
|
| 414 |
+
8330
|
| 415 |
+
8342
|
| 416 |
+
8344
|
| 417 |
+
8358
|
| 418 |
+
8383
|
| 419 |
+
8409
|
| 420 |
+
8454
|
| 421 |
+
8493
|
| 422 |
+
8496
|
| 423 |
+
8507
|
| 424 |
+
8522
|
| 425 |
+
8537
|
| 426 |
+
8541
|
| 427 |
+
8558
|
| 428 |
+
8571
|
| 429 |
+
8572
|
| 430 |
+
8593
|
| 431 |
+
8602
|
| 432 |
+
8676
|
| 433 |
+
8697
|
| 434 |
+
8704
|
| 435 |
+
8712
|
| 436 |
+
8727
|
| 437 |
+
8737
|
| 438 |
+
8821
|
| 439 |
+
8825
|
| 440 |
+
8836
|
| 441 |
+
8868
|
| 442 |
+
8885
|
| 443 |
+
8889
|
| 444 |
+
8901
|
| 445 |
+
8909
|
| 446 |
+
8910
|
| 447 |
+
8917
|
| 448 |
+
8928
|
| 449 |
+
8930
|
| 450 |
+
8962
|
| 451 |
+
8978
|
| 452 |
+
8995
|
| 453 |
+
8998
|
| 454 |
+
9005
|
| 455 |
+
9053
|
| 456 |
+
9065
|
| 457 |
+
9109
|
| 458 |
+
9115
|
| 459 |
+
9165
|
| 460 |
+
9214
|
| 461 |
+
9223
|
| 462 |
+
9234
|
| 463 |
+
9241
|
| 464 |
+
9261
|
| 465 |
+
9284
|
| 466 |
+
9327
|
| 467 |
+
9335
|
| 468 |
+
9336
|
| 469 |
+
9372
|
| 470 |
+
9376
|
| 471 |
+
9389
|
| 472 |
+
9408
|
| 473 |
+
9440
|
| 474 |
+
9443
|
| 475 |
+
9479
|
| 476 |
+
9511
|
| 477 |
+
9534
|
| 478 |
+
9551
|
| 479 |
+
9561
|
| 480 |
+
9570
|
| 481 |
+
9620
|
| 482 |
+
9636
|
| 483 |
+
9648
|
| 484 |
+
9667
|
| 485 |
+
9672
|
| 486 |
+
9679
|
| 487 |
+
9714
|
| 488 |
+
9744
|
| 489 |
+
9790
|
| 490 |
+
9792
|
| 491 |
+
9804
|
| 492 |
+
9825
|
| 493 |
+
9829
|
| 494 |
+
9848
|
| 495 |
+
9887
|
| 496 |
+
9923
|
| 497 |
+
9927
|
| 498 |
+
9946
|
| 499 |
+
9971
|
| 500 |
+
9975
|
| 501 |
+
10006
|
| 502 |
+
10134
|
| 503 |
+
10161
|
| 504 |
+
10199
|
| 505 |
+
10212
|
| 506 |
+
10228
|
| 507 |
+
10233
|
| 508 |
+
10249
|
| 509 |
+
10260
|
| 510 |
+
10271
|
| 511 |
+
10288
|
| 512 |
+
10296
|
| 513 |
+
10353
|
| 514 |
+
10391
|
| 515 |
+
10393
|
| 516 |
+
10402
|
| 517 |
+
10407
|
| 518 |
+
10452
|
| 519 |
+
10467
|
| 520 |
+
10479
|
| 521 |
+
10528
|
| 522 |
+
10535
|
| 523 |
+
10536
|
| 524 |
+
10582
|
| 525 |
+
10587
|
| 526 |
+
10608
|
| 527 |
+
10658
|
| 528 |
+
10715
|
| 529 |
+
10730
|
| 530 |
+
10757
|
| 531 |
+
10768
|
| 532 |
+
10805
|
| 533 |
+
10824
|
| 534 |
+
10847
|
| 535 |
+
10904
|
| 536 |
+
10919
|
| 537 |
+
10924
|
| 538 |
+
10925
|
| 539 |
+
10927
|
| 540 |
+
10943
|
| 541 |
+
10954
|
| 542 |
+
10955
|
| 543 |
+
10982
|
| 544 |
+
11063
|
| 545 |
+
11064
|
| 546 |
+
11071
|
| 547 |
+
11072
|
| 548 |
+
11081
|
| 549 |
+
11084
|
| 550 |
+
11096
|
| 551 |
+
11154
|
| 552 |
+
11171
|
| 553 |
+
11204
|
| 554 |
+
11221
|
| 555 |
+
11235
|
| 556 |
+
11237
|
| 557 |
+
11259
|
| 558 |
+
11276
|
| 559 |
+
11297
|
| 560 |
+
11303
|
| 561 |
+
11312
|
| 562 |
+
11368
|
| 563 |
+
11371
|
| 564 |
+
11376
|
| 565 |
+
11378
|
| 566 |
+
11383
|
| 567 |
+
11400
|
| 568 |
+
11404
|
| 569 |
+
11432
|
| 570 |
+
11438
|
| 571 |
+
11444
|
| 572 |
+
11451
|
| 573 |
+
11481
|
| 574 |
+
11493
|
| 575 |
+
11593
|
| 576 |
+
11606
|
| 577 |
+
11607
|
| 578 |
+
11615
|
| 579 |
+
11638
|
| 580 |
+
11659
|
| 581 |
+
11667
|
| 582 |
+
11669
|
| 583 |
+
11673
|
| 584 |
+
11678
|
| 585 |
+
11679
|
| 586 |
+
11689
|
| 587 |
+
11708
|
| 588 |
+
11710
|
| 589 |
+
11719
|
| 590 |
+
11753
|
| 591 |
+
11772
|
| 592 |
+
11793
|
| 593 |
+
11809
|
| 594 |
+
11826
|
| 595 |
+
11827
|
| 596 |
+
11867
|
| 597 |
+
11887
|
| 598 |
+
11902
|
| 599 |
+
11924
|
| 600 |
+
11943
|
| 601 |
+
11978
|
| 602 |
+
11981
|
| 603 |
+
12017
|
| 604 |
+
12018
|
| 605 |
+
12031
|
| 606 |
+
12045
|
| 607 |
+
12114
|
| 608 |
+
12132
|
| 609 |
+
12170
|
| 610 |
+
12182
|
| 611 |
+
12194
|
| 612 |
+
12209
|
| 613 |
+
12214
|
| 614 |
+
12232
|
| 615 |
+
12238
|
| 616 |
+
12274
|
| 617 |
+
12281
|
| 618 |
+
12286
|
| 619 |
+
12301
|
| 620 |
+
12336
|
| 621 |
+
12348
|
| 622 |
+
12359
|
| 623 |
+
12376
|
| 624 |
+
12389
|
| 625 |
+
12391
|
| 626 |
+
12395
|
| 627 |
+
12425
|
| 628 |
+
12464
|
| 629 |
+
12491
|
| 630 |
+
12511
|
| 631 |
+
12532
|
| 632 |
+
12549
|
| 633 |
+
12550
|
| 634 |
+
12574
|
| 635 |
+
12627
|
| 636 |
+
12636
|
| 637 |
+
12643
|
| 638 |
+
12674
|
| 639 |
+
12696
|
| 640 |
+
12707
|
| 641 |
+
12744
|
| 642 |
+
12820
|
| 643 |
+
12859
|
| 644 |
+
12938
|
| 645 |
+
12947
|
| 646 |
+
12952
|
| 647 |
+
12956
|
| 648 |
+
12966
|
| 649 |
+
12977
|
| 650 |
+
12980
|
| 651 |
+
12981
|
| 652 |
+
12989
|
| 653 |
+
13009
|
| 654 |
+
13011
|
| 655 |
+
13015
|
| 656 |
+
13021
|
| 657 |
+
13034
|
| 658 |
+
13050
|
| 659 |
+
13051
|
| 660 |
+
13071
|
| 661 |
+
13072
|
| 662 |
+
13082
|
| 663 |
+
13093
|
| 664 |
+
13099
|
| 665 |
+
13110
|
| 666 |
+
13120
|
| 667 |
+
13132
|
| 668 |
+
13144
|
| 669 |
+
13154
|
| 670 |
+
13198
|
| 671 |
+
13201
|
| 672 |
+
13217
|
| 673 |
+
13227
|
| 674 |
+
13229
|
| 675 |
+
13230
|
| 676 |
+
13234
|
| 677 |
+
13243
|
| 678 |
+
13255
|
| 679 |
+
13281
|
| 680 |
+
13293
|
| 681 |
+
13339
|
| 682 |
+
13351
|
| 683 |
+
13379
|
| 684 |
+
13392
|
| 685 |
+
13417
|
| 686 |
+
13449
|
| 687 |
+
13484
|
| 688 |
+
13491
|
| 689 |
+
13527
|
| 690 |
+
13542
|
| 691 |
+
13543
|
| 692 |
+
13544
|
| 693 |
+
13549
|
| 694 |
+
13567
|
| 695 |
+
13610
|
| 696 |
+
13625
|
| 697 |
+
13633
|
| 698 |
+
13639
|
| 699 |
+
13653
|
| 700 |
+
13661
|
| 701 |
+
13680
|
| 702 |
+
13681
|
| 703 |
+
13684
|
| 704 |
+
13692
|
| 705 |
+
13732
|
| 706 |
+
13774
|
| 707 |
+
13781
|
| 708 |
+
13830
|
| 709 |
+
13838
|
| 710 |
+
13948
|
| 711 |
+
13990
|
| 712 |
+
14013
|
| 713 |
+
14014
|
| 714 |
+
14032
|
| 715 |
+
14049
|
| 716 |
+
14100
|
| 717 |
+
14122
|
| 718 |
+
14123
|
| 719 |
+
14130
|
| 720 |
+
14139
|
| 721 |
+
14148
|
| 722 |
+
14170
|
| 723 |
+
14171
|
| 724 |
+
14203
|
| 725 |
+
14226
|
| 726 |
+
14229
|
| 727 |
+
14262
|
| 728 |
+
14263
|
| 729 |
+
14285
|
| 730 |
+
14310
|
| 731 |
+
14311
|
| 732 |
+
14321
|
| 733 |
+
14336
|
| 734 |
+
14378
|
| 735 |
+
14421
|
| 736 |
+
14482
|
| 737 |
+
14488
|
| 738 |
+
14520
|
| 739 |
+
14536
|
| 740 |
+
14537
|
| 741 |
+
14562
|
| 742 |
+
14593
|
| 743 |
+
14602
|
| 744 |
+
14635
|
| 745 |
+
14646
|
| 746 |
+
14658
|
| 747 |
+
14660
|
| 748 |
+
14667
|
| 749 |
+
14676
|
| 750 |
+
14703
|
| 751 |
+
14710
|
| 752 |
+
14715
|
| 753 |
+
14726
|
| 754 |
+
14734
|
| 755 |
+
14755
|
| 756 |
+
14766
|
| 757 |
+
14846
|
| 758 |
+
14854
|
| 759 |
+
14856
|
| 760 |
+
14925
|
| 761 |
+
14935
|
| 762 |
+
14939
|
| 763 |
+
14943
|
| 764 |
+
14959
|
| 765 |
+
14980
|
| 766 |
+
14983
|
| 767 |
+
15014
|
| 768 |
+
15044
|
| 769 |
+
15064
|
| 770 |
+
15071
|
| 771 |
+
15083
|
| 772 |
+
15096
|
| 773 |
+
15124
|
| 774 |
+
15146
|
| 775 |
+
15151
|
| 776 |
+
15166
|
| 777 |
+
15169
|
| 778 |
+
15224
|
| 779 |
+
15245
|
| 780 |
+
15264
|
| 781 |
+
15283
|
| 782 |
+
15307
|
| 783 |
+
15314
|
| 784 |
+
15316
|
| 785 |
+
15339
|
| 786 |
+
15366
|
| 787 |
+
15380
|
| 788 |
+
15383
|
| 789 |
+
15393
|
| 790 |
+
15417
|
| 791 |
+
15425
|
| 792 |
+
15489
|
| 793 |
+
15513
|
| 794 |
+
15533
|
| 795 |
+
15541
|
| 796 |
+
15549
|
| 797 |
+
15576
|
| 798 |
+
15589
|
| 799 |
+
15607
|
| 800 |
+
15621
|
| 801 |
+
15623
|
| 802 |
+
15626
|
| 803 |
+
15681
|
| 804 |
+
15690
|
| 805 |
+
15734
|
| 806 |
+
15829
|
| 807 |
+
15832
|
| 808 |
+
15862
|
| 809 |
+
15866
|
| 810 |
+
15885
|
| 811 |
+
15917
|
| 812 |
+
15928
|
| 813 |
+
15943
|
| 814 |
+
15972
|
| 815 |
+
15978
|
| 816 |
+
16001
|
| 817 |
+
16017
|
| 818 |
+
16032
|
| 819 |
+
16054
|
| 820 |
+
16070
|
| 821 |
+
16074
|
| 822 |
+
16095
|
| 823 |
+
16153
|
| 824 |
+
16183
|
| 825 |
+
16223
|
| 826 |
+
16226
|
| 827 |
+
16242
|
| 828 |
+
16252
|
| 829 |
+
16321
|
| 830 |
+
16367
|
| 831 |
+
16378
|
| 832 |
+
16396
|
| 833 |
+
16399
|
| 834 |
+
16406
|
| 835 |
+
16417
|
| 836 |
+
16477
|
| 837 |
+
16483
|
| 838 |
+
16492
|
| 839 |
+
16513
|
| 840 |
+
16533
|
| 841 |
+
16583
|
| 842 |
+
16586
|
| 843 |
+
16591
|
| 844 |
+
16626
|
| 845 |
+
16650
|
| 846 |
+
16653
|
| 847 |
+
16654
|
| 848 |
+
16690
|
| 849 |
+
16759
|
| 850 |
+
16777
|
| 851 |
+
16779
|
| 852 |
+
16793
|
| 853 |
+
16807
|
| 854 |
+
16816
|
| 855 |
+
16831
|
| 856 |
+
16843
|
| 857 |
+
16858
|
| 858 |
+
16861
|
| 859 |
+
16889
|
| 860 |
+
16908
|
| 861 |
+
16915
|
| 862 |
+
16917
|
| 863 |
+
16935
|
| 864 |
+
16956
|
| 865 |
+
16961
|
| 866 |
+
16963
|
| 867 |
+
16970
|
| 868 |
+
16975
|
| 869 |
+
16983
|
| 870 |
+
17006
|
| 871 |
+
17048
|
| 872 |
+
17081
|
| 873 |
+
17082
|
| 874 |
+
17088
|
| 875 |
+
17093
|
| 876 |
+
17131
|
| 877 |
+
17172
|
| 878 |
+
17188
|
| 879 |
+
17197
|
| 880 |
+
17210
|
| 881 |
+
17218
|
| 882 |
+
17239
|
| 883 |
+
17316
|
| 884 |
+
17327
|
| 885 |
+
17351
|
| 886 |
+
17410
|
| 887 |
+
17412
|
| 888 |
+
17440
|
| 889 |
+
17446
|
| 890 |
+
17450
|
| 891 |
+
17474
|
| 892 |
+
17498
|
| 893 |
+
17504
|
| 894 |
+
17519
|
| 895 |
+
17547
|
| 896 |
+
17552
|
| 897 |
+
17556
|
| 898 |
+
17589
|
| 899 |
+
17693
|
| 900 |
+
17696
|
| 901 |
+
17737
|
| 902 |
+
17759
|
| 903 |
+
17764
|
| 904 |
+
17765
|
| 905 |
+
17784
|
| 906 |
+
17826
|
| 907 |
+
17830
|
| 908 |
+
17836
|
| 909 |
+
17888
|
| 910 |
+
17904
|
| 911 |
+
17917
|
| 912 |
+
17946
|
| 913 |
+
17952
|
| 914 |
+
17974
|
| 915 |
+
17996
|
| 916 |
+
18004
|
| 917 |
+
18011
|
| 918 |
+
18063
|
| 919 |
+
18069
|
| 920 |
+
18090
|
| 921 |
+
18094
|
| 922 |
+
18107
|
| 923 |
+
18111
|
| 924 |
+
18112
|
| 925 |
+
18114
|
| 926 |
+
18147
|
| 927 |
+
18180
|
| 928 |
+
18236
|
| 929 |
+
18281
|
| 930 |
+
18282
|
| 931 |
+
18308
|
| 932 |
+
18319
|
| 933 |
+
18338
|
| 934 |
+
18398
|
| 935 |
+
18402
|
| 936 |
+
18418
|
| 937 |
+
18420
|
| 938 |
+
18448
|
| 939 |
+
18496
|
| 940 |
+
18539
|
| 941 |
+
18552
|
| 942 |
+
18565
|
| 943 |
+
18571
|
| 944 |
+
18598
|
| 945 |
+
18608
|
| 946 |
+
18627
|
| 947 |
+
18656
|
| 948 |
+
18673
|
| 949 |
+
18677
|
| 950 |
+
18738
|
| 951 |
+
18772
|
| 952 |
+
18805
|
| 953 |
+
18821
|
| 954 |
+
18829
|
| 955 |
+
18857
|
| 956 |
+
18859
|
| 957 |
+
18868
|
| 958 |
+
18880
|
| 959 |
+
18910
|
| 960 |
+
18959
|
| 961 |
+
18966
|
| 962 |
+
18967
|
| 963 |
+
18969
|
| 964 |
+
18979
|
| 965 |
+
18992
|
| 966 |
+
19020
|
Tahoe-100M/smiles.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Tahoe-100M/unique_smiles.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Tahoe-100M/unique_smiles.txt
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import pickle
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
import torch
|
| 6 |
+
import torch.nn as nn
|
| 7 |
+
from tqdm import tqdm
|
| 8 |
+
from unimol_tools import UniMolRepr
|
| 9 |
+
import os, sys, contextlib
|
| 10 |
+
|
| 11 |
+
@contextlib.contextmanager
|
| 12 |
+
def suppress_stdout_stderr():
|
| 13 |
+
"""with 块内所有 print / tqdm / warning 都不会显示"""
|
| 14 |
+
with open(os.devnull, 'w') as devnull:
|
| 15 |
+
old_out, old_err = sys.stdout, sys.stderr
|
| 16 |
+
sys.stdout, sys.stderr = devnull, devnull
|
| 17 |
+
try:
|
| 18 |
+
yield
|
| 19 |
+
finally:
|
| 20 |
+
sys.stdout, sys.stderr = old_out, old_err
|
| 21 |
+
|
| 22 |
+
def get_unimol_embeddings(smiles_list, output_file="UniMol_emb512.pkl",
|
| 23 |
+
model_name='unimolv1', model_size='84m',
|
| 24 |
+
remove_hs=False, batch_size=32):
|
| 25 |
+
"""
|
| 26 |
+
使用Uni-Mol模型为SMILES列表生成分子嵌入,并保存为pickle文件
|
| 27 |
+
|
| 28 |
+
参数:
|
| 29 |
+
smiles_list (list): SMILES字符串列表
|
| 30 |
+
output_file (str): 输出pickle文件路径
|
| 31 |
+
model_name (str): 模型名称,可选'unimolv1'或'unimolv2'
|
| 32 |
+
model_size (str): 模型大小,仅在使用unimolv2时有效
|
| 33 |
+
remove_hs (bool): 是否移除氢原子
|
| 34 |
+
batch_size (int): 批处理大小
|
| 35 |
+
|
| 36 |
+
返回:
|
| 37 |
+
dict: 包含SMILES及其对应嵌入的字典
|
| 38 |
+
"""
|
| 39 |
+
# 初始化模型
|
| 40 |
+
clf = UniMolRepr(
|
| 41 |
+
data_type='molecule',
|
| 42 |
+
remove_hs=remove_hs,
|
| 43 |
+
model_name=model_name,
|
| 44 |
+
model_size=model_size
|
| 45 |
+
)
|
| 46 |
+
|
| 47 |
+
# 用于存储结果的字典
|
| 48 |
+
embeddings_dict = {}
|
| 49 |
+
error_smiles = []
|
| 50 |
+
|
| 51 |
+
# 批处理SMILES
|
| 52 |
+
total_batches = (len(smiles_list) + batch_size - 1) // batch_size
|
| 53 |
+
|
| 54 |
+
print(f"开始生成{len(smiles_list)}个SMILES的嵌入表示...")
|
| 55 |
+
|
| 56 |
+
print("开始")
|
| 57 |
+
# with suppress_stdout_stderr():
|
| 58 |
+
for i in tqdm(range(total_batches), desc="处理批次"):
|
| 59 |
+
batch = smiles_list[i*batch_size : (i+1)*batch_size]
|
| 60 |
+
|
| 61 |
+
try:
|
| 62 |
+
# 获取嵌入表示
|
| 63 |
+
batch_repr = clf.get_repr(batch, return_atomic_reprs=False)
|
| 64 |
+
|
| 65 |
+
# 将结果存入字典 (使用CLS token作为分子表示)
|
| 66 |
+
for idx, smiles in enumerate(batch):
|
| 67 |
+
embeddings_dict[smiles] = batch_repr['cls_repr'][idx]
|
| 68 |
+
|
| 69 |
+
except Exception as e:
|
| 70 |
+
print(f"处理批次 {i+1}/{total_batches} 时发生错误: {str(e)}")
|
| 71 |
+
# 记录处理失败的SMILES
|
| 72 |
+
error_smiles.extend(batch)
|
| 73 |
+
|
| 74 |
+
# 保存嵌入结果
|
| 75 |
+
with open(output_file, 'wb') as f:
|
| 76 |
+
pickle.dump(embeddings_dict, f)
|
| 77 |
+
|
| 78 |
+
print(f"嵌入生成完成!共处理 {len(smiles_list)} 个SMILES,"
|
| 79 |
+
f"{len(smiles_list) - len(error_smiles)} 个成功,"
|
| 80 |
+
f"{len(error_smiles)} 个失败。")
|
| 81 |
+
print(f"嵌入结果已保存至 {output_file}")
|
| 82 |
+
|
| 83 |
+
if error_smiles:
|
| 84 |
+
print(f"处理失败的SMILES已记录。")
|
| 85 |
+
|
| 86 |
+
return embeddings_dict
|
| 87 |
+
|
| 88 |
+
# 使用示例
|
| 89 |
+
if __name__ == "__main__":
|
| 90 |
+
|
| 91 |
+
# 假设unique_smiles是你的SMILES列表
|
| 92 |
+
unique_smiles = [
|
| 93 |
+
"CC(=O)OC1=CC=CC=C1C(=O)O", # Aspirin
|
| 94 |
+
"CN1C=NC2=C1C(=O)N(C(=O)N2C)C" # Caffeine
|
| 95 |
+
] # 示例SMILES列表
|
| 96 |
+
unique_smiles = pd.read_csv('./LINCS2020/LINCS2020_smiles.csv')['SMILES'].tolist()
|
| 97 |
+
|
| 98 |
+
# UniMol V1
|
| 99 |
+
# embeddings = get_unimol_embeddings(
|
| 100 |
+
# smiles_list=unique_smiles,
|
| 101 |
+
# output_file="embeddings/UniMol_emb512.pkl",
|
| 102 |
+
# model_name='unimolv1',
|
| 103 |
+
# model_size='84m',
|
| 104 |
+
# remove_hs=False,
|
| 105 |
+
# batch_size=32
|
| 106 |
+
# )
|
| 107 |
+
|
| 108 |
+
# UniMol V2
|
| 109 |
+
embeddings = get_unimol_embeddings(
|
| 110 |
+
smiles_list=unique_smiles,
|
| 111 |
+
output_file="embeddings/UniMolV2_emb1024.pkl", # save path
|
| 112 |
+
model_name='unimolv2', # 修改为 v2 版本
|
| 113 |
+
model_size='310m', # 指定 v2 模型大小(根据需要选择)
|
| 114 |
+
remove_hs=False,
|
| 115 |
+
batch_size=32
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
# 打印样例嵌入
|
| 119 |
+
sample_smiles = unique_smiles[0]
|
| 120 |
+
print(f"SMILES: {sample_smiles}")
|
| 121 |
+
print(f"嵌入向量: {embeddings[sample_smiles]}")
|
| 122 |
+
print(f"嵌入维度: {len(embeddings[sample_smiles])}")
|
| 123 |
+
|
| 124 |
+
|
upload.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import HfApi
|
| 2 |
+
|
| 3 |
+
print("Initializing upload...")
|
| 4 |
+
|
| 5 |
+
api = HfApi()
|
| 6 |
+
|
| 7 |
+
# 你的配置
|
| 8 |
+
src_folder = "/data/boom/MVCBench/Github/data" # 本地源文件夹
|
| 9 |
+
repo_id = "Boom5426/MVCBench"
|
| 10 |
+
|
| 11 |
+
try:
|
| 12 |
+
api.upload_large_folder(
|
| 13 |
+
folder_path=src_folder,
|
| 14 |
+
repo_id=repo_id,
|
| 15 |
+
repo_type="dataset",
|
| 16 |
+
# 注意:这里去掉了 path_in_repo
|
| 17 |
+
# upload_large_folder 会默认把 src_folder 里的内容直接铺在仓库根目录下
|
| 18 |
+
)
|
| 19 |
+
print("Upload completed successfully!")
|
| 20 |
+
except Exception as e:
|
| 21 |
+
print(f"An error occurred: {e}")
|