Skip to content
Snippets Groups Projects
Commit fc7bd8c5 authored by Vermaat's avatar Vermaat
Browse files

Update description-extractor to 2.3.2

Mutalyzer used the `reverse_complement` function from the description
extractor, which was a unicode string-only implementation.

With this update, that implementation was removed and the BioPython
reverse complement function used instead in the description
extractor. Unfortunately this cannot work with unicode strings, so we
now use our own `reverse_complement` which works on unicode strings.
parent 2af67928
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,23 @@ import operator
import sys
import time
from Bio import Seq
from Bio import SeqIO
from Bio.SeqUtils import seq3
# NOTE: This is a temporary fix.
from extractor.describe import reverse_complement, palinsnoop, roll
from extractor.describe import palinsnoop, roll
def reverse_complement(sequence):
"""
Reverse complement of a sequence represented as unicode string.
Unfortunately, BioPython's reverse_complement doesn't work on unicode
strings. We work almost exclusively with unicode strings, so this is a
convenience wrapper.
"""
return unicode(Seq.reverse_complement(str(sequence)))
def is_utf8_alias(encoding):
......
......@@ -11,7 +11,7 @@ backtranslate==0.0.5
biopython==1.66
chardet==2.3.0
cssselect==0.9.1
description-extractor==2.2.1
description-extractor==2.3.2
interval-binning==1.0.0
lxml==3.4.4
mock==1.3.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment