I like having assertions within pipelines to catch...
# shameless-promo
p
I like having assertions within pipelines to catch issues early so i've built a rust cli tool that i will try and extend to cover most common formats https://crates.io/crates/bioassert The assertions are entered into a plain text file
aligned_bam.assert
in this case:
Copy code
# assertions for an aligned BAM bound as `bam`
bam exists eq true
bam size gte 100MB
bam read_count gt 100000
bam sort_order eq coordinate
bam read_group_count gte 1
bam has_index eq true
then executed
Copy code
bioassert \
    --assertions aligned_bam.assert \
    --input bam=sample.bam