Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This change adds the creation of:
protocols_and_analyses.zip
- This file contains all the protocols and their respective analysis results zipped togethersummary.md
- This file provides a summary of what is in the zip file.summary.md
contains the following information:Changes
There aren't many large changes to the existing functionality. The main change to existing functionality is the added
ProtocolPaths
dataclass.Each protocol becomes an instance of this dataclass, and contains the following:
The way this changed the functionality was to, generate the expected analysis paths after the protocol paths were generated. This logic was pulled out of the
analyze
function and instead added inside of themain
function. This was done to make the pairing of the protocol and its respective analysis file easier. This pairing is utilized when generating the markdown file to group each result by protocol name.The other functionality is mainly additions that don't directly interact with the main functionality of analyzing a protocol.
Testing
I modified the existing tests to use the
ProtocolPaths
dataclass.Besides that I didn't add any testing, didn't think it was worth it to ensure the markdown was created correctly at this point.
I could unzip one of the created zipfiles. But all I am doing is using
shutil.make_archive
to create the entire thing. There is basically no logic at all for this.