Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion rptools/rpscore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
Logger,
getLogger
)
from os import path as os_path
from os import (
path as os_path,
makedirs as os_makedirs
)
from .rpscore import (
predict_score,
ThermoError,
Expand Down Expand Up @@ -81,6 +84,8 @@ def entry_point():
# Write results into the pathway
pathway.set_global_score(score)
# Write pathway into file
# Create the output directory if not exists
os_makedirs(os_path.dirname(args.outfile), exist_ok=True)
pathway.to_rpSBML().write_to_file(
args.outfile
)
Expand Down
Loading