Skip to content

Commit 0041a7d

Browse files
authored
Update Alphabet.md
ungap has been removed from Biopython
1 parent 5bbff9c commit 0041a7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wiki/Alphabet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ output file format.
6060
Another case where the alphabet was used was in declaring the gap character,
6161
by default `-` in the various Biopython sequence and alignment parsers. If
6262
you are using a different character, you will need to pass this to the `Seq`
63-
object `.ungap()` method explicitly now:
63+
object `.replace()` method explicitly now:
6464

6565
```python
6666
# Old style
@@ -76,7 +76,7 @@ print(my_dna.ungap())
7676
from Bio.Seq import Seq
7777

7878
my_dna = Seq("ACGT=TT")
79-
print(my_dna.ungap("="))
79+
print(my_dna.replace("=", ""))
8080
```
8181

8282
## SeqRecord changes

0 commit comments

Comments
 (0)