I am trying to write a module that outputs CRAM fi...
# modules
c
I am trying to write a module that outputs CRAM files. The CRAM format has a header that indicates the absolute path of the genome file at the time of creation. When running nf-test, this file is in a work folder with a random name. Therefore the CRAM file's MD5 sum is not stable. Did somebody else experience that problem before and found an elegant solution?
m
https://nvnieuwk.github.io/nft-bam/dev/ this plug-in should make it easier
👍 1
c
Thanks! For the record, this solved my problem after adding the genome file to the output channel containing the CRAM file.
Copy code
-                { assert snapshot(process.out).match() }
+                { assert snapshot(process.out.cram.collect { bam(it[1], it[2]).getSamLines() }).match() }