{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.10","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"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":"2023-05-13T06:47:09.833597Z","iopub.execute_input":"2023-05-13T06:47:09.83402Z","iopub.status.idle":"2023-05-13T06:47:09.902516Z","shell.execute_reply.started":"2023-05-13T06:47:09.833987Z","shell.execute_reply":"2023-05-13T06:47:09.901367Z"},"trusted":true},"execution_count":1,"outputs":[{"name":"stdout","text":"/kaggle/input/cafa-5-protein-function-prediction/sample_submission.tsv\n/kaggle/input/cafa-5-protein-function-prediction/IA.txt\n/kaggle/input/cafa-5-protein-function-prediction/Test (Targets)/testsuperset.fasta\n/kaggle/input/cafa-5-protein-function-prediction/Test (Targets)/testsuperset-taxon-list.tsv\n/kaggle/input/cafa-5-protein-function-prediction/Train/train_terms.tsv\n/kaggle/input/cafa-5-protein-function-prediction/Train/train_sequences.fasta\n/kaggle/input/cafa-5-protein-function-prediction/Train/train_taxonomy.tsv\n/kaggle/input/cafa-5-protein-function-prediction/Train/go-basic.obo\n","output_type":"stream"}]},{"cell_type":"code","source":"df1 = pd.read_csv('/kaggle/input/cafa-5-protein-function-prediction/sample_submission.tsv',sep = '\\t')","metadata":{"execution":{"iopub.status.busy":"2023-05-13T06:50:56.440727Z","iopub.execute_input":"2023-05-13T06:50:56.441258Z","iopub.status.idle":"2023-05-13T06:50:56.757364Z","shell.execute_reply.started":"2023-05-13T06:50:56.441218Z","shell.execute_reply":"2023-05-13T06:50:56.75618Z"},"trusted":true},"execution_count":2,"outputs":[]},{"cell_type":"code","source":"df1.head(10)","metadata":{"execution":{"iopub.status.busy":"2023-05-13T06:51:16.835031Z","iopub.execute_input":"2023-05-13T06:51:16.83554Z","iopub.status.idle":"2023-05-13T06:51:16.848469Z","shell.execute_reply.started":"2023-05-13T06:51:16.835498Z","shell.execute_reply":"2023-05-13T06:51:16.847545Z"},"trusted":true},"execution_count":4,"outputs":[{"execution_count":4,"output_type":"execute_result","data":{"text/plain":"   A0A0A0MRZ7  GO:0000001  0.123\n0  A0A0A0MRZ7  GO:0000002  0.123\n1  A0A0A0MRZ8  GO:0000001  0.123\n2  A0A0A0MRZ8  GO:0000002  0.123\n3  A0A0A0MRZ9  GO:0000001  0.123\n4  A0A0A0MRZ9  GO:0000002  0.123\n5  A0A0A0MS00  GO:0000001  0.123\n6  A0A0A0MS00  GO:0000002  0.123\n7  A0A0A0MS01  GO:0000001  0.123\n8  A0A0A0MS01  GO:0000002  0.123\n9  A0A0A0MS02  GO:0000001  0.123","text/html":"<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>A0A0A0MRZ7</th>\n      <th>GO:0000001</th>\n      <th>0.123</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>A0A0A0MRZ7</td>\n      <td>GO:0000002</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>A0A0A0MRZ8</td>\n      <td>GO:0000001</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>2</th>\n      <td>A0A0A0MRZ8</td>\n      <td>GO:0000002</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>3</th>\n      <td>A0A0A0MRZ9</td>\n      <td>GO:0000001</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>4</th>\n      <td>A0A0A0MRZ9</td>\n      <td>GO:0000002</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>5</th>\n      <td>A0A0A0MS00</td>\n      <td>GO:0000001</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>6</th>\n      <td>A0A0A0MS00</td>\n      <td>GO:0000002</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>7</th>\n      <td>A0A0A0MS01</td>\n      <td>GO:0000001</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>8</th>\n      <td>A0A0A0MS01</td>\n      <td>GO:0000002</td>\n      <td>0.123</td>\n    </tr>\n    <tr>\n      <th>9</th>\n      <td>A0A0A0MS02</td>\n      <td>GO:0000001</td>\n      <td>0.123</td>\n    </tr>\n  </tbody>\n</table>\n</div>"},"metadata":{}}]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}