Skip to content

Commit

Permalink
Merge pull request #111 from sanger-tol/bam_bugfix
Browse files Browse the repository at this point in the history
Bugfix: the BAM still needs to be filtered with `-F0x400`
  • Loading branch information
muffato authored May 1, 2024
2 parents 7ccbd68 + 58a58ff commit 769c00f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 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.2](https://github.com/sanger-tol/genomenote/releases/tag/1.1.2)] [2024-04-29]

### Enhancements & fixes

- Bugfix: the BAM still needs to be filtered with `-F0x400`

## [[1.1.1](https://github.com/sanger-tol/genomenote/releases/tag/1.1.1)] [2024-02-26]

### Enhancements & fixes
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: sanger-tol/genomenote v1.1.1
title: sanger-tol/genomenote v1.1.2
message: >-
If you use this software, please cite it using the
metadata from this file.
Expand Down Expand Up @@ -34,5 +34,5 @@ identifiers:
repository-code: "https://github.com/sanger-tol/genomenote"
license: MIT
commit: TODO
version: 1.1.1
version: 1.1.2
date-released: "2022-10-07"
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ manifest {
description = """Creating standarised genome assembly publications"""
mainScript = 'main.nf'
nextflowVersion = '!>=22.10.1'
version = '1.1.1'
version = '1.1.2'
doi = '10.5281/zenodo.7949384'
}

Expand Down
16 changes: 2 additions & 14 deletions subworkflows/local/contact_maps.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,18 @@ workflow CONTACT_MAPS {
FILTER_GENOME ( SAMTOOLS_FAIDX.out.fai )
ch_versions = ch_versions.mix ( FILTER_GENOME.out.versions.first() )

// Separate CRAM from BAM
reads
| branch { meta, file, index ->
bam : file.extension == "bam"
[meta, file]
cram: file.extension == "cram"
}
| set { ch_reads }

// CRAM to BAM
genome
| map { meta, fasta -> fasta }
| set { ch_fasta }

SAMTOOLS_VIEW ( ch_reads.cram, ch_fasta, [] )
SAMTOOLS_VIEW ( reads, ch_fasta, [] )
ch_versions = ch_versions.mix ( SAMTOOLS_VIEW.out.versions.first() )

// BAM reads
ch_reads.bam
| mix ( SAMTOOLS_VIEW.out.bam )
| set { ch_reads_bam }

// BAM to Bed
BEDTOOLS_BAMTOBED ( ch_reads_bam )
BEDTOOLS_BAMTOBED ( SAMTOOLS_VIEW.out.bam )
ch_versions = ch_versions.mix ( BEDTOOLS_BAMTOBED.out.versions.first() )


Expand Down

0 comments on commit 769c00f

Please sign in to comment.