Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bam2fastq10x to handle multiplexed samples #6702

Merged
merged 5 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions modules/nf-core/bamtofastq10x/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ process BAMTOFASTQ10X {
tuple val(meta), path(bam)

output:
tuple val(meta), path("*.fastq.gz"), emit: fastq
path "versions.yml" , emit: versions
tuple val(meta), path("**/*.fastq.gz"), emit: fastq
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -24,7 +24,7 @@ process BAMTOFASTQ10X {
bamtofastq \\
$args \\
$bam \\
${prefix}.fastq.gz
$prefix

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand All @@ -35,7 +35,8 @@ process BAMTOFASTQ10X {
stub:
def prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.fastq.gz
mkdir -p ${prefix}/bamtofastq10x
touch ${prefix}/bamtofastq10x/bamtofastq.fastq.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/bamtofastq10x/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ output:
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- "*.fastq.gz":
- "**/*.fastq.gz":
type: file
description: fastq compressed file
pattern: "*.fastq.gz"
pattern: "**/*.fastq.gz"
- versions:
- versions.yml:
type: file
Expand Down
22 changes: 9 additions & 13 deletions modules/nf-core/bamtofastq10x/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
"id": "test"
},
[
[
"bamtofastq_S1_L000_I1_001.fastq.gz:md5,a33682ac881de7a7453d79721b7621a0",
"bamtofastq_S1_L000_R1_001.fastq.gz:md5,5ccebf77d8636d7a7cdfc59737aea79f",
"bamtofastq_S1_L000_R2_001.fastq.gz:md5,2ee7c90e4307deba74065cfd00a65002"
]
"bamtofastq_S1_L000_I1_001.fastq.gz:md5,a33682ac881de7a7453d79721b7621a0",
"bamtofastq_S1_L000_R1_001.fastq.gz:md5,5ccebf77d8636d7a7cdfc59737aea79f",
"bamtofastq_S1_L000_R2_001.fastq.gz:md5,2ee7c90e4307deba74065cfd00a65002"
]
]
],
Expand All @@ -25,11 +23,9 @@
"id": "test"
},
[
[
"bamtofastq_S1_L000_I1_001.fastq.gz:md5,a33682ac881de7a7453d79721b7621a0",
"bamtofastq_S1_L000_R1_001.fastq.gz:md5,5ccebf77d8636d7a7cdfc59737aea79f",
"bamtofastq_S1_L000_R2_001.fastq.gz:md5,2ee7c90e4307deba74065cfd00a65002"
]
"bamtofastq_S1_L000_I1_001.fastq.gz:md5,a33682ac881de7a7453d79721b7621a0",
"bamtofastq_S1_L000_R1_001.fastq.gz:md5,5ccebf77d8636d7a7cdfc59737aea79f",
"bamtofastq_S1_L000_R2_001.fastq.gz:md5,2ee7c90e4307deba74065cfd00a65002"
]
]
],
Expand All @@ -39,9 +35,9 @@
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.0"
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-05-22T16:43:24.999397"
"timestamp": "2024-10-02T12:56:21.808042"
}
}
Loading