Skip to content

Commit f659311

Browse files
committed
add output for prepare-setup data cell
1 parent b5abb0a commit f659311

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

tutorials/data_exploration_chebi.ipynb

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,53 @@
153153
},
154154
{
155155
"cell_type": "code",
156-
"execution_count": null,
156+
"execution_count": 14,
157157
"id": "d0a58e2bd9c0e6d9",
158158
"metadata": {},
159-
"outputs": [],
159+
"outputs": [
160+
{
161+
"name": "stdout",
162+
"output_type": "stream",
163+
"text": [
164+
"Checking for processed data in data\\chebi_v231\\ChEBI50\\processed\n",
165+
"Missing processed data file (`data.pkl` file)\n",
166+
"Missing raw chebi data related to version: v_231, Downloading...\n",
167+
"Compute transitive closure\n",
168+
"Process graph\n"
169+
]
170+
},
171+
{
172+
"name": "stderr",
173+
"output_type": "stream",
174+
"text": [
175+
"Check for processed data in data\\chebi_v231\\ChEBI50\\processed\\smiles_token\n",
176+
"Cross-validation enabled: False\n"
177+
]
178+
},
179+
{
180+
"name": "stdout",
181+
"output_type": "stream",
182+
"text": [
183+
"Missing transformed data (`data.pt` file). Transforming data.... \n",
184+
"Processing 185007 lines...\n"
185+
]
186+
},
187+
{
188+
"name": "stderr",
189+
"output_type": "stream",
190+
"text": [
191+
"100%|█████████████████████████████████████████████████████████████████████████| 185007/185007 [05:43<00:00, 539.23it/s]\n"
192+
]
193+
},
194+
{
195+
"name": "stdout",
196+
"output_type": "stream",
197+
"text": [
198+
"saving 771 tokens to G:\\github-aditya0by0\\python-chebai\\chebai\\preprocessing\\bin\\smiles_token\\tokens.txt...\n",
199+
"first 10 tokens: ['[*-]', '[Al-]', '[F-]', '.', '[H]', '[N]', '(', ')', '[Ag+]', 'C']\n"
200+
]
201+
}
202+
],
160203
"source": [
161204
"chebi_class.prepare_data()\n",
162205
"chebi_class.setup()"

tutorials/data_exploration_go.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@
164164
"text": [
165165
"Checking for processed data in data\\GO_UniProt\\GO250_BP_1002\\processed\n",
166166
"Missing processed data file (`data.pkl` file)\n",
167+
"Downloading Swiss UniProt data....\n",
168+
"Downloading to temporary file C:\\Users\\HP\\AppData\\Local\\Temp\\tmp7pp677ik\n",
169+
"Downloaded to C:\\Users\\HP\\AppData\\Local\\Temp\\tmp7pp677ik\n",
170+
"Unzipping the file....\n",
171+
"Unpacked and saved to data\\GO_UniProt\\raw\\uniprot_sprot.dat\n",
172+
"Removed temporary file C:\\Users\\HP\\AppData\\Local\\Temp\\tmp7pp677ik\n",
173+
"Missing Gene Ontology raw data\n",
174+
"Downloading Gene Ontology data....\n",
167175
"Extracting class hierarchy...\n",
168176
"Compute transitive closure\n",
169177
"Processing graph\n",

0 commit comments

Comments
 (0)