From 0041a7d73a3f1eb2433a437d5ae38c0e0723e0e4 Mon Sep 17 00:00:00 2001 From: mdehoon Date: Fri, 5 Jan 2024 14:41:19 +0900 Subject: [PATCH] Update Alphabet.md ungap has been removed from Biopython --- wiki/Alphabet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/Alphabet.md b/wiki/Alphabet.md index a3b223e22..928debb11 100644 --- a/wiki/Alphabet.md +++ b/wiki/Alphabet.md @@ -60,7 +60,7 @@ output file format. Another case where the alphabet was used was in declaring the gap character, by default `-` in the various Biopython sequence and alignment parsers. If you are using a different character, you will need to pass this to the `Seq` -object `.ungap()` method explicitly now: +object `.replace()` method explicitly now: ```python # Old style @@ -76,7 +76,7 @@ print(my_dna.ungap()) from Bio.Seq import Seq my_dna = Seq("ACGT=TT") -print(my_dna.ungap("=")) +print(my_dna.replace("=", "")) ``` ## SeqRecord changes