Andrea Bagnacani
08/01/2025, 12:12 PMnft-bam plugin.
The context: I'm writing a test to check if successive runs of paraphase produce the same BAM output; however, since the output BAM has timestamps in the header, I cannot make my test rely on the comparison between snapshotted md5sums (so assert snapshot(process.out).match() won't work).
To overcome this, I decided to use the nft-bam plugin. I therefore loaded it in my nf-test.config, and wrote in my `main.nf.test`:
assert bam("${params.outdir}/${sample}/${sample}.paraphase.bam").getReadsMD5()
The test runs successfully. However, am I really testing the consistency of successive test runs?
After all, the documentation states that .getReadsMD5() only returns the md5sum of the raw reads, and not that it compares the md5sum with the one of the previous test run.
Is the fact that I am using .getReadsMD5() in an nf-test assert statement automatically checking the md5sum of the previous run? Or shall I write a dedicated process to compare strings across 2 successive runs?Sateesh_Peri
08/01/2025, 12:15 PMAndrea Bagnacani
08/01/2025, 12:17 PMFelix Lenner
08/01/2025, 12:38 PM.getReadsMD5() don't match.Andrea Bagnacani
08/01/2025, 12:41 PMNicolas Vannieuwkerke
08/01/2025, 12:48 PMFelix Lenner
08/01/2025, 12:51 PMAndrea Bagnacani
08/01/2025, 12:55 PMAndrea Bagnacani
08/01/2025, 1:01 PM