diff --git a/nbs_tests/constants/modification.ipynb b/nbs_tests/constants/modification.ipynb index 9163cb7c..8de89896 100644 --- a/nbs_tests/constants/modification.ipynb +++ b/nbs_tests/constants/modification.ipynb @@ -31,9 +31,12 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], + "metadata": { + "ExecuteTime": { + "end_time": "2024-11-15T12:12:52.218842Z", + "start_time": "2024-11-15T12:12:50.057596Z" + } + }, "source": [ "import os\n", "\n", @@ -41,18 +44,99 @@ "import pandas as pd\n", "\n", "from alphabase.constants._const import CONST_FILE_FOLDER\n", + "import alphabase.constants.modification as modification\n", "from alphabase.constants.modification import MOD_DF, calc_modification_mass, load_mod_df, calc_modloss_mass, \\\n", " add_modifications_for_lower_case_AA, update_all_by_MOD_DF, MOD_INFO_DICT, add_new_modifications, MOD_Composition, \\\n", " MOD_MASS, MOD_LOSS_IMPORTANCE" - ] + ], + "outputs": [], + "execution_count": 1 }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "metadata": { + "ExecuteTime": { + "end_time": "2024-11-15T12:12:52.883420Z", + "start_time": "2024-11-15T12:12:52.872386Z" + } + }, + "source": "modification.MOD_DF", "outputs": [ { "data": { + "text/plain": [ + " mod_name unimod_mass \\\n", + "mod_name \n", + "Acetyl@T Acetyl@T 42.010565 \n", + "Acetyl@Protein_N-term Acetyl@Protein_N-term 42.010565 \n", + "Acetyl@S Acetyl@S 42.010565 \n", + "Acetyl@C Acetyl@C 42.010565 \n", + "Acetyl@Any_N-term Acetyl@Any_N-term 42.010565 \n", + "... ... ... \n", + "Ethyl@Protein_C-term Ethyl@Protein_C-term 0.000000 \n", + "Cation:Na@Protein_C-term Cation:Na@Protein_C-term 0.000000 \n", + "Cation:K@Protein_C-term Cation:K@Protein_C-term 0.000000 \n", + "Cation:Cu[I]@Protein_C-term Cation:Cu[I]@Protein_C-term 0.000000 \n", + "Cation:Li@Protein_C-term Cation:Li@Protein_C-term 0.000000 \n", + "\n", + " unimod_avge_mass composition unimod_modloss \\\n", + "mod_name \n", + "Acetyl@T 42.0367 H(2)C(2)O(1) 0.0 \n", + "Acetyl@Protein_N-term 42.0367 H(2)C(2)O(1) 0.0 \n", + "Acetyl@S 42.0367 H(2)C(2)O(1) 0.0 \n", + "Acetyl@C 42.0367 H(2)C(2)O(1) 0.0 \n", + "Acetyl@Any_N-term 42.0367 H(2)C(2)O(1) 0.0 \n", + "... ... ... ... \n", + "Ethyl@Protein_C-term 0.0000 C(2)H(4) 0.0 \n", + "Cation:Na@Protein_C-term 0.0000 H(-1)Na(1) 0.0 \n", + "Cation:K@Protein_C-term 0.0000 H(-1)K(1) 0.0 \n", + "Cation:Cu[I]@Protein_C-term 0.0000 Cu(1)H(-1) 0.0 \n", + "Cation:Li@Protein_C-term 0.0000 H(-1)Li(1) 0.0 \n", + "\n", + " modloss_composition classification \\\n", + "mod_name \n", + "Acetyl@T Post-translational \n", + "Acetyl@Protein_N-term Post-translational \n", + "Acetyl@S Post-translational \n", + "Acetyl@C Post-translational \n", + "Acetyl@Any_N-term Multiple \n", + "... ... ... \n", + "Ethyl@Protein_C-term User-added \n", + "Cation:Na@Protein_C-term User-added \n", + "Cation:K@Protein_C-term User-added \n", + "Cation:Cu[I]@Protein_C-term User-added \n", + "Cation:Li@Protein_C-term User-added \n", + "\n", + " unimod_id smiles modloss_importance mass \\\n", + "mod_name \n", + "Acetyl@T 1 0.0 42.010565 \n", + "Acetyl@Protein_N-term 1 C(=O)C 0.0 42.010565 \n", + "Acetyl@S 1 0.0 42.010565 \n", + "Acetyl@C 1 0.0 42.010565 \n", + "Acetyl@Any_N-term 1 C(=O)C 0.0 42.010565 \n", + "... ... ... ... ... \n", + "Ethyl@Protein_C-term 0 OCC 0.0 28.031300 \n", + "Cation:Na@Protein_C-term 0 O[Na] 0.0 21.981944 \n", + "Cation:K@Protein_C-term 0 O[K] 0.0 37.955881 \n", + "Cation:Cu[I]@Protein_C-term 0 O[Cu] 0.0 61.921773 \n", + "Cation:Li@Protein_C-term 0 O[Li] 0.0 6.008178 \n", + "\n", + " modloss_original modloss \n", + "mod_name \n", + "Acetyl@T 0.0 0.0 \n", + "Acetyl@Protein_N-term 0.0 0.0 \n", + "Acetyl@S 0.0 0.0 \n", + "Acetyl@C 0.0 0.0 \n", + "Acetyl@Any_N-term 0.0 0.0 \n", + "... ... ... \n", + "Ethyl@Protein_C-term 0.0 0.0 \n", + "Cation:Na@Protein_C-term 0.0 0.0 \n", + "Cation:K@Protein_C-term 0.0 0.0 \n", + "Cation:Cu[I]@Protein_C-term 0.0 0.0 \n", + "Cation:Li@Protein_C-term 0.0 0.0 \n", + "\n", + "[2796 rows x 13 columns]" + ], "text/html": [ "