Skip to content

Commit

Permalink
renamed _run_explore
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Sep 16, 2024
1 parent 37d51fd commit fe01943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anglerfish/explore/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run_explore(
kmer_length: int,
):
results, adaptors_included, entries, umi_threshold, kmer_length, outdir = (
_run_explore(
get_explore_results(
fastq,
outdir,
threads,
Expand All @@ -55,7 +55,7 @@ def run_explore(
log.info(f"Results saved to {explore_stats_file}")


def _run_explore(
def get_explore_results(
fastq: str,
outdir: str,
threads: int,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_explore/test_explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from anglerfish.demux.adaptor import Adaptor
from anglerfish.explore.explore import (
_run_explore,
get_explore_results,
run_multiple_alignments,
setup_explore_directory,
)
Expand Down Expand Up @@ -187,14 +187,14 @@ def test_run_multiple_alignments(explore_fixture):
tmp_dir.cleanup()


def test_run_explore_functional_test(explore_fixture):
def test_get_explore_results_functional_test(explore_fixture):
"""Test overall function of the explore command."""
tmp_dir = tempfile.TemporaryDirectory()
tmp_path = os.path.join(tmp_dir.name, "outdir")

# Running with 2 reads, one perfect match to illumina_ud, one partial match to illumina_ud
results, adaptors_included, entries, umi_threshold, kmer_length, outdir = (
_run_explore(
get_explore_results(
fastq=explore_fixture["explore_reads"],
outdir=tmp_path,
threads=1,
Expand Down

0 comments on commit fe01943

Please sign in to comment.