From 336d908e4771ddbe436576798db87bb4abff06f3 Mon Sep 17 00:00:00 2001 From: Bill Duncan Date: Tue, 6 Nov 2018 23:53:24 -0500 Subject: [PATCH] add file with metadata about tooth types --- src/analysis/surival_01.ipynb | 769 +------------------------------ src/analysis/tooth_meta_info.csv | 33 ++ 2 files changed, 38 insertions(+), 764 deletions(-) create mode 100644 src/analysis/tooth_meta_info.csv diff --git a/src/analysis/surival_01.ipynb b/src/analysis/surival_01.ipynb index 626d370..0111215 100644 --- a/src/analysis/surival_01.ipynb +++ b/src/analysis/surival_01.ipynb @@ -2200,770 +2200,9 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": 109, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
toothtooth_labelmolarpremolarcanineincisorupperlowerposterioranteriorrightleftright upperright lowerleft upperleft lower
01Right upper third secondary molar tooth10001010101000
12Right upper second secondary molar tooth10001010101000
23Right upper first secondary molar tooth10001010101000
34Right upper second secondary premolar tooth01001010101000
45Right upper first secondary premolar tooth01001010101000
56Right upper secondary canine tooth00101001101000
67Right upper lateral secondary incisor tooth00011001101000
78Right upper central secondary incisor tooth00011001101000
89Left upper central secondary incisor tooth00011001010010
910Left upper lateral secondary incisor tooth00011001010010
1011Left upper secondary canine tooth00101001010010
1112Left upper first secondary premolar tooth01001010010010
1213Left upper second secondary premolar tooth01001010010010
1314Left upper first secondary molar tooth10001010010010
1415Left upper second secondary molar tooth10001010010010
1516Left upper third secondary molar tooth10001010010010
1617Left lower third secondary molar tooth10000110010001
1718Left lower second secondary molar tooth10000110010001
1819Left lower first secondary molar tooth10000110010001
1920Left lower second secondary premolar tooth01000110010001
2021Left lower first secondary premolar tooth01000110010001
2122Left lower secondary canine tooth00100101010001
2223Left lower lateral secondary incisor tooth00010101010001
2324Left lower central secondary incisor tooth00010101010001
2425Right lower central secondary incisor tooth00010101100100
2526Right lower lateral secondary incisor tooth00010101100100
2627Right lower secondary canine tooth00100101100100
2728Right lower first secondary premolar tooth01000110100100
2829Right lower second secondary premolar tooth01000110100100
2930Right lower first secondary molar tooth10000110100100
3031Right lower second secondary molar tooth10000110100100
3132Right lower third secondary molar tooth10000110100100
\n", - "
" - ], - "text/plain": [ - " tooth tooth_label molar premolar \\\n", - "0 1 Right upper third secondary molar tooth 1 0 \n", - "1 2 Right upper second secondary molar tooth 1 0 \n", - "2 3 Right upper first secondary molar tooth 1 0 \n", - "3 4 Right upper second secondary premolar tooth 0 1 \n", - "4 5 Right upper first secondary premolar tooth 0 1 \n", - "5 6 Right upper secondary canine tooth 0 0 \n", - "6 7 Right upper lateral secondary incisor tooth 0 0 \n", - "7 8 Right upper central secondary incisor tooth 0 0 \n", - "8 9 Left upper central secondary incisor tooth 0 0 \n", - "9 10 Left upper lateral secondary incisor tooth 0 0 \n", - "10 11 Left upper secondary canine tooth 0 0 \n", - "11 12 Left upper first secondary premolar tooth 0 1 \n", - "12 13 Left upper second secondary premolar tooth 0 1 \n", - "13 14 Left upper first secondary molar tooth 1 0 \n", - "14 15 Left upper second secondary molar tooth 1 0 \n", - "15 16 Left upper third secondary molar tooth 1 0 \n", - "16 17 Left lower third secondary molar tooth 1 0 \n", - "17 18 Left lower second secondary molar tooth 1 0 \n", - "18 19 Left lower first secondary molar tooth 1 0 \n", - "19 20 Left lower second secondary premolar tooth 0 1 \n", - "20 21 Left lower first secondary premolar tooth 0 1 \n", - "21 22 Left lower secondary canine tooth 0 0 \n", - "22 23 Left lower lateral secondary incisor tooth 0 0 \n", - "23 24 Left lower central secondary incisor tooth 0 0 \n", - "24 25 Right lower central secondary incisor tooth 0 0 \n", - "25 26 Right lower lateral secondary incisor tooth 0 0 \n", - "26 27 Right lower secondary canine tooth 0 0 \n", - "27 28 Right lower first secondary premolar tooth 0 1 \n", - "28 29 Right lower second secondary premolar tooth 0 1 \n", - "29 30 Right lower first secondary molar tooth 1 0 \n", - "30 31 Right lower second secondary molar tooth 1 0 \n", - "31 32 Right lower third secondary molar tooth 1 0 \n", - "\n", - " canine incisor upper lower posterior anterior right left \\\n", - "0 0 0 1 0 1 0 1 0 \n", - "1 0 0 1 0 1 0 1 0 \n", - "2 0 0 1 0 1 0 1 0 \n", - "3 0 0 1 0 1 0 1 0 \n", - "4 0 0 1 0 1 0 1 0 \n", - "5 1 0 1 0 0 1 1 0 \n", - "6 0 1 1 0 0 1 1 0 \n", - "7 0 1 1 0 0 1 1 0 \n", - "8 0 1 1 0 0 1 0 1 \n", - "9 0 1 1 0 0 1 0 1 \n", - "10 1 0 1 0 0 1 0 1 \n", - "11 0 0 1 0 1 0 0 1 \n", - "12 0 0 1 0 1 0 0 1 \n", - "13 0 0 1 0 1 0 0 1 \n", - "14 0 0 1 0 1 0 0 1 \n", - "15 0 0 1 0 1 0 0 1 \n", - "16 0 0 0 1 1 0 0 1 \n", - "17 0 0 0 1 1 0 0 1 \n", - "18 0 0 0 1 1 0 0 1 \n", - "19 0 0 0 1 1 0 0 1 \n", - "20 0 0 0 1 1 0 0 1 \n", - "21 1 0 0 1 0 1 0 1 \n", - "22 0 1 0 1 0 1 0 1 \n", - "23 0 1 0 1 0 1 0 1 \n", - "24 0 1 0 1 0 1 1 0 \n", - "25 0 1 0 1 0 1 1 0 \n", - "26 1 0 0 1 0 1 1 0 \n", - "27 0 0 0 1 1 0 1 0 \n", - "28 0 0 0 1 1 0 1 0 \n", - "29 0 0 0 1 1 0 1 0 \n", - "30 0 0 0 1 1 0 1 0 \n", - "31 0 0 0 1 1 0 1 0 \n", - "\n", - " right upper right lower left upper left lower \n", - "0 1 0 0 0 \n", - "1 1 0 0 0 \n", - "2 1 0 0 0 \n", - "3 1 0 0 0 \n", - "4 1 0 0 0 \n", - "5 1 0 0 0 \n", - "6 1 0 0 0 \n", - "7 1 0 0 0 \n", - "8 0 0 1 0 \n", - "9 0 0 1 0 \n", - "10 0 0 1 0 \n", - "11 0 0 1 0 \n", - "12 0 0 1 0 \n", - "13 0 0 1 0 \n", - "14 0 0 1 0 \n", - "15 0 0 1 0 \n", - "16 0 0 0 1 \n", - "17 0 0 0 1 \n", - "18 0 0 0 1 \n", - "19 0 0 0 1 \n", - "20 0 0 0 1 \n", - "21 0 0 0 1 \n", - "22 0 0 0 1 \n", - "23 0 0 0 1 \n", - "24 0 1 0 0 \n", - "25 0 1 0 0 \n", - "26 0 1 0 0 \n", - "27 0 1 0 0 \n", - "28 0 1 0 0 \n", - "29 0 1 0 0 \n", - "30 0 1 0 0 \n", - "31 0 1 0 0 " - ] - }, - "execution_count": 108, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# add meta info about tooth type and region in mouth\n", "posterior_tooth = [1, 2, 3, 4, 5, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 28, 29, 30, 31, 32]\n", @@ -2991,7 +2230,9 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "tooth_info.to_csv(\"tooth_meta_info.csv\", index=False) # save tooth info dataframe" + ] }, { "cell_type": "code", diff --git a/src/analysis/tooth_meta_info.csv b/src/analysis/tooth_meta_info.csv new file mode 100644 index 0000000..d55fd97 --- /dev/null +++ b/src/analysis/tooth_meta_info.csv @@ -0,0 +1,33 @@ +tooth,tooth_label,molar,premolar,canine,incisor,upper,lower,posterior,anterior,right,left,right upper,right lower,left upper,left lower +1,Right upper third secondary molar tooth,1,0,0,0,1,0,1,0,1,0,1,0,0,0 +2,Right upper second secondary molar tooth,1,0,0,0,1,0,1,0,1,0,1,0,0,0 +3,Right upper first secondary molar tooth,1,0,0,0,1,0,1,0,1,0,1,0,0,0 +4,Right upper second secondary premolar tooth,0,1,0,0,1,0,1,0,1,0,1,0,0,0 +5,Right upper first secondary premolar tooth,0,1,0,0,1,0,1,0,1,0,1,0,0,0 +6,Right upper secondary canine tooth,0,0,1,0,1,0,0,1,1,0,1,0,0,0 +7,Right upper lateral secondary incisor tooth,0,0,0,1,1,0,0,1,1,0,1,0,0,0 +8,Right upper central secondary incisor tooth,0,0,0,1,1,0,0,1,1,0,1,0,0,0 +9,Left upper central secondary incisor tooth,0,0,0,1,1,0,0,1,0,1,0,0,1,0 +10,Left upper lateral secondary incisor tooth,0,0,0,1,1,0,0,1,0,1,0,0,1,0 +11,Left upper secondary canine tooth,0,0,1,0,1,0,0,1,0,1,0,0,1,0 +12,Left upper first secondary premolar tooth,0,1,0,0,1,0,1,0,0,1,0,0,1,0 +13,Left upper second secondary premolar tooth,0,1,0,0,1,0,1,0,0,1,0,0,1,0 +14,Left upper first secondary molar tooth,1,0,0,0,1,0,1,0,0,1,0,0,1,0 +15,Left upper second secondary molar tooth,1,0,0,0,1,0,1,0,0,1,0,0,1,0 +16,Left upper third secondary molar tooth,1,0,0,0,1,0,1,0,0,1,0,0,1,0 +17,Left lower third secondary molar tooth,1,0,0,0,0,1,1,0,0,1,0,0,0,1 +18,Left lower second secondary molar tooth,1,0,0,0,0,1,1,0,0,1,0,0,0,1 +19,Left lower first secondary molar tooth,1,0,0,0,0,1,1,0,0,1,0,0,0,1 +20,Left lower second secondary premolar tooth,0,1,0,0,0,1,1,0,0,1,0,0,0,1 +21,Left lower first secondary premolar tooth,0,1,0,0,0,1,1,0,0,1,0,0,0,1 +22,Left lower secondary canine tooth,0,0,1,0,0,1,0,1,0,1,0,0,0,1 +23,Left lower lateral secondary incisor tooth,0,0,0,1,0,1,0,1,0,1,0,0,0,1 +24,Left lower central secondary incisor tooth,0,0,0,1,0,1,0,1,0,1,0,0,0,1 +25,Right lower central secondary incisor tooth,0,0,0,1,0,1,0,1,1,0,0,1,0,0 +26,Right lower lateral secondary incisor tooth,0,0,0,1,0,1,0,1,1,0,0,1,0,0 +27,Right lower secondary canine tooth,0,0,1,0,0,1,0,1,1,0,0,1,0,0 +28,Right lower first secondary premolar tooth,0,1,0,0,0,1,1,0,1,0,0,1,0,0 +29,Right lower second secondary premolar tooth,0,1,0,0,0,1,1,0,1,0,0,1,0,0 +30,Right lower first secondary molar tooth,1,0,0,0,0,1,1,0,1,0,0,1,0,0 +31,Right lower second secondary molar tooth,1,0,0,0,0,1,1,0,1,0,0,1,0,0 +32,Right lower third secondary molar tooth,1,0,0,0,0,1,1,0,1,0,0,1,0,0