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

Change .bai index for .csi index in samtools_index #391

Merged
merged 5 commits into from
Aug 27, 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [[#383]](https://github.com/nf-core/smrnaseq/pull/383) - Fix [parameter `--skip_fastp` throws an error](https://github.com/nf-core/smrnaseq/issues/263) - Fix parameter --skip_fastp.
- [[#384]](https://github.com/nf-core/smrnaseq/pull/384) - Fix [filter status bug fix](https://github.com/nf-core/smrnaseq/issues/360) - Fix filter stats module and add filter contaminants test profile.
- [[#387]](https://github.com/nf-core/smrnaseq/pull/387) - Add nf-test to local module `blat_mirna` and fixes [contaminant filter failure because the Docker image for BLAT cannot be pulled](https://github.com/nf-core/smrnaseq/issues/354). Adds a small test profile to test contaminant filter results.
- [[#391]](https://github.com/nf-core/smrnaseq/pull/391) - Change `.bai` index for `.csi` index in `samtools_index` to fix [error because of large chromosomes](https://github.com/nf-core/smrnaseq/issues/132).

## v2.3.1 - 2024-04-18 - Gray Zinc Dalmation Patch

Expand Down
5 changes: 5 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'SAMTOOLS_INDEX' {
ext.args = '-c'
}

withName: 'NFCORE_SMRNASEQ:GENOME_QUANT:BAM_SORT_STATS_SAMTOOLS:BAM_STATS_SAMTOOLS:.*' {
ext.prefix = { "${meta.id}.sorted" }
publishDir = [
Expand Down
48 changes: 24 additions & 24 deletions tests/test.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ nextflow_pipeline {

{ assert snapshot(
path("$outputDir/mirna_quant/bam/mature/Control_N2_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N2_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N2_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.flagstat"),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.idxstats"),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.stats"),
Expand All @@ -109,21 +109,21 @@ nextflow_pipeline {
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.stats"),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.stats"),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N3_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N1_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.flagstat"),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.stats"),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.stats"),
Expand Down Expand Up @@ -233,21 +233,21 @@ nextflow_pipeline {

{ assert snapshot(
path("$outputDir/genome_quant/bam/Control_N2_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Control_N2_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Control_N2_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone1_N3_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Clone9_N3_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Clone9_N3_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Clone9_N3_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Control_N1_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Clone9_N2_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Clone9_N1_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Clone1_N1_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Control_N3_mature_hairpin_genome.sorted.bam").exists(),
path("$outputDir/genome_quant/bam/Control_N1_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Clone9_N2_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Clone9_N1_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Clone1_N1_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Control_N3_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Clone1_N3_mature_hairpin_genome.sorted.bam.bai").exists(),
path("$outputDir/genome_quant/bam/Control_N1_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone9_N2_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone9_N1_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone1_N1_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Control_N3_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone1_N3_mature_hairpin_genome.sorted.bam.csi").exists(),
path("$outputDir/genome_quant/bam/Clone9_N2_mature_hairpin_genome.sorted.flagstat"),
path("$outputDir/genome_quant/bam/Control_N3_mature_hairpin_genome.sorted.stats"),
path("$outputDir/genome_quant/bam/Clone1_N1_mature_hairpin_genome.sorted.flagstat"),
Expand Down
32 changes: 16 additions & 16 deletions tests/test_index.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ nextflow_pipeline {
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N2_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N2_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N2_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone1_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Clone9_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N3_mature.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/mature/Control_N1_mature.sorted.flagstat"),
path("$outputDir/mirna_quant/bam/mature/Clone1_N3_mature.sorted.flagstat"),
path("$outputDir/mirna_quant/bam/mature/Clone9_N3_mature.sorted.flagstat"),
Expand Down Expand Up @@ -95,15 +95,15 @@ nextflow_pipeline {
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N2_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone1_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam.bai").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Control_N3_mature_hairpin.sorted.bam.csi").exists(),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.flagstat"),
path("$outputDir/mirna_quant/bam/hairpin/Clone9_N1_mature_hairpin.sorted.stats"),
path("$outputDir/mirna_quant/bam/hairpin/Control_N2_mature_hairpin.sorted.flagstat"),
Expand Down
Loading
Loading