From 557cdb8c6a6068f5be24a0f5bedf75fa448428aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kl=C3=B6tzl?= Date: Sun, 11 Feb 2024 21:26:59 +0000 Subject: [PATCH] python: improved dnax.revcomp --- python/libdna/dnax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/libdna/dnax.py b/python/libdna/dnax.py index 113f215..624e4d3 100644 --- a/python/libdna/dnax.py +++ b/python/libdna/dnax.py @@ -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: