@@ -122,8 +122,7 @@ def scan_sequences(
122122 attrs : Optional [np .ndarray ] = None ,
123123):
124124 """
125- Scan a DNA sequence using motifs. Based on
126- https://github.com/jmschrei/tangermeme/blob/main/tangermeme/tools/fimo.py.
125+ Scan a DNA sequence using motifs. Based on https://github.com/jmschrei/memesuite-lite.
127126
128127 Args:
129128 seqs: A string or a list of DNA sequences as strings
@@ -148,7 +147,7 @@ def scan_sequences(
148147 pd.DataFrame containing columns 'motif', 'sequence', 'start', 'end',
149148 'strand', 'score', 'pval', and 'matched_seq'.
150149 """
151- from tangermeme . tools . fimo import fimo
150+ from memelite import fimo
152151
153152 # Format sequences
154153 seqs = make_list (seqs )
@@ -369,7 +368,7 @@ def compare_motifs(
369368def run_tomtom (motifs : Dict [str , np .ndarray ], meme_file : str ) -> pd .DataFrame :
370369 """
371370 Function to compare given motifs to reference motifs using the
372- tomtom algorithm, as implemented in tangermeme .
371+ tomtom algorithm, as implemented in memelite (https://github.com/jmschrei/memesuite-lite) .
373372
374373 Args:
375374 motifs: A dictionary whose values are Position Probability Matrices
@@ -380,7 +379,7 @@ def run_tomtom(motifs: Dict[str, np.ndarray], meme_file: str) -> pd.DataFrame:
380379 df: Pandas dataframe containing all tomtom results.
381380 """
382381 from statsmodels .stats .multitest import fdrcorrection
383- from tangermeme . tools . tomtom import tomtom
382+ from memelite import tomtom
384383
385384 from grelu .interpret .motifs import motifs_to_strings
386385 from grelu .resources import get_meme_file_path
0 commit comments