Allow usage of iupac dna code in tagMatcher file reader

This commit is contained in:
2008-09-04 15:38:51 +00:00
parent 3106f29954
commit 2665d987a2

View File

@ -6,9 +6,9 @@ from obitools.seqdb import nucEntryIterator
from obitools.location.feature import Feature
from obitools.location import locationGenerator
_seqMatcher = re.compile('(?<=TG )[acgtACGT]+')
_seqMatcher = re.compile('(?<=TG )[acgtrymkwsbdhvnACGTRYMKWSBDHVN]+')
_cdMatcher = re.compile('(?<=CD ) *([^:]+?) +: +([0-9]+)')
_loMatcher = re.compile('(?<=LO ) *([ACGT]+) +([^ ]+) +([^ ]+) +\(([0-9]+)\)')
_loMatcher = re.compile('(?<=LO ) *([ACGTRYMKWSBDHVN]+) +([^ ]+) +([^ ]+) +\(([0-9]+)\)')
_dmMatcher = re.compile('(?<=DM )[0-9]+')
_rmMatcher = re.compile('(?<=RM )[0-9]+')