Skip to content

Commit

Permalink
[FIX] fasta transformer for trembl entries
Browse files Browse the repository at this point in the history
  • Loading branch information
alpae committed Nov 30, 2023
1 parent 053a5b0 commit f9ca2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastOMA/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def transform(self, header):

class ExtractUniProtAccessionFastaHeaderTransformer(FastaHeaderTransformer):
def __init__(self):
self._up_re = re.compile(r"[spup]{2}\|(?P<acc>[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2})\|.*")
self._up_re = re.compile(r"[sptr]{2}\|(?P<acc>[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2})\|.*")

def transform(self, header):
m = self._up_re.match(header)
Expand Down

0 comments on commit f9ca2ed

Please sign in to comment.