Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonvh committed May 19, 2016
1 parent fb385e5 commit c2390e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gimmemotifs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os

### CONSTANTS ###
GM_VERSION = "0.9.0.5"
GM_VERSION = "0.9.0.6"
BG_TYPES = ["random", "genomic", "gc", "promoter"]
FA_VALID_BGS = ["random", "promoter", "gc", "user", "genomic"]
BED_VALID_BGS = ["random", "genomic", "gc", "promoter", "user"]
Expand Down
5 changes: 3 additions & 2 deletions gimmemotifs/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def _get_seqs_type(self, seqs):
if region_p.search(line):
return "regionfile"
else:
if line.split("\t"):
vals = line.split("\t")
if len(vals) >= 3:
int(vals[1]), int(vals[2])
return "bedfile"
except:
Expand Down Expand Up @@ -358,7 +359,7 @@ def scan(self, seqs, nreport=100, scan_rc=True, cutoff=0.95):
def _scan_regions(self, regions, nreport, scan_rc, cutoff=0.95):
index_dir = self.index_dir
motif_file = self.motifs
motif_digest = self.checksum[motif_file]
motif_digest = self.checksum.get(motif_file, None)

# determine which regions are not in the cache
scan_regions = regions
Expand Down

0 comments on commit c2390e1

Please sign in to comment.