fix: fix metadata format and sequence processing#15
Merged
gp201 merged 2 commits intoandersen-lab:mainfrom Dec 9, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes two issues: a bug in the lineage processing logic and updates the metadata output format documentation to reflect the actual TSV format used.
- Fixed a critical bug where the lineage processing would stop at the first missing sample instead of continuing to process remaining samples
- Updated CLI help text and default filename to correctly indicate TSV format for metadata output (aligning with actual implementation)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| barcodeforge/ref_muts.py | Fixed bug by changing break to continue to ensure all samples are processed even when some are missing from FASTA |
| barcodeforge/cli.py | Updated default metadata filename from .csv to .tsv and corrected help text to reflect TSV format |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request makes two fixes: it updates the output metadata file format to TSV and fixes a bug in the lineage processing logic to ensure as many samples are processed.
Output format update:
barcodeCLI command to reflect this change.Bug fix in lineage processing:
breakwithcontinuein theprocess_and_reroot_lineagesfunction so that all missing samples are skipped individually, rather than stopping at the first missing sample.