Skip to content

Commit

Permalink
Merge pull request #45 from gbouras13/dev
Browse files Browse the repository at this point in the history
v1.5.1
  • Loading branch information
gbouras13 authored Feb 2, 2024
2 parents 117bde9 + eb7954d commit 6d1cb2a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 42 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# History

1.5.1 (2024-02-01)
------------------

* Fixes #44, where `--use_raven` was not working (Flye would be used instead). Thanks @[wanyuac](https://github.com/wanyuac).

1.5.0 (2023-11-21)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Pygments==2.15.0
pymdown-extensions==10.0
jinja2==3.0.3
jinja2>=3.1.3
Markdown==3.3.7
35 changes: 0 additions & 35 deletions mkdocs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "plassembler"
version = "1.5.0" # change VERSION too
version = "1.5.1" # change VERSION too
description = "Quickly and accurately assemble plasmids in hybrid sequenced bacterial isolates"
authors = ["George Bouras <[email protected]>"]
license = "MIT"
Expand Down
9 changes: 7 additions & 2 deletions src/plassembler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def run(
logger.info(f"--flye_assembly is {flye_assembly}")
logger.info(f"--flye_info is {flye_info}")
logger.info(f"--no_chromosome is {no_chromosome}")
logger.info(f"--use_raven is {use_raven}")
logdir = Path(f"{outdir}/logs")

# check deps
Expand Down Expand Up @@ -455,8 +456,12 @@ def run(
skip_assembly = True

if skip_assembly is False:
logger.info("Running Flye.")
run_flye(outdir, threads, raw_flag, pacbio_model, logdir)
if use_raven is False:
logger.info("Running Flye.")
run_flye(outdir, threads, raw_flag, pacbio_model, logdir)
else:
logger.info("Running Raven.")
run_raven(outdir, threads, logdir)
else:
if flye_directory != "nothing":
logger.info(
Expand Down
3 changes: 1 addition & 2 deletions src/plassembler/utils/CITATION
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Please cite plassembler in your paper using:

Bouras, G., Sheppard A.E., Mallawaarachchi, V., Vreugde S. (2023) Plassembler https://github.com/gbouras13/plassembler.

Bouras, G., Sheppard A.E., Mallawaarachchi, V., Vreugde S. (2023) Plassembler: an automated bacterial plasmid assembly tool, Bioinformatics, Volume 39, Issue 7, July 2023, btad409, https://doi.org/10.1093/bioinformatics/btad409
2 changes: 1 addition & 1 deletion src/plassembler/utils/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1
11 changes: 11 additions & 0 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ def test_plassembler_case_1(self):
exec_command(cmd)
remove_directory(outdir)

def test_plassembler_case_1_use_raven(self):
"""test plassembler run - chromosome only assembled with Flye, no plasmids - plasmids recovered from the short reads"""
longreads: Path = f"{end_to_end}/case1.fastq.gz"
s1: Path = f"{end_to_end}/input_R1.fastq.gz"
s2: Path = f"{end_to_end}/input_R2.fastq.gz"
chromosome = 50000
outdir: Path = f"{end_to_end}/test_out"
cmd = f"plassembler run -l {longreads} -c {chromosome} -1 {s1} -2 {s2} -d {plassembler_db_dir} -o {outdir} -t 8 -f"
exec_command(cmd)
remove_directory(outdir)

def test_plassembler_case_2(self):
with self.assertRaises(RuntimeError):
"""test plassembler run case 2 no chromosome assembled at all"""
Expand Down

0 comments on commit 6d1cb2a

Please sign in to comment.