Skip to content

[GH-7778] Added matlock/bam2juicer#10305

Open
GallVp wants to merge 1 commit intonf-core:masterfrom
GallVp:MATLOCK/BAM2JUICER
Open

[GH-7778] Added matlock/bam2juicer#10305
GallVp wants to merge 1 commit intonf-core:masterfrom
GallVp:MATLOCK/BAM2JUICER

Conversation

@GallVp
Copy link
Member

@GallVp GallVp commented Mar 2, 2026

PR checklist

Closes #XXX

  • new module: MATLOCK/BAM2JUICER #7778
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@GallVp GallVp requested a review from atrigila March 2, 2026 21:35
@GallVp GallVp linked an issue Mar 2, 2026 that may be closed by this pull request
4 tasks
@GallVp GallVp mentioned this pull request Mar 2, 2026
4 tasks
"""
input[0] = [
[ id:'test' ], // meta map
file('https://github.com/Plant-Food-Research-Open/assemblyqc/raw/eef371b57bda38fb0ff8167f7a547325c8211c3f/tests/hic/testdata/HYh1h2_Chr01_6000000_6015000.bam', checkIfExists: true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really like external data, is there not a suitable bam file in the test-datasets already?

def prefix = task.ext.prefix ?: "${meta.id}"
def VERSION = '20181227'
def args2 = task.ext.args2 ?: ''
def filter_cmd = args2 != '' ? "samtools view --threads $task.cpus $args2 -Sb $bam > ${prefix}.juicer.bam" : ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be piped into the other tool?
Should probably remove it afterwards anyway.

bam2 \\
juicer \\
$juicer_input \\
${prefix}.links.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not hardcode the .links here, put that into the default prefix instead.

Comment on lines +35 to +39
cat <<-END_VERSIONS > versions.yml
"${task.process}":
matlock: $VERSION
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
END_VERSIONS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have moved to using topic channels and eval for the versions, can you swap it please:
https://nf-co.re/hackathon-projects/hackathon-march-2026/modules

e.g. `[ id:'sample1' ]`
- bam:
type: file
description: Sorted BAM/CRAM/SAM file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to stage the fasta as well for cram files (which samtools view could convert anyway if the tool didn't natively)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new module: MATLOCK/BAM2JUICER

2 participants