Skip to content

Commit 8fad532

Browse files
committed
Fix CLI for seqcol
1 parent 1a4368a commit 8fad532

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/omnipy_examples/main.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,17 @@ def chatgpt() -> object:
7272

7373

7474
@app.command()
75-
def seqcol() -> object:
76-
from omnipy_examples.seqcol import seqcol_tests
77-
return seqcol_tests.run()
75+
def seqcol(owner: str = 'refgenie',
76+
repo: str = 'refget',
77+
branch: str = 'dev',
78+
path: Path = Path('test_fasta/test_fasta_digests.json')) -> object:
79+
from omnipy_examples.seqcol import seqcol_digest_check
80+
return seqcol_digest_check.run(
81+
owner=owner,
82+
repo=repo,
83+
branch=branch,
84+
path=path,
85+
)
7886

7987

8088
@app.callback()

src/omnipy_examples/seqcol.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,3 @@ def persist_seqcol_digests_on_target(
325325
def seqcol_digest_check(owner: str, repo: str, branch: str,
326326
path: Path) -> SeqColDigestTargetDataset:
327327
...
328-
329-
330-
# Running the flow
331-
if __name__ == '__main__':
332-
seqcol_digest_check.run(
333-
owner='refgenie',
334-
repo='refget',
335-
branch='dev',
336-
path=Path('test_fasta/test_fasta_digests.json'))

0 commit comments

Comments
 (0)