Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Jun 21, 2024
2 parents e43e609 + 8025881 commit a94b5ad
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [[1.1.3](https://github.com/sanger-tol/variantcalling/releases/tag/1.1.3)] - Shang Tang (patch 3) - [2024-05-24]

### Enhancements & fixes

- Fixed the bug in the filtering of multiple PacBio files

## [[1.1.2](https://github.com/sanger-tol/variantcalling/releases/tag/1.1.2)] - Shang Tang (patch 2) - [2024-03-14]

### Enhancements & fixes
Expand Down
4 changes: 2 additions & 2 deletions modules/local/pacbio_filter.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ process PACBIO_FILTER {
tuple val(meta), path(txt)

output:
path("*.blocklist"), emit: list
path "versions.yml", emit: versions
tuple val(meta), path("*.blocklist"), emit: list
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ manifest {
description = """Variant calling pipeline for PacBio data using DeepVariant"""
mainScript = 'main.nf'
nextflowVersion = '!>=22.10.1'
version = '1.1.2'
version = '1.1.3'
doi = 'https://doi.org/10.5281/zenodo.7890527'
}

Expand Down
11 changes: 10 additions & 1 deletion subworkflows/local/filter_pacbio.nf
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,18 @@ workflow FILTER_PACBIO {
// Create filtered BAM file
SAMTOOLS_CONVERT.out.bam
| join ( SAMTOOLS_CONVERT.out.csi )
| join ( PACBIO_FILTER.out.list )
| set { ch_reads_and_list }

ch_reads_and_list
| map { meta, bam, csi, list -> [meta, bam, csi] }
| set { ch_reads }

SAMTOOLS_FILTER ( ch_reads, [ [], [] ], PACBIO_FILTER.out.list )
ch_reads_and_list
| map { meta, bam, csi, list -> list }
| set { ch_lists }

SAMTOOLS_FILTER ( ch_reads, [ [], [] ], ch_lists )
ch_versions = ch_versions.mix ( SAMTOOLS_FILTER.out.versions.first() )


Expand Down

0 comments on commit a94b5ad

Please sign in to comment.