Skip to content

Commit

Permalink
ADD _fimo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmschrei committed Sep 6, 2024
1 parent 3b7b37a commit 9ba429e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions cmd/_fimo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# the fimo command-line tool
# Author: Jacob Schreiber <jmschreiber91@gmail.com>

import pandas

from tangermeme.tools.fimo import fimo


import time

def _run_fimo(args):
"""An internal function for running FIMO from the command-line."""

hits = fimo(args.motif, args.sequence, bin_size=args.bin_size,
eps=args.epsilon, threshold=args.threshold,
reverse_complement=not args.norc)

hits = pandas.concat(hits).sort_values('p-value')
print(hits.to_string(index=False))
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ tqdm >= 4.64.1
numba >= 0.55.1
logomaker
joblib >= 1.3.2
scikit-learn >= 1.2.2
llvmlite >= 0.43.0
scikit-learn >= 1.2.2

0 comments on commit 9ba429e

Please sign in to comment.