Skip to content

feat: Rename ID col in GFF file#457

Merged
madeline-scyphers merged 1 commit intodevfrom
feature/gff-rename-id-column
Sep 23, 2025
Merged

feat: Rename ID col in GFF file#457
madeline-scyphers merged 1 commit intodevfrom
feature/gff-rename-id-column

Conversation

@madeline-scyphers
Copy link
Copy Markdown
Member

In the Prodigal GFF file, the metadata ID field is a generated unique ID that is in the format 1_1, 1_2, 2_1, 2_2, etc. This is a problem if people concatenate all the GFFs together since then the unique IDs aren't unique. In DRAM1, the IDs were repalced with the SeqID_Genenumber. So that is what we are doing here

We also replaced the python script that parsed the GFF into a summary TSV for later use in DRAM2 into a tsv and replaced with with bash parsing. Which benchmarking showed to be around 10-50 times faster.

In the Prodigal GFF file, the metadata ID field is a generated
unique ID that is in the format 1_1, 1_2, 2_1, 2_2, etc.
This is a problem if people concatenate all the GFFs together since
then the unique IDs aren't unique. In DRAM1, the IDs were repalced
with the SeqID_Genenumber. So that is what we are doing here

We also replaced the python script that parsed the GFF into a summary
TSV for later use in DRAM2 into a tsv and replaced with with bash
parsing. Which benchmarking showed to be around 10-50 times faster.
@madeline-scyphers madeline-scyphers added the enhancement New feature or request label Sep 23, 2025
@github-project-automation github-project-automation bot moved this to To Sort in DRAM Sep 23, 2025
Copy link
Copy Markdown

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 renames ID columns in Prodigal GFF files to ensure uniqueness when multiple files are concatenated, and replaces a Python script with faster bash parsing for GFF to TSV conversion.

  • Replace generated IDs (1_1, 1_2, etc.) with SeqID_GeneNumber format for uniqueness
  • Switch from Python script to bash parsing for GFF to TSV conversion (10-50x faster)
  • Add ID replacement functionality using new bash script

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@madeline-scyphers madeline-scyphers merged commit ab7b133 into dev Sep 23, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from To Sort to Done in DRAM Sep 23, 2025
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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants