Skip to content

Commit

Permalink
Tutorals and code modified
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelRuizMoreno committed Aug 2, 2023
1 parent f009609 commit 744a735
Show file tree
Hide file tree
Showing 4 changed files with 2,239 additions and 1,011 deletions.
3,236 changes: 2,232 additions & 1,004 deletions MetabolitesPredictor.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions RuleGenerator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"metadata": {},
"outputs": [],
"source": [
"from microberx.RuleGenerator import RuleGenerator\n",
"from MicrobeRX.RuleGenerator import RuleGenerator\n",
"\n",
"from pprint import pprint\n",
"\n",
Expand All @@ -19,7 +19,7 @@
"id": "870a13f8-057c-480e-aa45-66e85b0fccee",
"metadata": {},
"source": [
"## MetaNetX"
"## Reaction Data"
]
},
{
Expand Down Expand Up @@ -267,9 +267,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Chem_3",
"display_name": "MicrobeRX",
"language": "python",
"name": "chem_3"
"name": "microberx"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -281,7 +281,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.13"
"version": "3.10.9"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion package/MicrobeRX/Predictor/Predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run_prediction(self, query:Chem.Mol,name:str='metabolite'):
tmp_table['product'] = self.rules_table['product'][index]
tmp_table['num_atoms'] = self.rules_table.num_atoms[index]
tmp_table['reacting_atoms_efficiency'] = round(self.rules_table.num_atoms[index]/self.query_atoms_num,3)
self.predicted_metabolites=pd.concat([predicted_metabolites,tmp_table],ignore_index=True)
self.predicted_metabolites=pd.concat([self.predicted_metabolites,tmp_table],ignore_index=True)
#except Exception:
#pass

Expand Down
2 changes: 1 addition & 1 deletion package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()

VERSION = 'v0.1.3'
VERSION = 'v0.1.4'
DESCRIPTION = 'MicrobeRX is A tool for enzymatic reaction-based metabolite prediction in the gut microbiome.'
#LONG_DESCRIPTION = ''

Expand Down

0 comments on commit 744a735

Please sign in to comment.