Skip to content

Commit 6da1fce

Browse files
committed
fix minor issues
1 parent 1b50c99 commit 6da1fce

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

notebooks/getting_started/part2_searching_basics.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"cell_type": "code",
6666
"execution_count": null,
6767
"metadata": {
68-
"id": "bDGChJBK9ooq"
68+
"id": "bDGChJBK9ooq",
69+
"cellView": "form"
6970
},
7071
"outputs": [],
7172
"source": [
@@ -139,7 +140,7 @@
139140
" bigquery-public-data.idc_current.dicom_all\n",
140141
"```\n",
141142
"\n",
142-
"To run this query interactively, copy the query above to the clipboard, paste it into the Editor tab in the [BigQuery SQL workspace](https://console.cloud.google.com/bigquery), and hit the \"Run\" button. Within few moments you should be able to see the list of collections in IDC in the \"Query results\" section of the interface.\n",
143+
"To run this query interactively, copy the query above to the clipboard, paste it into the query tab in the [BigQuery SQL workspace](https://console.cloud.google.com/bigquery), and hit the \"Run\" button. Within few moments you should be able to see the list of collections in IDC in the \"Query results\" section of the interface.\n",
143144
"\n",
144145
"![bq_run](https://www.dropbox.com/s/6ah98n6e9ik18if/bq_run.png?raw=1)\n",
145146
"\n",
@@ -167,12 +168,12 @@
167168
"2. `idc_current`is a _dataset_ within the `bigquery-public-data` project. Think of BigQuery datasets as containers that are used to organize and control access to the tables within the project.\n",
168169
"3. `dicom_all` is one of the tables within the `idc_current` dataset. As you spend more time learning about IDC, you will hopefully leverage other tables available in that dataset.\n",
169170
"\n",
170-
"If you now look back at the [BigQuery console](https://console.cloud.google.com/bigquery) and expand the list of datasets under the `bigquery-public-data` project, you will see that in addition to the `idc_current` dataset there are also datasets `idc_v12`, `idc_v11`, etc all the way to `idc_v1`. Those datasets correspond to the IDC data release versions, with `idc_current` being an alias for the latest (at the moment, v12) version of IDC data. \n",
171+
"If you now look back at the [BigQuery console](https://console.cloud.google.com/bigquery) and expand the list of datasets under the `bigquery-public-data` project, you will see that in addition to the `idc_current` dataset there are also datasets `idc_v14`, `idc_v13`, etc all the way to `idc_v1`. Those datasets correspond to the IDC data release versions, with `idc_current` being an alias for the latest (at the moment of writing this, v14 is the latest release) version of IDC data. \n",
171172
"\n",
172173
"We will not spend time discussing how IDC versioning works, but it is important to know that \n",
173174
"\n",
174175
"1. IDC data is versioned;\n",
175-
"2. queries against the `idc_current` dataset are equivalent to the queries against the latest version (currently, `idc_v12`) of IDC data;\n",
176+
"2. queries against the `idc_current` dataset are equivalent to the queries against the latest version (currently, `idc_v14`) of IDC data;\n",
176177
"3. if you want the results of the queries to be persistent, write those against `idc_v*` datasets instead of `idc_current`."
177178
]
178179
},
@@ -370,6 +371,8 @@
370371
" # Use AND operator to combine the filter values for the\n",
371372
" # Modality and tcia_tumorLocation to select collections that\n",
372373
" # include MR images for Lung cancer locations\n",
374+
" # Note that SQL uses single = for comparison, and strings should\n",
375+
" # be enclosed in \"\"\n",
373376
"\"\"\"\n",
374377
"\n",
375378
"selection_result = bq_client.query(selection_query)\n",
@@ -415,7 +418,6 @@
415418
"# we specified in the beginning of the notebook!\n",
416419
"bq_client = bigquery.Client(my_ProjectID)\n",
417420
"\n",
418-
"# Execution of this cell will fail unless you wrote the query below!\n",
419421
"selection_query = \"\"\"\n",
420422
"SELECT \n",
421423
" COUNT(DISTINCT(PatientID)) as patient_cnt\n",

0 commit comments

Comments
 (0)