readfish icon indicating copy to clipboard operation
readfish copied to clipboard

Validation of decisions listed in `Barcodes`/`Regions` in Toml

Open Adoni5 opened this issue 5 months ago • 1 comments

Issue

Currently decisions do not undergo any validation in TOMLs. Actions must be one of stop_receiving, unblock or proceed, but Decisions can be anything.

For example the following Region Decision -> Action will fail

[[Region]]
no_map = "banter"

But this will succeed

[[Region]]
banter = "stop_receiving"

Proposal

Propose we also check the contents of the Region using cattrs

Testing TOML

I've attached a testing toml that should fail. All these validations should happen before testing the plugins, so we should be able to test without updating the path to the index/caller. Suggest using --no-check-plugins and --no-describe during testing.

human_chr_selection.txt

Adoni5 avatar Feb 01 '24 12:02 Adoni5