Skip to content

Commit

Permalink
Bug fix received from Anthony Mathelier and David Arenillas
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel de Hoon committed Jan 7, 2015
1 parent 4c79103 commit 6e1769b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/motifs/jaspar/__init__.py
Expand Up @@ -261,14 +261,14 @@ def _read_jaspar(handle):

head_pat = re.compile(r"^>\s*(\S+)(\s+(\S+))?")
row_pat_long = re.compile(r"\s*([ACGT])\s*\[\s*(.*)\s*\]")
row_pat_short = re.compile(r"\s*(.*)\s*")
row_pat_short = re.compile(r"\s*(.+)\s*")

identifier = None
name = None
row_count = 0
nucleotides = ['A', 'C', 'G', 'T']
for line in handle:
line.rstrip('\r\n')
line = line.strip()

head_match = head_pat.match(line)
row_match_long = row_pat_long.match(line)
Expand Down

0 comments on commit 6e1769b

Please sign in to comment.