Snakebids

Latest version: v0.13.0

Safety actively analyzes 623677 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.13.0

Changes

- Another fix to test counting pvandyken (419)

🚀 Features

- Add hook to update and read argv before parsing pvandyken (417)

🐛 Bug Fixes

- Add missing spaces to default help for bidsargs pvandyken (416)

🧰 Maintenance

- Update maximum python version in template pvandyken (415)
- Fix test-counting code pvandyken (414)

0.12.0

Changes

`bidsapp` module

This version introduces a new `bidsapp` module, which moving forward will provide a much more flexible, extensible interface for bids apps. At this time, the module has yet to be completely documented, but new apps generated with `snakebids create` will automatically use the new api. Old apps can be updated using the [migration guide](https://snakebids.readthedocs.io/en/stable/migration/0.11_to_0.12.html).

Note that the old `run.py` api will still work fine, for most users this release does not have any breaking changes. The only apps that will be affected were those that used custom plugins: they will no longer work.

🚀 Features

- Add support for snakemake > 8.0 pvandyken (406)
- Major update to bidsapp pvandyken (362)
- Allow simult. use of partic incl and excl flags pvandyken (404)

🐛 Bug Fixes

- Fix flaky template tests pvandyken (405)
- Pin attrs to 22.2.0 pvandyken (403)
- Prevent installation of docutils==0.21.post1 pvandyken (402)
- Correctly activate virtualenv in readthedocs build pvandyken (394)

🧰 Maintenance

- Add codecov badge pvandyken (409)

📝 Documentation

- Update tutorial for new bidsapp pvandyken (408)

0.11.2

Changes

- Update the warning format to be more readable pvandyken (390)

🐛 Bug Fixes

- Fix docs template so that it builds pvandyken (392)
- Eliminate initial "\_" when suffix is only entity pvandyken (389)

0.11.1

Changes

🐛 Bug Fixes

- Prevent custom entities from drawing standard ent pvandyken (382)
- Expand paths unaltered when comp has no wcards pvandyken (378)
- Fix warning messages pvandyken (377)

🧰 Maintenance

- Move codecoverage upload to seperate job pvandyken (380)
- Allow custom snakebids version in app template pvandyken (376)

0.11.0

Changes

Versioned `bids()` function

This release introduces **versioned** bids functions! Explicitly setting a version for the `bids()` function ensures the output of the function remains stable even as the bids specification continues to evolve.

The problem is especially evident if you use custom entities. Consider the following code:

py
bids(
subject="001",
session="01",
space="MNI6",
tract="SLF",
hemi="L",
suffix="tracts",
desc="corr",
extension=".tck",
) == 'sub-001/ses-01/sub-001_ses-01_hemi-L_space-MNI6_desc-corr_tract-SLF_tracts.tck'


Notice the custom entity `tract` is placed at the end of the path, immediately before the suffix. If this entity were ever to become official however, it's position might be moved earlier in the path:

py
in a hypothetical future version:
bids(
subject="001",
session="01",
space="MNI6",
tract="SLF",
hemi="L",
desc="corr",
suffix="tracts",
extension=".tck",
) == 'sub-001/ses-01/sub-001_ses-01_hemi-L_space-MNI6_tract-SLF_desc-corr_tracts.tck'


This would break any workflows using this path, making it difficult for us to keep the `bids()` function up to date (we'd have to release a new major version every time we need to change the function).

Bids versioning decouples the spec from the snakebids version, so that snakebids can continue to be updated without risk of path breakage. It can be activated like this:

py
from snakebids import set_bids_spec
set_bids_spec("v0_0_0")


The 0 version specified above is the version snakebids has used up until now, and will continue to be the default for some time. In the future, the default spec will change, so setting the version as above ensures long term stability.

This release also comes with a new spec:

py
from snakebids import set_bids_spec
set_bids_spec("v0_11_0")


It comes with a number of new recognized entities, including `staining`, `tracer`, `flip`, `inversion`, `processed`, `part`, `atlas`, `segmentation`, `density`, `roi`, `from`, `to`, `split`, `recording`, `chunk`, `model`, and `subset`. In addition, unrecognized entities will always be placed before the `desc` tag, so `desc-XXX` will always be the last entity before the suffix.

Regex filtering

Regex filters in the config file has been broken for some time, but this release re-enables it with a new syntax. Regex filtering can be performed as follows:

yaml
bids_inputs:
t1w:
filters:
acq:
match: MP2?RAGE
suffix:
search: [Tt]1


The `match` and `search` key use `re.match()` and `re.search()` respectively.

🚀 Features

- Adding argument for metadata indexing by generate\_inputs myousif9 (367)
- Add mechanism for regex filtering pvandyken (365)
- Transition to versioned bids functions pvandyken (349)
- Allow builtins and resolved paths as cli types pvandyken (352)

🐛 Bug Fixes

- Default to case-insensitive search for regex pvandyken (375)

🧰 Maintenance

- Update khanlab/actions integration pvandyken (374)
- Clean old tests when recalculating durations pvandyken (373)
- Add tests of pypi installation in nightly workflow pvandyken (357)

0.10.2

Changes

Small release to fix a dependency issue in the `snakemake create` template app.

🐛 Bug Fixes

- Restrict pulp version in template app pvandyken (364)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.