Skip to content

fix: allow non-digit valid gene names and clean product descriptions independently of name (fixes #90) - #95

Merged
nextgenusfs merged 1 commit into
mainfrom
fix-issue-90
Aug 24, 2026
Merged

fix: allow non-digit valid gene names and clean product descriptions independently of name (fixes #90)#95
nextgenusfs merged 1 commit into
mainfrom
fix-issue-90

Conversation

@nextgenusfs

Copy link
Copy Markdown
Owner

This PR fixes #90 by:

  1. Removing the digit requirement in swissprot_valid_gene so that valid non-digit gene names (e.g. Gfa, sod, cat) are recognized, allowing their Swiss-Prot product descriptions to be correctly assigned.
  2. Changing process_annotation in NameCleaner to clean the product description even if no gene name is present/valid (useful when custom product annotations are provided without a gene name).

@nextgenusfs
nextgenusfs merged commit 4ddf004 into main Aug 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Funannote2 annotate only product = hypothetical protein

1 participant