Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests

on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install package and test dependencies
run: pip install -e ".[dev]"

- name: Run tests
run: pytest tests/ -v
14 changes: 3 additions & 11 deletions assemblytics/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import zipfile

from .dot_prep import run as run_dot_prep
from .dot_prep import index_for_dot
from .dotplot import run as run_dotplot
from .index import run as run_index
from .nchart import run as run_nchart
Expand Down Expand Up @@ -81,7 +81,7 @@ def run(args):
log_progress(log_file, "STARTING,DONE,Starting unique anchor filtering.")

print("1. Filter delta file")
run_uniq_anchor(
reference_lengths, fields_by_query = run_uniq_anchor(
argparse.Namespace(
delta=delta,
out=output_dir,
Expand Down Expand Up @@ -153,15 +153,7 @@ def run(args):

print("5. Preparing interactive Dot plot")
dot_prefix = os.path.join(output_dir, "assemblytics_dot")
run_dot_prep(
argparse.Namespace(
delta=delta,
out=dot_prefix,
unique_length=unique_length,
overview=1000,
),
write_delta=False,
)
index_for_dot(reference_lengths, fields_by_query, dot_prefix, 1000)
print("FILE_READY:assemblytics_dot.coords")
print("FILE_READY:assemblytics_dot.coords.idx")

Expand Down
Loading
Loading