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

iGenomes fix #123

Merged
merged 3 commits into from
Nov 26, 2019
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### New features

* Added multicore support for `TrimGalore!`
* Improved the multicore support for Bismark methXtract for more parallelisation ([#121](https://github.com/nf-core/methylseq/issues/121))

### Software updates

Expand All @@ -15,6 +16,7 @@

### Pipeline Updates

* Fixed bug where the iGenomes config was loaded after the references were set ([#121](https://github.com/nf-core/methylseq/issues/121))
* Removed awsbatch config profile because it is now served by [nf-core/configs](https://github.com/nf-core/configs)

## [v1.4](https://github.com/nf-core/methylseq/releases/tag/1.4) - 2019-11-19
Expand Down
2 changes: 1 addition & 1 deletion conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process {
}
withName:trim_galore {
cpus = { check_max( 15 * task.attempt, 'cpus') }
memory = { check_max( 16.GB * task.attempt, 'memory') }
memory = { check_max( 6.GB * task.attempt, 'memory') }
time = { check_max( 1.d * task.attempt, 'time') }
}
withName:bismark_align {
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ channels:
- bioconda
- defaults
dependencies:
- python=3.7
- conda-forge::pigz=2.3.4
- conda-forge::r-markdown=1.1
- bioconda::fastqc=0.11.8
Expand Down
6 changes: 6 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ assert params.aligner == 'bwameth' || params.aligner == 'bismark' || params.alig
* SET UP CONFIGURATION VARIABLES
*/

// These params need to be set late, after the iGenomes config is loaded
bismark_index = params.genome ? params.genomes[ params.genome ].bismark ?: false : false
bwa_meth_index = params.genome ? params.genomes[ params.genome ].bwa_meth ?: false : false
fasta = params.genome ? params.genomes[ params.genome ].fasta ?: false : false
fasta_index = params.genome ? params.genomes[ params.genome ].fasta_index ?: false : false

// Check if genome exists in the config file
if (params.genomes && params.genome && !params.genomes.containsKey(params.genome)) {
exit 1, "The provided genome '${params.genome}' is not available in the iGenomes file. Currently the available genomes are ${params.genomes.keySet().join(", ")}"
Expand Down
4 changes: 0 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ params {
reads = "data/*_R{1,2}.fastq.gz"
single_end = false
aligner = 'bismark'
bismark_index = params.genome ? params.genomes[ params.genome ].bismark ?: false : false
bwa_meth_index = params.genome ? params.genomes[ params.genome ].bwa_meth ?: false : false
fasta = params.genome ? params.genomes[ params.genome ].fasta ?: false : false
fasta_index = params.genome ? params.genomes[ params.genome ].fasta_index ?: false : false
comprehensive = false
ignore_flags = false
meth_cutoff = false
Expand Down