modules icon indicating copy to clipboard operation
modules copied to clipboard

Update isoseq modules and migrate to nf-test

Open sguizard opened this issue 1 year ago • 2 comments

Modules migrated to nf-test:

  • isoseq/cluster
  • isoseq/refine
  • pbccs
  • pbbam/pbmerge
  • lima

Software update:

  • isoseq/cluster: v.3.8.1 -> 4.0.0
  • isoseq/refine: v.3.8.1 -> 4.0.0
  • pbbam/pbmerge: 2.1.0 -> 2.4.0
  • lima: 2.7.1 -> 2.9.0

sguizard avatar Jan 17 '24 15:01 sguizard

The conda pbbam/pbmerge is failing for not matching snapshots, but singularity and docker ones succeed. Should it be ignored?

sguizard avatar Jan 23 '24 10:01 sguizard

The conda pbbam/pbmerge is failing for not matching snapshots, but singularity and docker ones succeed. Should it be ignored?

I would go for comparing the file contents rather than the checksums in that case but not ignoring conda alltogether. So go for something like

# checking output vcf files
{ assert path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1") }

# checking output files with same headers
{ assert snapshot(file(process.out.stats.get(0).get(1)).readLines()[0..5]).match() }

famosab avatar Mar 21 '24 11:03 famosab

@sguizard , are you able to finish this PR off and get these changes merged in? Please ask if you need help. Conda often gives md5sums for bam files that are different to docker/singularity, so you need to check for existence of the file rather than the md5sum.

SPPearce avatar May 07 '24 15:05 SPPearce

I was curious as to why the versions.yml was changing, so I took the output of pbmerge --version in the two containers:

conda:

"PBBAM_PBMERGE":
    pbbam: pbmerge 3.1.1 (commit v3.1.1)

Using:
  pbbam     : 2.5.0 (commit v2.5.0)
  pbcopper  : 2.4.0 (commit v2.4.0)
  boost     : 1.81
  htslib    : 1.17
  zlib      : 1.2.13

docker:

"PBBAM_PBMERGE":
    pbbam: pbmerge 3.0.0 (commit v3.0.0)

Using:
  pbbam     : 2.3.0 (commit v2.3.0-3-g502c299)
  pbcopper  : 2.2.0 (commit v2.2.0-9-gde47bd7)
  boost     : 1.77
  htslib    : 1.15
  zlib      : 1.2.11

which is interesting, as the conda/container directives would suggest 2.4.0 for both.

SPPearce avatar May 14 '24 12:05 SPPearce

From the anaconda registry it seems to me that there was a version jump from 2.1 to 2.4 so 2.3 and 2.5 do not exist there. And for pbcopper there is no version 2.4 on anaconda. Or am I missing something?

famosab avatar May 14 '24 12:05 famosab

Second comment: It seems to me that pbbam was archived and the individual tools were transferred to pbtk. I think this should be reflected in the nf-core modules?

I would suggest to remove all changes made to pbbam/pbmerge from this PR and tackle the proper update on a separate branch with a separate PR. Because all the other modules have been ported properly and then it would be less crowded. What do you think @SPPearce @sguizard?

famosab avatar May 14 '24 12:05 famosab

Second comment: It seems to me that pbbam was archived and the individual tools were transferred to pbtk. I think this should be reflected in the nf-core modules?

I would suggest to remove all changes made to pbbam/pbmerge from this PR and tackle the proper update on a separate branch with a separate PR. Because all the other modules have been ported properly and then it would be less crowded. What do you think @SPPearce @sguizard?

That sounds sensible, let's do that then.

SPPearce avatar May 14 '24 12:05 SPPearce

I removed pbbam/pbmerge and all tests are green 🎉 Thanks for the support.

sguizard avatar May 15 '24 06:05 sguizard

@SPPearce Do you think we should remove the module completely here (as indicated in the issue #5601)? Then I will retract my comments :D

Edit: I asked in the #modules slack channel

famosab avatar May 15 '24 07:05 famosab

As discussed on the slack channel, I would suggest that we leave the pbmerge module untouched in this PR, and open a separate PR to deprecate it (rather than delete it).

SPPearce avatar May 15 '24 08:05 SPPearce

Good work @sguizard 🎉

SPPearce avatar May 15 '24 12:05 SPPearce

Thanks for the help!

sguizard avatar May 15 '24 15:05 sguizard