Skip to content

Commit efa3e5a

Browse files
committed
Bump version to 4.1.0
1 parent 7cbd36f commit efa3e5a

7 files changed

Lines changed: 27 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

3-
## v4.0.2-DEV
3+
## v4.1.0
4+
* Fix typo in output AAE_Z cluster names. They are now called e.g. "aae_z_1"
5+
instead of "aae_z1"
6+
* Clean up the directory structure of Avamb workflow.
7+
* Fix the CheckM2 dependencies to allow CheckM2 to be installed
8+
* Allow the Avamb workflow to be run on Slurm clusters
9+
* Fix issue #161: Mismatched refhash when spaces in FASTA headers
10+
* Allow setting the RNG seed from command line
411

512
## v4.0.1
613
* Fix Random.choice for Tensor on Python 3.11. See issue #148

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies = [
99
# Currently pycoverm does not have binaries for Python > 3.11.
1010
# The dependency resolver, will not error on Python 3.11, but attempt
1111
# to build pycoverm from source, but will not get the deps required for that.
12-
requires-python = "<3.12.*,>=3.9.0"
12+
requires-python = "<3.12,>=3.9.0"
1313
scripts = {vamb = "vamb.__main__:main"}
1414

1515
[metadata]
@@ -28,3 +28,6 @@ readme = {file = "README.md"}
2828
[build-system]
2929
requires = ["setuptools ~= 63.0", "Cython ~= 0.29"]
3030
build-backend = "setuptools.build_meta"
31+
32+
[tool.ruff]
33+
ignore = ["E501"]

test/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def changelog_version(path):
2626
with open(path) as file:
2727
next(file) # header
2828
textline = next(filter(None, map(str.strip, file)))
29-
regex = re.compile(r"## v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z]+)?)")
29+
regex = re.compile(r"## v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z]+)?)?")
3030
m = regex.search(textline)
3131
if m is None:
3232
raise ValueError("Could not find version in first non-header line of CHANGELOG")

vamb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
7) Split bins using vamb.vambtools
2020
"""
2121

22-
__version__ = (4, 0, 2, "DEV")
22+
__version__ = (4, 1, 0)
2323

2424
from . import vambtools
2525
from . import parsebam

vamb/vambtools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def concatenate_fasta(
560560
561561
Output: None
562562
"""
563-
563+
564564
identifiers: set[str] = set()
565565
for inpathno, inpath in enumerate(inpaths):
566566
try:
@@ -572,7 +572,7 @@ def concatenate_fasta(
572572
for entry in byte_iterfasta(infile):
573573
if len(entry) < minlength:
574574
continue
575-
575+
576576
if rename:
577577
entry.rename(f"S{inpathno + 1}C{entry.identifier}".encode())
578578

workflow_avamb/src/manual_drep_JN.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ def compute_to_remove(
294294
parser.add_argument(
295295
"--bins_extension", type=str, default=".fna", help="Extension of the bins "
296296
)
297-
parser.add_argument("--min_bin_size", type=int, help="Min bin length to be considered for dereplication ")
297+
parser.add_argument(
298+
"--min_bin_size",
299+
type=int,
300+
help="Min bin length to be considered for dereplication ",
301+
)
298302

299303
opt = parser.parse_args()
300304
args = vars(parser.parse_args())
@@ -311,5 +315,5 @@ def compute_to_remove(
311315
min_comp=opt.comp,
312316
max_cont=opt.cont,
313317
bins_extension=opt.bins_extension,
314-
min_bin_size=opt.min_bin_size
318+
min_bin_size=opt.min_bin_size,
315319
)

workflow_avamb/src/transfer_contigs_and_aggregate_all_nc_bins.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -338,35 +338,27 @@ def write_nc_bin_scores(
338338

339339
opt = parser.parse_args()
340340

341-
path_run = (
342-
opt.r
343-
)
341+
path_run = opt.r
344342

345-
path_clusters = (
346-
opt.c
347-
)
343+
path_clusters = opt.c
348344
with open(path_clusters) as file:
349345
cluster_contigs = vamb.vambtools.read_clusters(file)
350346

351347
with open(opt.cs_d) as f:
352348
cluster_scores = json.load(f)
353349

354-
path_clusters_not_r = (
355-
opt.cnr
356-
)
350+
path_clusters_not_r = opt.cnr
357351

358352
with open(path_clusters_not_r) as file:
359353
cluster_not_r_contigs = vamb.vambtools.read_clusters(file)
360354

361-
path_bins_ripped_checkm_quality_report = (
362-
opt.sbr
363-
)
355+
path_bins_ripped_checkm_quality_report = opt.sbr
364356

365357
ripped_bins_scores_ar = np.loadtxt(
366358
path_bins_ripped_checkm_quality_report, dtype=str, skiprows=1, ndmin=2
367359
)
368360

369-
drep_folder = opt.d
361+
drep_folder = opt.d
370362

371363
with open(opt.bp_d) as f:
372364
bin_path = json.load(f)

0 commit comments

Comments
 (0)