Skip to content

Add genomic coordinates to export_end_sequences and write_fasta headers (2.1.6) - #55

Merged
YalanBi merged 1 commit into
masterfrom
feature/cds-orf-fasta-header
Aug 20, 2026
Merged

Add genomic coordinates to export_end_sequences and write_fasta headers (2.1.6)#55
YalanBi merged 1 commit into
masterfrom
feature/cds-orf-fasta-header

Conversation

@YalanBi

@YalanBi YalanBi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • export_end_sequences: include strand in the fasta header (chrom:start-end:strand)
  • write_fasta: new add_coord option to include the genomic location in the header -- the transcript's genomic span for transcript sequences, or the coding sequence (annotated CDS, or predicted ORF if not annotated) used for translation for protein sequences
  • Bump biopython/packaging in the requirements.txt lock file (drifted since last regenerated)

Bumps version to 2.1.6.

Test plan

  • Full pytest suite passes (28 passed, 1 pre-existing unrelated failure deselected)
  • New tests/export_test.py covers add_coord for both transcript and protein sequences, and confirms the header is unchanged when add_coord is left at its default False
  • Verified end-to-end against real data for all four combinations (reference/long-read x transcript/protein), confirming coordinates and strand are correct on both strands
  • flake8/black clean
  • python -m build + twine check dist/* pass at 2.1.6

- export_end_sequences: include strand in the fasta header (chrom:start-end:strand)
- write_fasta: new add_coord option to include the genomic location in the header -- the transcript's genomic span for transcript sequences, or the CDS/ORF used for translation for protein sequences
- bump biopython/packaging in requirements.txt lock file
- bump version to 2.1.6
@YalanBi YalanBi added the enhancement New feature or request label Aug 20, 2026
@YalanBi YalanBi self-assigned this Aug 20, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
pip/biopython 1.88 UnknownUnknown
pip/packaging 26.3 UnknownUnknown

Scanned Files

  • requirements.txt

@YalanBi
YalanBi merged commit 2578f0c into master Aug 20, 2026
19 checks passed
@YalanBi
YalanBi deleted the feature/cds-orf-fasta-header branch August 20, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant