Add --output-matched-protein-sequences option to supplement mode #278
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.
Motivation
supplementso users can inspect matched proteins alongside the matched transcripts.‡delimiter so sequence identifiers remain compatible with downstream code.Description
--output-matched-protein-sequencesinsinglem/main.pyand passed it into the supplement workflow asoutput_matched_protein_sequences.Supplementor.supplement, updatedgenerate_new_metapackageandgather_hmmsearch_resultssignatures, and passed the value into worker calls.run_hmmsearch_on_one_genomeby appending protein FASTA entries for transcripts inmatched_transcript_idsand pre-creating/clearing the output file ingather_hmmsearch_resultswhen requested.Testing
pixi run -e dev pytest testas required by project docs.2 failed, 222 passed, 20 skipped, 1 warning.test/test_pipe.py::Tests::test_read_chunk_size_forward_gzipandtest/test_pipe.py::Tests::test_read_chunk_size_paired, which failed due to a--read-chunk-size must be divisible by 4validation error.supplementchanges passed.Codex Task