Skip to content

Commit

Permalink
Remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bede committed Jul 15, 2024
1 parent 2c337b0 commit 186a08a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,5 @@ conda env create -y -f environment.yml
conda activate hostile
pip install --editable '.[dev]'
pytest
pre-commit install
```
2 changes: 0 additions & 2 deletions src/hostile/aligner.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def gen_clean_cmd(
aligner_args: str,
threads: int,
force: bool,
offline: bool,
) -> str:
fastq, out_dir = Path(fastq), Path(out_dir)
out_dir.mkdir(exist_ok=True, parents=True)
Expand Down Expand Up @@ -163,7 +162,6 @@ def gen_paired_clean_cmd(
aligner_args: str,
threads: int,
force: bool,
offline: bool,
) -> str:
fastq1, fastq2, out_dir = Path(fastq1), Path(fastq2), Path(out_dir)
out_dir.mkdir(exist_ok=True, parents=True)
Expand Down
8 changes: 3 additions & 5 deletions src/hostile/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ def clean_fastqs(
aligner_args=aligner_args,
threads=threads,
force=force,
offline=offline,
)
for fastq in fastqs
]
Expand Down Expand Up @@ -225,8 +224,8 @@ def clean_paired_fastqs(
index_path = aligner.value.check_index(index, offline=offline)
backend_cmds = [
aligner.value.gen_paired_clean_cmd(
fastq1=pair[0],
fastq2=pair[1],
fastq1=fastq_pair[0],
fastq2=fastq_pair[1],
out_dir=out_dir,
index_path=index_path,
invert=invert,
Expand All @@ -235,9 +234,8 @@ def clean_paired_fastqs(
aligner_args=aligner_args,
threads=threads,
force=force,
offline=offline,
)
for pair in fastqs
for fastq_pair in fastqs
]
logging.debug(f"{backend_cmds=}")
logging.info("Cleaning…")
Expand Down

0 comments on commit 186a08a

Please sign in to comment.