Skip to content

Commit cdf5e57

Browse files
committed
remove the paired flag from the bamfile after filtering
1 parent 4cc11e1 commit cdf5e57

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Changes the `bam_deam_stats.py` and the `mask_deamination.py` scripts to look at 3' G to A substitutions instead of the C to T changes as done before.
1414
- Nothing changes for default runs
1515
- Fix a bug in the processing of paired fastq-files.
16+
- removes the "1" flag from the resulting bam files (make sure to merge your reads before quicksand!)
1617

1718
## [v2.1] - 2024-03-21
1819

conf/process.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ process {
2525
//
2626
// Workflow: Bamfilter
2727
//
28+
//
29+
// remove the paired information after filtering.
30+
// IF people dont merge their reads, that causes downstream problems, so this is necessary.
2831

2932
withName: "SAMTOOLS_FILTER" {
30-
ext.args = "-F ${params.bamfilterflag}"
33+
ext.args = "-F ${params.bamfilterflag} --remove-flags 1"
3134
}
3235

3336
withName: "BAM_LENGTHFILTER" {

0 commit comments

Comments
 (0)