Publish cram#201
Conversation
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.2.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
c55231d to
9f6e72a
Compare
390405c to
a1a05b2
Compare
bump snaps
a1a05b2 to
fabe147
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR implements CRAM output format support as recommended by nf-core guidelines, changing the default output from BAM to CRAM files for improved storage efficiency while adding a --bam parameter for users who need BAM output.
- Adds SAMTOOLS_CONVERT module to convert BAM files to CRAM format by default
- Introduces
--bamparameter to maintain BAM output when needed - Updates all test files to expect CRAM files and validates the new publishing logic
Reviewed Changes
Copilot reviewed 39 out of 39 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| workflows/nascent.nf | Integrates SAMTOOLS_CONVERT module with conditional logic based on --bam parameter |
| modules/nf-core/samtools/convert/* | New module for BAM to CRAM conversion with tests and documentation |
| conf/modules.config | Updates publishing configuration to handle both BAM and CRAM outputs conditionally |
| workflows/tests/**/.nf.test | Updates test files to expect CRAM files and adds new tests for both formats |
| nextflow_schema.json | Adds --bam parameter schema definition |
| docs/usage.md | Documents the new CRAM/BAM output options |
Comments suppressed due to low confidence (1)
workflows/tests/transcript_indentification/grohmm/tuning/main.nf.test:21
- Variable name 'bam_files' is misleading since it's collecting CRAM files. Should be renamed to 'cram_files' to match the comment and actual file type being collected.
def bam_files = getAllFilesFromDir(params.outdir, include: ['**/*.cram'])
| params { | ||
| outdir = "$outputDir" | ||
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff' | ||
| fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/GRCh38_chr21.fa' |
There was a problem hiding this comment.
[nitpick] Adding fasta parameter appears unrelated to the main purpose of this PR (CRAM publishing). This change should be documented or separated into a different commit if it's addressing a separate issue.
| fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/GRCh38_chr21.fa' |
| @@ -11,6 +11,7 @@ nextflow_pipeline { | |||
| params { | |||
| outdir = "$outputDir" | |||
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff.gz' | |||
There was a problem hiding this comment.
[nitpick] Adding fasta parameter appears unrelated to the main purpose of this PR (CRAM publishing). This change should be documented or separated into a different commit if it's addressing a separate issue.
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff.gz' | |
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff.gz' | |
| // The fasta parameter is required by the pipeline for this test to run successfully, even though the main focus is CRAM publishing. |
| @@ -11,6 +11,7 @@ nextflow_pipeline { | |||
| params { | |||
| outdir = "$outputDir" | |||
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff' | |||
There was a problem hiding this comment.
[nitpick] Adding fasta parameter appears unrelated to the main purpose of this PR (CRAM publishing). This change should be documented or separated into a different commit if it's addressing a separate issue.
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff' | |
| gff = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/genes_chr21.gff' | |
| // The fasta parameter is required for the pipeline to process the GFF input and generate CRAM files. |
This implements the cram output recommendation
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).