Skip to content

Commit 710a9f9

Browse files
committed
fixed workflows
1 parent a119640 commit 710a9f9

File tree

7 files changed

+14
-90
lines changed

7 files changed

+14
-90
lines changed

CMakeLists.txt

Lines changed: 0 additions & 44 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ FROM ubuntu:22.04 AS builder
55

66
# 1) Install build tools, CMake, Git, Python headers, and pip
77
RUN apt-get update && apt-get install -y \
8+
autoconf \
89
build-essential \
910
cmake \
1011
git \
12+
libcurl4-openssl-dev \
1113
python3-dev \
1214
python3-pip \
1315
&& rm -rf /var/lib/apt/lists/*
@@ -65,8 +67,8 @@ RUN pip3 install pytest
6567
RUN pytest -q /app/tests/python/test_cli.py
6668

6769
# 4) Verify the binaries are on PATH (just a check; you can remove)
68-
RUN which aligncount_cpp && which aligncount
70+
RUN which Aligncount && which aligncount_wrapper
6971

7072
# Final entrypoint: run the Python wrapper by default
71-
ENTRYPOINT ["aligncount"]
73+
ENTRYPOINT ["aligncount_wrapper"]
7274
CMD ["--help"]

cli/entrypoint.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ def main():
2121
sub = parser.add_subparsers(dest="cmd", required=True)
2222

2323
c1 = sub.add_parser("count-mapped")
24-
c1.add_argument("-i", "--input", required=True)
24+
c1.add_argument("-a", "--alignments", required=True)
2525

2626
c2 = sub.add_parser("count-unmapped")
27-
c2.add_argument("-i", "--input", required=True)
27+
c2.add_argument("-a", "--alignments", required=True)
2828

2929
args = parser.parse_args()
30-
sam_path = Path(args.input)
30+
sam_path = Path(args.alignments)
3131
if not sam_path.exists():
32-
print(f"Error: input file '{args.input}' does not exist.", file=sys.stderr)
32+
print(f"Error: input file '{args.alignments}' does not exist.", file=sys.stderr)
3333
sys.exit(1)
3434

3535
try:
36-
raw = subprocess.check_output(["aligncount_cpp", args.input])
36+
raw = subprocess.check_output(["Aligncount", "-a", args.alignments])
3737
except FileNotFoundError:
38-
print("Error: C++ binary 'aligncount_cpp' not found in PATH.", file=sys.stderr)
38+
print("Error: C++ binary 'Aligncount' not found in PATH.", file=sys.stderr)
3939
sys.exit(1)
4040
except subprocess.CalledProcessError as e:
41-
print(f"Error: 'aligncount_cpp' failed (exit {e.returncode}).", file=sys.stderr)
41+
print(f"Error: 'Aligncount' failed (exit {e.returncode}).", file=sys.stderr)
4242
sys.exit(e.returncode)
4343

4444
# Use our new helper to produce the final string to print

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ outputs:
7777
# ---------------------------------------------------------
7878
# Output #2: Noarch Python wrapper (aligncount_demo)
7979
# ---------------------------------------------------------
80-
- name: Aligncount_wrapper
80+
- name: aligncount_wrapper
8181
build:
8282
noarch: python
8383
script: |

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[metadata]
22
name = aligncount
33
version = 0.2.0
4-
description = Aligncount tool
4+
description = Aligncount wrapper tool
55

66
[options]
77
packages = find:
88
python_requires = >=3.9,<3.14
99

1010
[options.entry_points]
1111
console_scripts =
12-
aligncount = cli.entrypoint:main
12+
aligncount_wrapper = cli.entrypoint:main

src/main.cpp

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/cpp/test_main.cpp

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)