/*
 * -------------------------------------------------
 *  Nextflow config file for reference genome
 * -------------------------------------------------
 * Defines reference genomes, without using iGenome paths
 * Can be used by any config that customises the base
 * path using $params.genomes_base / --genomes_base
 */

params {
  genomes {
    'GRCh37' {
      acLoci                = "${params.genomes_base}/1000G_phase3_20130502_SNP_maf0.3.loci"
      acLociGC              = "${params.genomes_base}/1000G_phase3_20130502_SNP_maf0.3.loci.gc"
      bwaIndex              = "${params.genomes_base}/human_g1k_v37_decoy.fasta.{amb,ann,bwt,pac,sa}"
      chrDir                = "${params.genomes_base}/Chromosomes"
      chrLength             = "${params.genomes_base}/human_g1k_v37_decoy.len"
      dbsnp                 = "${params.genomes_base}/dbsnp_138.b37.vcf"
      dbsnpIndex            = "${params.genomes_base}/dbsnp_138.b37.vcf.idx"
      dict                  = "${params.genomes_base}/human_g1k_v37_decoy.dict"
      fasta                 = "${params.genomes_base}/human_g1k_v37_decoy.fasta"
      fastaFai              = "${params.genomes_base}/human_g1k_v37_decoy.fasta.fai"
      germlineResource      = "${params.genomes_base}/gnomAD.r2.1.1.GRCh37.PASS.AC.AF.only.vcf.gz"
      germlineResourceIndex = "${params.genomes_base}/gnomAD.r2.1.1.GRCh37.PASS.AC.AF.only.vcf.gz.tbi"
      intervals             = "${params.genomes_base}/wgs_calling_regions_Sarek.list"
      knownIndels           = "${params.genomes_base}/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf"
      knownIndelsIndex      = "${params.genomes_base}/{1000G_phase1,Mills_and_1000G_gold_standard}.indels.b37.vcf.idx"
      snpeffDb              = "GRCh37.75"
      vepCacheVersion       = "95"
    }
    'GRCh38' {
      acLoci                = "${params.genomes_base}/1000G_phase3_GRCh38_maf0.3.loci"
      acLociGC              = "${params.genomes_base}/1000G_phase3_GRCh38_maf0.3.loci.gc"
      bwaIndex              = "${params.genomes_base}/Homo_sapiens_assembly38.fasta.64.{alt,amb,ann,bwt,pac,sa}"
      chrDir                = "${params.genomes_base}/Chromosomes"
      chrLength             = "${params.genomes_base}/Homo_sapiens_assembly38.len"
      dbsnp                 = "${params.genomes_base}/dbsnp_146.hg38.vcf.gz"
      dbsnpIndex            = "${params.genomes_base}/dbsnp_146.hg38.vcf.gz.tbi"
      dict                  = "${params.genomes_base}/Homo_sapiens_assembly38.dict"
      fasta                 = "${params.genomes_base}/Homo_sapiens_assembly38.fasta"
      fastaFai              = "${params.genomes_base}/Homo_sapiens_assembly38.fasta.fai"
      germlineResource      = "${params.genomes_base}/gnomAD.r2.1.1.GRCh38.PASS.AC.AF.only.vcf.gz"
      germlineResourceIndex = "${params.genomes_base}/gnomAD.r2.1.1.GRCh38.PASS.AC.AF.only.vcf.gz.tbi"
      intervals             = "${params.genomes_base}/wgs_calling_regions.hg38.bed"
      knownIndels           = "${params.genomes_base}/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz"
      knownIndelsIndex      = "${params.genomes_base}/{Mills_and_1000G_gold_standard.indels.hg38,beta/Homo_sapiens_assembly38.known_indels}.vcf.gz.tbi"
      snpeffDb              = "GRCh38.86"
      vepCacheVersion       = "95"
    }
    'smallGRCh37' {
      acLoci                = "${params.genomes_base}/1000G_phase3_20130502_SNP_maf0.3.small.loci"
      acLociGC              = "${params.genomes_base}/1000G_phase3_20130502_SNP_maf0.3.small.loci.gc"
      dbsnp                 = "${params.genomes_base}/dbsnp_138.b37.small.vcf.gz"
      fasta                 = "${params.genomes_base}/human_g1k_v37_decoy.small.fasta"
      germlineResource      = "${params.genomes_base}/dbsnp_138.b37.small.vcf.gz"
      intervals             = "${params.genomes_base}/small.intervals"
      knownIndels           = ["${params.genomes_base}/1000G_phase1.indels.b37.small.vcf.gz", "${params.genomes_base}/Mills_and_1000G_gold_standard.indels.b37.small.vcf.gz"]
      snpeffDb              = "GRCh37.75"
      vepCacheVersion       = "95"
    }
  }
}
