Skip to content
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

Merged
merged 25 commits into from
Sep 16, 2024
Merged

File IO command line options revision #372

merged 25 commits into from
Sep 16, 2024

Conversation

Lilferrit
Copy link
Contributor

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 the train_peak_path will be used to validate the model. In this case all spectra files in train_peak_path must have peptide annotations.

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 97.87234% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.00%. Comparing base (aee3534) to head (257a681).

Files with missing lines Patch % Lines
casanovo/casanovo.py 96.29% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/utils.py Outdated Show resolved Hide resolved
casanovo/utils.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Show resolved Hide resolved
tests/test_integration.py Outdated Show resolved Hide resolved
@bittremieux bittremieux linked an issue Aug 28, 2024 that may be closed by this pull request
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/utils.py Outdated Show resolved Hide resolved
casanovo/utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@bittremieux bittremieux left a 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.

casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Show resolved Hide resolved
casanovo/casanovo.py Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
casanovo/casanovo.py Outdated Show resolved Hide resolved
@bittremieux bittremieux mentioned this pull request Sep 8, 2024
Copy link
Collaborator

@bittremieux bittremieux left a 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.

if not output_path.is_dir():
output_path.mkdir(parents=True)
logger.warning(
f"Target output directory {output_dir} does not exists, "
Copy link
Collaborator

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.

@Lilferrit Lilferrit merged commit 4cff0c8 into dev Sep 16, 2024
@Lilferrit Lilferrit deleted the console-file-io branch September 16, 2024 19:51
@Lilferrit Lilferrit linked an issue Sep 17, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eliminate the model_save_folder_path config option fix documentation of --output
2 participants