{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-12-11T12:06:29.698933Z","iopub.execute_input":"2022-12-11T12:06:29.699528Z","iopub.status.idle":"2022-12-11T12:06:29.792938Z","shell.execute_reply.started":"2022-12-11T12:06:29.699398Z","shell.execute_reply":"2022-12-11T12:06:29.792085Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_rna=pd.read_csv(('/kaggle/input/rocauc-for-rna-and-ct-112/sorted_rna_by_auc_110.csv'))","metadata":{"execution":{"iopub.status.busy":"2022-12-11T12:06:30.654830Z","iopub.execute_input":"2022-12-11T12:06:30.655201Z","iopub.status.idle":"2022-12-11T12:06:30.678985Z","shell.execute_reply.started":"2022-12-11T12:06:30.655169Z","shell.execute_reply":"2022-12-11T12:06:30.677848Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_cd=pd.read_csv('/kaggle/input/analys-cd-cell-type/sorted_cd_by_auc.csv')","metadata":{"execution":{"iopub.status.busy":"2022-12-11T12:06:32.404905Z","iopub.execute_input":"2022-12-11T12:06:32.405544Z","iopub.status.idle":"2022-12-11T12:06:32.417604Z","shell.execute_reply.started":"2022-12-11T12:06:32.405511Z","shell.execute_reply":"2022-12-11T12:06:32.416655Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_rna.head()","metadata":{"execution":{"iopub.status.busy":"2022-12-10T23:04:31.122137Z","iopub.execute_input":"2022-12-10T23:04:31.122573Z","iopub.status.idle":"2022-12-10T23:04:31.149102Z","shell.execute_reply.started":"2022-12-10T23:04:31.122539Z","shell.execute_reply":"2022-12-10T23:04:31.147783Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_cd.head()","metadata":{"execution":{"iopub.status.busy":"2022-12-10T23:06:58.594760Z","iopub.execute_input":"2022-12-10T23:06:58.595132Z","iopub.status.idle":"2022-12-10T23:06:58.616835Z","shell.execute_reply.started":"2022-12-10T23:06:58.595102Z","shell.execute_reply":"2022-12-10T23:06:58.615633Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_cd_top=auc_cd.tail(15)\nauc_rna_top=auc_rna.tail(15)","metadata":{"execution":{"iopub.status.busy":"2022-12-11T12:21:15.488723Z","iopub.execute_input":"2022-12-11T12:21:15.489143Z","iopub.status.idle":"2022-12-11T12:21:15.496099Z","shell.execute_reply.started":"2022-12-11T12:21:15.489109Z","shell.execute_reply":"2022-12-11T12:21:15.494645Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_rna_top=auc_rna_top.rename(columns={'HSC cell_type rna ':'HSC cell_type', 'EryP cell_type rna ':'EryP cell_type',\n'NeuP cell_type rna ':'NeuP cell_type', 'MasP cell_type rna ':'MasP cell_type', 'MkP cell_type rna ':'MkP cell_type', \n'BP cell_type rna ':'BP cell_type', 'MoP cell_type rna ':'MoP cell_type'})","metadata":{"execution":{"iopub.status.busy":"2022-12-11T13:12:08.878892Z","iopub.execute_input":"2022-12-11T13:12:08.880035Z","iopub.status.idle":"2022-12-11T13:12:08.886305Z","shell.execute_reply.started":"2022-12-11T13:12:08.879993Z","shell.execute_reply":"2022-12-11T13:12:08.885356Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_cd_top=auc_cd_top.drop(columns=['Unnamed: 0'])\nauc_rna_top=auc_rna_top.drop(columns=['Unnamed: 0'])","metadata":{"execution":{"iopub.status.busy":"2022-12-11T12:21:17.011185Z","iopub.execute_input":"2022-12-11T12:21:17.012280Z","iopub.status.idle":"2022-12-11T12:21:17.026573Z","shell.execute_reply.started":"2022-12-11T12:21:17.012239Z","shell.execute_reply":"2022-12-11T12:21:17.025276Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"auc_cd_top=auc_cd_top.rename(columns={'HSC cell_type GeneName ':'HSC cell_type', 'EryP cell_type GeneName ':'EryP cell_type',\n'NeuP cell_type GeneName ':'NeuP cell_type', 'MasP cell_type GeneName ':'MasP cell_type', 'MkP cell_type GeneName ':'MkP cell_type', \n'BP cell_type GeneName ':'BP cell_type', 'MoP cell_type GeneName ':'MoP cell_type'})","metadata":{"execution":{"iopub.status.busy":"2022-12-11T13:12:08.892256Z","iopub.execute_input":"2022-12-11T13:12:08.893147Z","iopub.status.idle":"2022-12-11T13:12:08.900629Z","shell.execute_reply.started":"2022-12-11T13:12:08.893110Z","shell.execute_reply":"2022-12-11T13:12:08.899195Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cross=pd.DataFrame()\nlist1=auc_cd_top.columns\nlist2=auc_rna_top.columns\n\nfor i in auc_cd_top.columns:\n    res=pd.Series(list(set(auc_cd_top[i]).intersection(set(auc_rna_top[i]))))\n    cross[i]=res\n    #print(res)","metadata":{"execution":{"iopub.status.busy":"2022-12-11T13:12:08.907360Z","iopub.execute_input":"2022-12-11T13:12:08.907787Z","iopub.status.idle":"2022-12-11T13:12:08.930352Z","shell.execute_reply.started":"2022-12-11T13:12:08.907753Z","shell.execute_reply":"2022-12-11T13:12:08.929270Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cross","metadata":{"execution":{"iopub.status.busy":"2022-12-11T13:12:23.937266Z","iopub.execute_input":"2022-12-11T13:12:23.938049Z","iopub.status.idle":"2022-12-11T13:12:23.966741Z","shell.execute_reply.started":"2022-12-11T13:12:23.937998Z","shell.execute_reply":"2022-12-11T13:12:23.964973Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"cross_copy=cross.dropna(axis=1, how='all')\ncross_copy","metadata":{"execution":{"iopub.status.busy":"2022-12-11T13:12:24.793981Z","iopub.execute_input":"2022-12-11T13:12:24.794463Z","iopub.status.idle":"2022-12-11T13:12:24.817810Z","shell.execute_reply.started":"2022-12-11T13:12:24.794424Z","shell.execute_reply":"2022-12-11T13:12:24.816105Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}