Open
Conversation
4 tasks
SPPearce
requested changes
Mar 3, 2026
| """ | ||
| 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), |
Contributor
There was a problem hiding this comment.
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" : '' |
Contributor
There was a problem hiding this comment.
Could this be piped into the other tool?
Should probably remove it afterwards anyway.
| bam2 \\ | ||
| juicer \\ | ||
| $juicer_input \\ | ||
| ${prefix}.links.txt |
Contributor
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
You'll need to stage the fasta as well for cram files (which samtools view could convert anyway if the tool didn't natively)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
Closes #XXX
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda