diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 5971c09e..aaf5c358 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -116,4 +116,3 @@ To get started: Devcontainer specs: - [DevContainer config](.devcontainer/devcontainer.json) -- [Dockerfile](.devcontainer/Dockerfile) diff --git a/.nf-core.yml b/.nf-core.yml index 3805dc81..8cd6ed5a 100644 --- a/.nf-core.yml +++ b/.nf-core.yml @@ -1 +1,4 @@ repository_type: pipeline +lint: + files_unchanged: + - .github/CONTRIBUTING.md diff --git a/README.md b/README.md index f7502a98..fc0f12c3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ## Introduction -**nf-core/bamtofastq** is a bioinformatics best-practice analysis pipeline that converts (un)mapped `.bam` files or `.cram` files into `fq.gz` files. Initially, it auto-detects, whether the input file contains single-end or paired-end reads. Following this step, the reads are sorted using `samtools collate` and extracted with `samtools fastq`. Furthermore, for mapped bam/cram files it is possible to only convert reads mapping to a specific region or chromosome. The obtained FastQ files can then be used to further process with other pipelines. +**nf-core/bamtofastq** is a bioinformatics best-practice analysis pipeline that converts (un)mapped `.bam` or `.cram` files into `fq.gz` files. Initially, it auto-detects, whether the input file contains single-end or paired-end reads. Following this step, the reads are sorted using `samtools collate` and extracted with `samtools fastq`. Furthermore, for mapped bam/cram files it is possible to only convert reads mapping to a specific region or chromosome. The obtained FastQ files can then be used to further process with other pipelines. The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The [Nextflow DSL2](https://www.nextflow.io/docs/latest/dsl2.html) implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from [nf-core/modules](https://github.com/nf-core/modules) in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community! @@ -84,7 +84,6 @@ We thank the following people for their extensive assistance in the development - [Gisela Gabernet](https://github.com/ggabernet) - [Matilda Åslin](https://github.com/matrulda) -- [Susanne Jodoin](https://github.com/SusiJo) - [Bruno Grande](https://github.com/BrunoGrandePhd) ### Resources diff --git a/subworkflows/local/prepare_indices.nf b/subworkflows/local/prepare_indices.nf index 1cb7a6d0..0ba38b45 100644 --- a/subworkflows/local/prepare_indices.nf +++ b/subworkflows/local/prepare_indices.nf @@ -32,12 +32,12 @@ workflow PREPARE_INDICES { // INDEX BAM/CRAM only if not provided SAMTOOLS_INDEX(input_to_index) - ch_versions = ch_versions.mix(SAMTOOLS_INDEX.out.versions) - ch_index_files = Channel.empty().mix(SAMTOOLS_INDEX.out.bai, SAMTOOLS_INDEX.out.crai) + ch_versions = ch_versions.mix(SAMTOOLS_INDEX.out.versions) + ch_index_files = Channel.empty().mix(SAMTOOLS_INDEX.out.bai, SAMTOOLS_INDEX.out.crai) // Combine channels - ch_new = input_to_index.join(ch_index_files) - ch_out = samtools_input.is_indexed.mix(ch_new) + ch_new = input_to_index.join(ch_index_files) + ch_out = samtools_input.is_indexed.mix(ch_new) // INDEX FASTA @@ -51,7 +51,7 @@ workflow PREPARE_INDICES { // Gather versions of all tools used emit: - ch_input_indexed = ch_out - fasta_fai = fasta_fai - versions = ch_versions + ch_input_indexed = ch_out + fasta_fai = fasta_fai + versions = ch_versions } diff --git a/workflows/bamtofastq.nf b/workflows/bamtofastq.nf index 0314bc25..5413234c 100644 --- a/workflows/bamtofastq.nf +++ b/workflows/bamtofastq.nf @@ -24,11 +24,11 @@ if (params.input) { ch_input = extract_csv(file(params.input, checkIfExists: tru // Initialize file channels based on params -fasta = params.fasta ? Channel.fromPath(params.fasta).collect() : Channel.value([]) -fasta_fai = params.fasta_fai ? Channel.fromPath(params.fasta_fai).collect() : Channel.value([]) +fasta = params.fasta ? Channel.fromPath(params.fasta).collect() : Channel.value([]) +fasta_fai = params.fasta_fai ? Channel.fromPath(params.fasta_fai).collect() : Channel.value([]) // Initialize value channels based on params -chr = params.chr ?: Channel.empty() +chr = params.chr ?: Channel.empty() /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -52,7 +52,7 @@ ch_multiqc_custom_methods_description = params.multiqc_methods_description ? fil ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -include { CHECK_IF_PAIRED_END } from '../modules/local/check_paired_end' +include { CHECK_IF_PAIRED_END } from '../modules/local/check_paired_end' /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~