Skip to content

Commit

Permalink
Forcing a preference in the refmap to dbsnp_vcf for dbsnp file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonn-smith committed Dec 11, 2024
1 parent 182ede2 commit 24a9afd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ workflow SRJointCallGVCFsWithGenomicsDB {

Map[String, String] ref_map = read_map(ref_map_file)

# Resolve the db_snp_vcf file, with preference to the db_snp_vcf file if it exists:
File db_snp_vcf = select_first([ref_map["db_snp_vcf"], ref_map["known_sites_vcf"]])

# Create sample-name map:
call SRJOINT.CreateSampleNameMap as CreateSampleNameMap {
input:
Expand Down Expand Up @@ -178,7 +181,7 @@ workflow SRJointCallGVCFsWithGenomicsDB {
ref_fasta = ref_map['fasta'],
ref_fasta_fai = ref_map['fai'],
ref_dict = ref_map['dict'],
dbsnp_vcf = ref_map["known_sites_vcf"],
dbsnp_vcf = db_snp_vcf,
prefix = prefix + "." + interval_name + ".gnarly_genotyper.raw",
heterozygosity = heterozygosity,
heterozygosity_stdev = heterozygosity_stdev,
Expand All @@ -194,7 +197,7 @@ workflow SRJointCallGVCFsWithGenomicsDB {
ref_fasta = ref_map['fasta'],
ref_fasta_fai = ref_map['fai'],
ref_dict = ref_map['dict'],
dbsnp_vcf = ref_map["known_sites_vcf"],
dbsnp_vcf = db_snp_vcf,
prefix = prefix + "." + interval_name + ".genotype_gvcfs.raw",
heterozygosity = heterozygosity,
heterozygosity_stdev = heterozygosity_stdev,
Expand Down

0 comments on commit 24a9afd

Please sign in to comment.