-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File IO command line options revision #372
Conversation
fac1eb9
to
90ef08b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #372 +/- ##
==========================================
- Coverage 94.32% 94.00% -0.32%
==========================================
Files 12 12
Lines 1039 1067 +28
==========================================
+ Hits 980 1003 +23
- Misses 59 64 +5 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, almost ready to merge. I have a few questions to double-check.
We can also check which new lines are not covered by unit tests and try to add some to make the code coverage happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one trivial suggestions before merging.
casanovo/casanovo.py
Outdated
if not output_path.is_dir(): | ||
output_path.mkdir(parents=True) | ||
logger.warning( | ||
f"Target output directory {output_dir} does not exists, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Use %s
instead of f-string for logging.
Removed the
model_save_folder_path
option in favor of the new--output_root
and--ouput_dir
command line options as written in the Casanovo File IO specification document, and introduced a new--overwrite
flag that is required to be set in order to overwrite any output files. The--validation_peak_path
option is now optional during training. If the--validation_peak_path
option is not set thetrain_peak_path
will be used to validate the model. In this case all spectra files intrain_peak_path
must have peptide annotations.