Ramiro Barrantes Reynolds
11/06/2024, 5:20 PMnf-test test --tag coptr/map --profile conda --update-snapshot and do it again as nf-test test --tag coptr/map --profile conda it works fine locally. I also do this: nf-test test --tag coptr/map --profile conda and it works fine, but when I push it I get an error in term of different snapshots: "java.lang.RuntimeException: Different Snapshot". Any suggestions?Leon Hafner
11/06/2024, 8:47 PMnf-core modules test coptr/map (assuming no snapshot file exists). The test will then run and produce a snapshot file that contains the hashes of the outputs of your module. It will then automatically run a second time to check if it always gives you the same hashes (which means you script is deterministic and produces the same output each time). The snapshot file is then commited to GitHub and the CI will do the same tests and will also check if the hashes agree with the ones you created locally. If. thats the case, the tests succeeds.Leon Hafner
11/06/2024, 8:53 PMtest_1.bam , which usually is a indicator, that your method is probably not deterministic (gives not the same output with same input). Does the testing locally finish without errors?James Fellows Yates
11/06/2024, 9:22 PMJames Fellows Yates
11/06/2024, 9:23 PMRamiro Barrantes Reynolds
11/07/2024, 2:23 PMRamiro Barrantes Reynolds
11/09/2024, 12:44 AMTest [51b76c12] 'sarscov2 - paired end' groovy.lang.MissingMethodException: No signature of method: vnieuwk.nf.test.bam.AlignmentFile.getStatistics() is applicable for argument types: (LinkedHashMap) values: [[include:[readCount]]]
but I can't find examples of getStatistics on nf-core modulesJames Fellows Yates
11/09/2024, 4:17 AMNicolas Vannieuwkerke
11/09/2024, 10:00 PMRamiro Barrantes Reynolds
11/11/2024, 2:59 PMNicolas Vannieuwkerke
11/12/2024, 8:34 AMRamiro Barrantes Reynolds
11/12/2024, 2:11 PMRamiro Barrantes Reynolds
11/13/2024, 9:20 PMNicolas Vannieuwkerke
11/14/2024, 8:04 AMnft-bam version in the nf-test.config file in the root of the repo, creating a config on the module level will not workRamiro Barrantes Reynolds
11/14/2024, 8:26 PMTest [d3acd541] 'sarscov2 - single end test' java.lang.RuntimeException: A snapshot with id 'sarscov2 - single end test' already exists. Snapshot ids have to be unique, and a test can only have one unnamed snapshot.
If I remove the assertion { assert snapshot(process.out.bam.collect{bam(it[1]).getStatistics(include:["readCount"])}).match() } it works fine, so not sure what is happening. The reason that I want this assertion is that the program jumbles the reads every time, but I can at least know that each time is the same number of reads. Thank you!Nicolas Vannieuwkerke
11/14/2024, 11:44 PMRamiro Barrantes Reynolds
11/15/2024, 3:28 PMNicolas Vannieuwkerke
11/15/2024, 5:17 PM