Skip to content

Commit b0fdb65

Browse files
minor changes in text and code
1 parent 7e2058e commit b0fdb65

1 file changed

Lines changed: 4 additions & 46 deletions

File tree

notebooks/collections_demos/RMS-Mutation-Prediction-Expert-Annotations_exploration.ipynb

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -235,34 +235,11 @@
235235
"id": "xhNohZuPm_hq",
236236
"outputId": "2d3aae96-d2b4-43a1-ebc6-397006b93b56"
237237
},
238-
"outputs": [
239-
{
240-
"data": {
241-
"text/html": [
242-
"\n",
243-
" <iframe\n",
244-
" width=\"1600\"\n",
245-
" height=\"900\"\n",
246-
" src=\"https://viewer.imaging.datacommons.cancer.gov/slim/studies/2.25.155017484756498730492136597238994838876\"\n",
247-
" frameborder=\"0\"\n",
248-
" allowfullscreen\n",
249-
" \n",
250-
" ></iframe>\n",
251-
" "
252-
],
253-
"text/plain": [
254-
"<IPython.lib.display.IFrame at 0x7f6f352e9690>"
255-
]
256-
},
257-
"execution_count": 12,
258-
"metadata": {},
259-
"output_type": "execute_result"
260-
}
261-
],
238+
"outputs": [],
262239
"source": [
263240
"viewer_url = idc_client.get_viewer_URL(studyInstanceUID=rms_srs['StudyInstanceUID'].iloc[0], viewer_selector='slim')\n",
264241
"from IPython.display import IFrame\n",
265-
"IFrame(viewer_url, width=1600, height=900)\n"
242+
"IFrame(viewer_url, width=1600, height=900)"
266243
]
267244
},
268245
{
@@ -1352,26 +1329,7 @@
13521329
"id": "996QfHpuHrmI",
13531330
"outputId": "6083da12-80bd-44f5-ff17-14e8449e9e95"
13541331
},
1355-
"outputs": [
1356-
{
1357-
"name": "stdout",
1358-
"output_type": "stream",
1359-
"text": [
1360-
"Finding type: Embryonal rhabdomyosarcoma\n",
1361-
"ROI GraphicTypeValues3D.POLYGON\n",
1362-
"[[13.92508507 40.25288391 0. ]\n",
1363-
" [13.73841286 39.99548721 0. ]\n",
1364-
" [13.66768551 39.51605225 0. ]\n",
1365-
" ...\n",
1366-
" [13.87456512 40.24278259 0. ]\n",
1367-
" [13.86446095 40.23772812 0. ]\n",
1368-
" [13.92508507 40.25288391 0. ]]\n",
1369-
"ROI refers to FrameOfReferenceUID: 1.3.6.1.4.1.5962.99.1.2774652108.856667456.1686401864908.7.0\n",
1370-
"\n",
1371-
"\n"
1372-
]
1373-
}
1374-
],
1332+
"outputs": [],
13751333
"source": [
13761334
"# Extract different attributes from the measurement group\n",
13771335
"for m_group in planar_measurement_groups_example1[:3]:\n",
@@ -1415,7 +1373,7 @@
14151373
" planar_measurement_groups = extract_planar_measurements_groups(dcm_sr_path)\n",
14161374
" for m_group in planar_measurement_groups:\n",
14171375
" study_instance_uid = hd.sr.srread(dcm_sr_path).StudyInstanceUID\n",
1418-
" slim_viewer_url = get_slim_viewer_url(study_instance_uid)\n",
1376+
" slim_viewer_url = idc_client.get_viewer_URL(studyInstanceUID=study_instance_uid, viewer_selector='slim')\n",
14191377
" measurements_and_rois[(dcm_sr_path, slim_viewer_url)][m_group.finding_type.meaning].append(m_group.roi)\n",
14201378
"\n",
14211379
"df_measurements_and_rois = pd.DataFrame.from_dict(measurements_and_rois, orient='index')"

0 commit comments

Comments
 (0)