{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Reviewing data\n", "\n", "Author: Martin Horvat, March 2025" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from scipy import io\n", "import matplotlib.pyplot as plt\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "suv_filename = \"../data/suv_percentilesSLOthenUWM.mat\"\n", "flags_filename=\"../data/flags_combined.mat\"" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "\"\"\"\n", "Loading all data\n", "\"\"\"\n", "suv_dict = io.loadmat(suv_filename)\n", "flags_dict = io.loadmat(flags_filename)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['__header__', '__version__', '__globals__', 'bowel_SUVperc_COMBINED', 'lung_SUVperc_COMBINED', 'thyroid_SUVperc_COMBINED'])" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# what is suv dict\n", "suv_dict.keys()" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['__header__', '__version__', '__globals__', 'days', 'flags', 'patients'])" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "flags_dict.keys()" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | suv_name | \n", "flag_idx | \n", "
|---|---|---|
| organ | \n", "\n", " | \n", " |
| bowel | \n", "bowel_SUVperc_COMBINED | \n", "1 | \n", "
| lung | \n", "lung_SUVperc_COMBINED | \n", "3 | \n", "
| thyroid | \n", "thyroid_SUVperc_COMBINED | \n", "5 | \n", "