Conversation
|
Hi @FriederikeHanssen, |
Co-authored-by: FriederikeHanssen <FriederikeHanssen@users.noreply.github.com>
Co-authored-by: FriederikeHanssen <FriederikeHanssen@users.noreply.github.com> Co-authored-by: Gisela Gabernet <gisela.gabernet@qbic.uni-tuebingen.de>
Co-authored-by: FriederikeHanssen <FriederikeHanssen@users.noreply.github.com>
|
it would probably be good if we start merging PRs soon-ish to the dsl2, so we can fix things independently. Otherwise, I will have to push to your branch which will cause chaos :D |
|
Linting is passing locally with nf-core tools 2.8.dev0. Might be failing because of a missing |
matrulda
left a comment
There was a problem hiding this comment.
Great job! I've left a couple of comments.
|
|
||
| - [ ] This comment contains a description of changes (with reason). | ||
| - [ ] If you've fixed a bug or added code that should be tested, add tests! | ||
| - [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/bamtofastq/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/bamtofastq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository. |
There was a problem hiding this comment.
| - [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/bamtofastq/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/bamtofastq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository. | |
| - [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/bamtofastq/tree/master/.github/CONTRIBUTING.md) | |
| - [ ] If necessary, also make a PR on the nf-core/bamtofastq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository. |
There was a problem hiding this comment.
That's actually a typo in the pipeline template :D
There was a problem hiding this comment.
Should this file be removed? It looks like multiqc_config.yml is the one that is used. In that case, should perhaps the top modules info should be moved to that config?
| | `sample` | Custom sample name. | | ||
| | `mapped` | Full path to input BAM/CRAM file. File has to have the extension ".bam" or ".cram". | | ||
| | `index` | If available provide full path to input BAI/CRAI index file. File has to have the extension ".bam.bai" or ".cram.crai". | | ||
| | `filetype` | For input BAM files the filetype hast to be "bam" and for input CRAM files, the filetype needs to be "cram". | |
There was a problem hiding this comment.
Perhaps the description can simply be something like: "Type of input file. Options: bam or cram"
| Unfortunately, at the time of writing, FastQC [doesn't support](https://github.com/s-andrews/FastQC/issues/54) CRAM files as input. Hence, a benefit of converting CRAM files to BAM format as opposed to converting directly to FASTQ format is that you can perform QC before the final conversion. | ||
| ### `--fasta` | ||
|
|
||
| Use this option to indicate which reference genome FASTA file to use when decompressing CRAM files. It will only work if the reference genome FASTA file listed in the CRAM header is available (_e.g._ via HTTP/FTP or on the local file system). Otherwise, you will need to use the [`--fasta`](#--fasta) option. You can check which reference FASTA file is indicated in the CRAM header with the following command: |
There was a problem hiding this comment.
I think this section is a bit confusing. If I understand it right, this parameter is only needed if an accessible fasta file isn't specified the header?
Suggestion:
When converting a CRAM file the fasta file specified in the CRAM header is used to decompress the file. If that file isn't available, you will need to specify an alternative path using the --fasta option.
There was a problem hiding this comment.
Thanks! Sounds much better!
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| */ | ||
|
|
||
| params.chr = WorkflowMain.getGenomeAttribute(params, 'chr') |
There was a problem hiding this comment.
Is this needed? Afaik this function is used to extract info from a genomes config (like igenomes.config). Don't feel like it's applicable here? I could be missing something though :)
| include { SAMTOOLS_VIEW as SAMTOOLS_CHR } from '../modules/nf-core/samtools/view/main' | ||
| include { SAMTOOLS_VIEW as SAMTOOLS_PE } from '../modules/nf-core/samtools/view/main' | ||
| include { SAMTOOLS_INDEX as SAMTOOLS_CHR_INDEX } from '../modules/nf-core/samtools/index/main' | ||
| include { CHECK_IF_PAIRED_END } from '../modules/local/check_paired_end' |
There was a problem hiding this comment.
Should this be imported in the above section?
| SAMTOOLS_CHR.out.cram) | ||
| SAMTOOLS_CHR_INDEX(samtools_chr_out) | ||
| ch_input = samtools_chr_out.join(Channel.empty().mix(SAMTOOLS_CHR_INDEX.out.bai, | ||
| SAMTOOLS_CHR_INDEX.out.crai)) |
| // Index File if not PROVIDED -> this also requires updates to samtools view possibly URGH | ||
|
|
||
| // MAP - MAP | ||
| SAMTOOLS_VIEW_MAP_MAP(input, fasta, []) |
There was a problem hiding this comment.
I'm pretty sure I'm just missing something obvious, but I don't get how the samtools flags are passed to the module. I guess they are part of the meta data somehow, but I can't seem to find where.
There was a problem hiding this comment.
They are specified in the modules.config for each named process.
Many thanks to contributing to qbic-pipelines/bamtofastq!
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).
PR checklist
testdata/nextflow run . -profile test,docker).nf-core lint .).docsis updatedCHANGELOG.mdis updatedREADME.mdis updatedLearn more about contributing: https://github.com/qbic-pipelines/bamtofastq/tree/master/.github/CONTRIBUTING.md