Skip to content

Commit

Permalink
FIMO version check
Browse files Browse the repository at this point in the history
  • Loading branch information
asistradition committed Aug 10, 2020
1 parent 7dfc7b6 commit 68f4dac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions srrTomat0/motifs/fimo.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def _parse_output(self, output_handle):
motifs.dropna(subset=[FIMO_START, FIMO_STOP], inplace=True, how='any')
motifs[FIMO_START], motifs[FIMO_STOP] = motifs[FIMO_START].astype(int), motifs[FIMO_STOP].astype(int)

if "#pattern name" in motifs.columns:
raise RuntimeError("FIMO version not supported; update to 5.0.5")

motifs[SCAN_SCORE_COL] = [self.motifs[x].score_match(y) for x, y in
zip(motifs[FIMO_MOTIF], motifs[FIMO_SEQUENCE])]

Expand Down

0 comments on commit 68f4dac

Please sign in to comment.