Added argument to gff3_to_fasta that allows user to determine what at… - #147
Conversation
…tributes are included in the fasta defline. Model used: GPT-5.4 mini
There was a problem hiding this comment.
Pull request overview
This PR extends gff3_to_fasta to let users control which GFF3 attributes are included in FASTA deflines via a new CLI argument, and updates docs/tests accordingly.
Changes:
- Added
-da/--defline_attributesand plumbing throughscript_main()→main()→extract_start_end()/splicer(). - Implemented helpers to normalize attribute lists and format selected attributes into FASTA deflines, including a
-d custommode. - Updated unit tests and CLI documentation to cover the new behavior.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
gff3tool/bin/gff3_to_fasta.py |
Adds defline_attributes support, formatting helpers, CLI flag, and wiring through extraction/splicing paths. |
tests/unit/test_gff3_to_fasta_cli.py |
Updates call expectations for new parameter and adds a test for -d custom attribute-based deflines. |
docs/gff3_to_fasta.md |
Documents the new -da option and the custom defline mode. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #147 +/- ##
==========================================
+ Coverage 54.86% 56.24% +1.38%
==========================================
Files 28 28
Lines 5313 5378 +65
==========================================
+ Hits 2915 3025 +110
+ Misses 2398 2353 -45
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
ChrisChilders-USDA
left a comment
There was a problem hiding this comment.
This looks ok to me
…tributes are included in the fasta defline. Model used: GPT-5.4 mini