Skip to content

Commit

Permalink
fix: fit to new rpPathway specs
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Oct 23, 2023
1 parent ceb0a57 commit d69377d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rptools/rpfba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Please see `rptool` documentation.
from rptools.rplibs import rpPathway
from rptools.rpfba import runFBA

pathway = rpPathway.from_rpSBML(infile='tests/rpfba/data/sets/measured_3/B.xml')
pathway = rpPathway(infile='tests/rpfba/data/sets/measured_3/B.xml')

results = runFBA(
pathway=pathway,
Expand Down
2 changes: 1 addition & 1 deletion rptools/rplibs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def entry_point():

# Build the list of pathways to rank
pathways = [
rpPathway.from_rpSBML(
rpPathway(
infile=pathway_filename,
logger=logger
) for pathway_filename in args.pathways
Expand Down
2 changes: 1 addition & 1 deletion rptools/rprank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Please see `rptool` documentation.
from rptools.rpscore import predict_score
from rptools.rplibs import rpPathway

pathway = rpPathway.from_rpSBML(
pathway = rpPathway(
infile='tests/rpscore/data/pathway.xml'
)

Expand Down
2 changes: 1 addition & 1 deletion rptools/rprank/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def entry_point():
# Build the list of pathways to rank (with their filename)
pathways = {}
for pathway_fname in args.pathways:
pathway = rpPathway.from_rpSBML(
pathway = rpPathway(
infile=pathway_fname,
logger=logger
)
Expand Down
2 changes: 1 addition & 1 deletion rptools/rpscore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Please see `rptool` documentation.
from rptools.rpscore import predict_score
from rptools.rplibs import rpPathway

pathway = rpPathway.from_rpSBML(
pathway = rpPathway(
infile='tests/rpscore/data/pathway.xml'
)

Expand Down
4 changes: 2 additions & 2 deletions rptools/rpscore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def entry_point():
# pathways = []
# for pathway in args.pathways:
# pathways.append(
# rpPathway.from_rpSBML(
# rpPathway(
# infile=pathway,
# logger=logger
# )
# )

pathway = rpPathway.from_rpSBML(
pathway = rpPathway(
infile=args.infile,
logger=logger
)
Expand Down
2 changes: 1 addition & 1 deletion rptools/rpthermo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _cli():
)

## READ PATHWAY FROM FILE
pathway = rpPathway.from_rpSBML(
pathway = rpPathway(
infile=args.infile,
logger=logger
)
Expand Down

0 comments on commit d69377d

Please sign in to comment.