Skip to content

Commit

Permalink
python: improved dnax.revcomp
Browse files Browse the repository at this point in the history
  • Loading branch information
kloetzl committed Feb 11, 2024
1 parent 7652243 commit 557cdb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/libdna/dnax.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def replace(seq: str, from_: str, to: str) -> str:
return _replace(from_, to)(seq)


_revcomp = _replace("acgtACGTuU", "tgcaTGCAaA")
_revcomp = _replace("abcdghkmnrstuvwyABCDGHKMNRSTUVWY", "tvghcdmknysaabwrTVGHCDMKNYSAABWR")


def revcomp(seq: str) -> str:
Expand Down

0 comments on commit 557cdb8

Please sign in to comment.