Skip to content

Comments

fix: fix metadata format and sequence processing#15

Merged
gp201 merged 2 commits intoandersen-lab:mainfrom
gp201:fix/minor_fixes
Dec 9, 2025
Merged

fix: fix metadata format and sequence processing#15
gp201 merged 2 commits intoandersen-lab:mainfrom
gp201:fix/minor_fixes

Conversation

@gp201
Copy link
Collaborator

@gp201 gp201 commented Dec 9, 2025

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:

  • Changed the default output metadata file from CSV to TSV and updated the help text in the barcode CLI command to reflect this change.

Bug fix in lineage processing:

  • Replaced a break with continue in the process_and_reroot_lineages function so that all missing samples are skipped individually, rather than stopping at the first missing sample.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gp201 gp201 merged commit 71469e7 into andersen-lab:main Dec 9, 2025
11 checks passed
@gp201 gp201 deleted the fix/minor_fixes branch December 30, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant