Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit 6ce9d62

Browse files
committed
add iGenomes specific config
1 parent 347bebb commit 6ce9d62

5 files changed

Lines changed: 68 additions & 30 deletions

File tree

conf/aws-batch.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
params {
11-
genome_base = params.genome == 'iGRCh37' ? "s3://ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh37" : params.genome == 'iGRCh38' ? "s3://ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38" : "s3://sarek-references/small"
11+
genome_base = params.genome == 'GRCh37' ? "s3://ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh37" : params.genome == 'GRCh38' ? "s3://ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38" : "s3://sarek-references/small"
1212
publishDirMode = 'copy'
1313
}
1414

conf/base.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* -------------------------------------------------
77
*/
88

9-
includeConfig 'genomes.config'
109
wf_repository = 'maxulysse'
1110

1211
params {

conf/genomes.config

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,6 @@ params {
4242
//AF_files = "${params.genome_base}/{00-All.dbsnp_151.hg38.CAF.TOPMED.alternate.allele.freq,hapmap_3.3_grch38_pop_stratified_af.HMAF,SweGen_hg38_stratified.SWAF}.vcf"
4343
//AF_indexes = "${params.genome_base}/{00-All.dbsnp_151.hg38.CAF.TOPMED.alternate.allele.freq,hapmap_3.3_grch38_pop_stratified_af.HMAF,SweGen_hg38_stratified.SWAF}.vcf.idx"
4444
}
45-
'iGRCh37' {
46-
acLoci = "${params.genome_base}/Annotation/ASCAT/1000G_phase3_20130502_SNP_maf0.3.loci"
47-
dbsnp = "${params.genome_base}/Annotation/GATKBundle/dbsnp_138.b37.vcf"
48-
dbsnpIndex = "${params.genome_base}/Annotation/GATKBundle/dbsnp_138.b37.vcf.idx"
49-
genomeFile = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta"
50-
genomeDict = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.dict"
51-
genomeIndex = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta.fai"
52-
bwaIndex = "${params.genome_base}/Sequence/BWAIndex/human_g1k_v37_decoy.fasta.{amb,ann,bwt,pac,sa}"
53-
intervals = "${params.genome_base}/Annotation/intervals/wgs_calling_regions_CAW.list"
54-
knownIndels = "${params.genome_base}/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf"
55-
knownIndelsIndex = "${params.genome_base}/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.idx"
56-
snpeffDb = "GRCh37.75"
57-
}
58-
'iGRCh38' {
59-
acLoci = "${params.genome_base}/Annotation/ASCAT/1000G_phase3_GRCh38_maf0.3.loci"
60-
dbsnp = "${params.genome_base}/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz"
61-
dbsnpIndex = "${params.genome_base}/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz.tbi"
62-
genomeFile = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta"
63-
genomeDict = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.dict"
64-
genomeIndex = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta.fai"
65-
bwaIndex = "${params.genome_base}/Sequence/BWAIndex/Homo_sapiens_assembly38.fasta.64.{alt,amb,ann,bwt,pac,sa}"
66-
intervals = "${params.genome_base}/Annotation/intervals/wgs_calling_regions.hg38.bed"
67-
knownIndels = "${params.genome_base}/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz"
68-
knownIndelsIndex = "${params.genome_base}/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz.tbi"
69-
snpeffDb = "GRCh38.86"
70-
}
7145
'smallGRCh37' {
7246
acLoci = "${params.genome_base}/1000G_phase3_20130502_SNP_maf0.3.small.loci"
7347
dbsnp = "${params.genome_base}/dbsnp_138.b37.small.vcf"

conf/igenomes.config

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* -------------------------------------------------
3+
* Nextflow config file for Sarek
4+
* -------------------------------------------------
5+
* Path to reference files
6+
* -------------------------------------------------
7+
* Imported under all Nextflow profiles in
8+
* nextflow.config
9+
* -------------------------------------------------
10+
* Modify to add specific versions of genomes
11+
* -------------------------------------------------
12+
*/
13+
14+
params {
15+
genomes {
16+
'GRCh37' {
17+
acLoci = "${params.genome_base}/Annotation/ASCAT/1000G_phase3_20130502_SNP_maf0.3.loci"
18+
dbsnp = "${params.genome_base}/Annotation/GATKBundle/dbsnp_138.b37.vcf"
19+
dbsnpIndex = "${params.genome_base}/Annotation/GATKBundle/dbsnp_138.b37.vcf.idx"
20+
genomeFile = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta"
21+
genomeDict = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.dict"
22+
genomeIndex = "${params.genome_base}/Sequence/WholeGenomeFasta/human_g1k_v37_decoy.fasta.fai"
23+
bwaIndex = "${params.genome_base}/Sequence/BWAIndex/human_g1k_v37_decoy.fasta.{amb,ann,bwt,pac,sa}"
24+
intervals = "${params.genome_base}/Annotation/intervals/wgs_calling_regions_CAW.list"
25+
knownIndels = "${params.genome_base}/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf"
26+
knownIndelsIndex = "${params.genome_base}/Annotation/GATKBundle/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.idx"
27+
snpeffDb = "GRCh37.75"
28+
}
29+
'GRCh38' {
30+
acLoci = "${params.genome_base}/Annotation/ASCAT/1000G_phase3_GRCh38_maf0.3.loci"
31+
dbsnp = "${params.genome_base}/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz"
32+
dbsnpIndex = "${params.genome_base}/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz.tbi"
33+
genomeFile = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta"
34+
genomeDict = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.dict"
35+
genomeIndex = "${params.genome_base}/Sequence/WholeGenomeFasta/Homo_sapiens_assembly38.fasta.fai"
36+
bwaIndex = "${params.genome_base}/Sequence/BWAIndex/Homo_sapiens_assembly38.fasta.64.{alt,amb,ann,bwt,pac,sa}"
37+
intervals = "${params.genome_base}/Annotation/intervals/wgs_calling_regions.hg38.bed"
38+
knownIndels = "${params.genome_base}/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz"
39+
knownIndelsIndex = "${params.genome_base}/Annotation/GATKBundle/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz.tbi"
40+
snpeffDb = "GRCh38.86"
41+
}
42+
'smallGRCh37' {
43+
acLoci = "${params.genome_base}/1000G_phase3_20130502_SNP_maf0.3.small.loci"
44+
dbsnp = "${params.genome_base}/dbsnp_138.b37.small.vcf"
45+
dbsnpIndex = "${dbsnp}.idx"
46+
genomeFile = "${params.genome_base}/human_g1k_v37_decoy.small.fasta"
47+
bwaIndex = "${genomeFile}.{amb,ann,bwt,pac,sa}"
48+
genomeDict = "${params.genome_base}/human_g1k_v37_decoy.small.dict"
49+
genomeIndex = "${genomeFile}.fai"
50+
intervals = "${params.genome_base}/small.intervals"
51+
knownIndels = "${params.genome_base}/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.small.vcf"
52+
knownIndelsIndex = "${params.genome_base}/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.small.vcf.idx"
53+
snpeffDb = "GRCh37.75"
54+
}
55+
}
56+
}

nextflow.config

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ profiles {
2828
// Singularity images need to be set up
2929
standard {
3030
includeConfig 'conf/base.config'
31+
includeConfig 'conf/genomes.config'
3132
includeConfig 'conf/uppmax-localhost.config'
3233
includeConfig 'conf/singularity-path.config'
3334
}
@@ -36,6 +37,7 @@ profiles {
3637
// Singularity images need to be set up
3738
slurm {
3839
includeConfig 'conf/base.config'
40+
includeConfig 'conf/genomes.config'
3941
includeConfig 'conf/uppmax-slurm.config'
4042
includeConfig 'conf/singularity-path.config'
4143
}
@@ -44,6 +46,7 @@ profiles {
4446
// Singularity images will be pulled automatically
4547
slurmDownload {
4648
includeConfig 'conf/base.config'
49+
includeConfig 'conf/genomes.config'
4750
includeConfig 'conf/uppmax-slurm.config'
4851
includeConfig 'conf/singularity.config'
4952
includeConfig 'conf/containers.config'
@@ -52,6 +55,7 @@ profiles {
5255
// Docker images will be pulled automatically
5356
docker {
5457
includeConfig 'conf/base.config'
58+
includeConfig 'conf/genomes.config'
5559
includeConfig 'conf/travis.config'
5660
includeConfig 'conf/docker.config'
5761
includeConfig 'conf/containers.config'
@@ -60,6 +64,7 @@ profiles {
6064
// Docker images will be pulled automatically
6165
awsbatch {
6266
includeConfig 'conf/base.config'
67+
includeConfig 'conf/igenomes.config'
6368
includeConfig 'conf/aws-batch.config'
6469
includeConfig 'conf/docker.config'
6570
includeConfig 'conf/containers.config'
@@ -68,6 +73,7 @@ profiles {
6873
// Singularity images will be pulled automatically
6974
singularity {
7075
includeConfig 'conf/base.config'
76+
includeConfig 'conf/genomes.config'
7177
includeConfig 'conf/travis.config'
7278
includeConfig 'conf/singularity.config'
7379
includeConfig 'conf/containers.config'
@@ -76,6 +82,7 @@ profiles {
7682
// Singularity images need to be set up
7783
singularityPath {
7884
includeConfig 'conf/base.config'
85+
includeConfig 'conf/genomes.config'
7986
includeConfig 'conf/travis.config'
8087
includeConfig 'conf/singularity-path.config'
8188
}
@@ -85,14 +92,16 @@ profiles {
8592
// Singularity images will be pulled automatically
8693
binac {
8794
includeConfig 'conf/base.config'
95+
includeConfig 'conf/genomes.config'
8896
includeConfig 'conf/binac.config'
8997
includeConfig 'conf/singularity.config'
9098
includeConfig 'conf/resources.config'
9199
includeConfig 'conf/containers.config'
92100
}
93-
// Default config for CFC cluster in Tuebingen/Germany
101+
// Default config for CFC cluster in Tuebingen/Germany
94102
cfc {
95103
includeConfig 'conf/base.config'
104+
includeConfig 'conf/genomes.config'
96105
includeConfig 'conf/cfc.config'
97106
includeConfig 'conf/singularity.config'
98107
includeConfig 'conf/resources.config'
@@ -132,4 +141,4 @@ def check_max(obj, type) {
132141
return obj
133142
}
134143
}
135-
}
144+
}

0 commit comments

Comments
 (0)