-
Notifications
You must be signed in to change notification settings - Fork 146
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
Reference params set before iGenomes config is loaded #121
Comments
Hi @efratushava, Good spot, I'm actually not sure.. I've never personally used the bwameth pipeline with Human data / iGenomes I think. Ok, looking at https://github.com/brentp/bwa-meth#index - I think that the indices for bwameth are not the same as bwa. Running So if we try to use regular bwa iGenomes indices for this analysis, it will fail. Or worse, work but give really terrible results. Ideally, we should add bwa_meth indices to iGenomes for all species. But in the short term, it's possible that people will create their own config files with different species using this notation. So I'm happy to leave the code as it is I think. Does this make sense? Let me know if you have any suggestions for code / documentation that could be improved. Phil |
Maybe I was not clear. So, now, in the iGenome config, the bwa field contains a regular bwa index? |
Hi Phil, I have run into the same issue (when running the bismark aligner option) Perhaps, the config code could be updated to check for aligner type before attempting to set the Moreover, there is no |
Hi both, These config keys are not unique to iGenomes. We use the same configuration structure in our custom configs for home-made genome indices. This is why I think it's useful to have that code, even if these keys are not available in the iGenomes config. I was under the impression that if your current pipeline config doesn't have a key called Line 17 in 40760ec
So if Am I wrong about this - is the pipeline crashing for you?
Yes - used by other pipelines for regular genome alignments. A recent template change added all iGenomes index paths to all pipelines (previously these lines were absent from the pipeline). Phil |
I initially saw the following error: $ nextflow run nf-core/methylseq -profile docker -resume -c bismark.config --genome 'GRCh37'
N E X T F L O W ~ version 19.10.0
Launching `nf-core/methylseq` [grave_almeida] - revision: 40760ecffb [master]
No reference genome index or fasta file specified. Expression: (params.bismark_index || params.fasta)
-- Check script '/home/ucbtmog/.nextflow/assets/nf-core/methylseq/main.nf' at line: 109 or see '.nextflow.log' file for more details Looking back at this, this seems to be less about the Setting the following manually in my bismark.config fixes the issue: params {
...
bismark_index = "${params.igenomes_base}/Homo_sapiens/Ensembl/GRCh37/Sequence/BismarkIndex/"
fasta = "${params.igenomes_base}/Homo_sapiens/Ensembl/GRCh37/Sequence/WholeGenomeFasta/genome.fa"
...
} |
I also had this problem, issue #122 |
Ok, getting somewhere.. @IsmailM - this should definitely work. You're using Bismark with a standard iGenomes reference. Looking at the code a little more closely, I think this is because these values are being set in In other pipelines, such as the RNAseq pipeline, those reference params are set in This used to be the case for the methylseq pipeline too, but it looks like they were moved by @phue in the massive template sync in #92 - so this change would have come out in version 1.4 of the pipeline and broken stuff. Which makes sense. The fix should be to either use @phue - what do you think? Phil |
Prepping a PR now.. |
Actually, given that we have merged a couple of PRs, I propose we do a v1.4.1 minor release. |
still not working...
What's up with this? |
It is not yet released, try with |
You for sure noticed, but I'm just emphasizing-the parameters in the main.nf file should start with params.fasta, params.fasta_index etc... (instead of fasta, fasta_index) But somehow-it's still not working! The pipeline can't run on my files, which exist for sure! |
Please link to specific lines in the code (permalink with commit hash) if there are bits that you think are wrong. Have you pulled the latest version of the dev branch? |
Though the file not existing sounds like it could be a similar problem to the MultiQC issue. I suspect that these are not pipeline specific but relate to containers / Nextflow interaction with the underlying compute infrastructure... |
lines 100-103 in main.nf, the lines that were added in the dev version
yes, with |
Lines 100 to 103 in d0dffea
|
This should now be fixed in Thanks all for spotting the error and helping with the fix 👍 |
Hi all, It took a long time sorry, but we finally just released v1.5 of the pipeline, which includes these fixes. Apologies for the delay, Phil |
I think in the nextflow.config file, in line
bwa_meth_index = params.genome ? params.genomes[ params.genome ].bwa_meth ?: false : false
Doesn't it have to be
bwa_meth_index = params.genome ? params.genomes[ params.genome ].bwa ?: false : false
Because in the igenome config, there is no field name bwa_meth, and there is a field bwa
The text was updated successfully, but these errors were encountered: