Skip to content

Commit

Permalink
Merge pull request #61 from malariagen/align_import_workflows
Browse files Browse the repository at this point in the history
Align import workflows with changes in #51
  • Loading branch information
Lfulcrum authored Nov 25, 2020
2 parents 7ca7ca5 + f66a4c1 commit e5ee427
Show file tree
Hide file tree
Showing 25 changed files with 92 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"SNPGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,8 @@ workflow BatchImportShortReadAlignmentAndGenotyping {
Array[File] output_vcf_index = SNPGenotyping.output_vcf_index
Array[File] zarr_output = SNPGenotyping.zarr_output
}

meta {
allowNestedInputs: true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz",
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf_index": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz.tbi",
"BatchImportShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz",
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf_index": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz.tbi",
"BatchImportShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz",
"BatchImportShortReadAlignmentAndGenotyping.alleles_vcf_index": "/nfs/pathogen/malariaGEN/vectors/allele_sites/ag.allsites.nonN.vcf.gz.tbi",
"BatchImportShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,8 @@ workflow ImportShortReadAlignment {
File samtools_flagstat_report_file = SamtoolsFlagStat.report_file
File callable_loci_summary_file = GatkCallableLoci.summary_file
}

meta {
allowNestedInputs: true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,8 @@ workflow ImportShortReadLaneletAlignment {
output {
Array[File] output_bam = LaneletAlignment.output_bam
}

meta {
allowNestedInputs: true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignmentAndGenotyping.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignment.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignment.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignment.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ref_pac": "/nfs/pathogen/malariaGEN/vectors/references/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4/Anopheles-gambiae-PEST_CHROMOSOMES_AgamP4.fa.pac"
},
"ShortReadAlignment.runTimeSettings": {
"lsf_group": "malaria-dk",
"lsf_group": "pathdev",
"lsf_queue": "normal",
"bwa_singularity_image": "bwa.0.7.15_v0.1.2.sif",
"samtools_singularity_image": "samtools.1.4.1_v0.1.2.sif",
Expand Down
30 changes: 20 additions & 10 deletions tasks/farm5/ImportTasks.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ task ImportIRODS {
String irods_path
String sample_id

String singularity_image = runTimeSettings.irods_singularity_image
Int num_cpu = 1
Int memory = 1000
String? lsf_group
String? lsf_queue
RunTimeSettings runTimeSettings
}

Expand All @@ -25,11 +30,11 @@ task ImportIRODS {
}

runtime {
singularity: runTimeSettings.irods_singularity_image
memory: 1000
cpu: "1"
lsf_group: select_first([runTimeSettings.lsf_group, "malaria-dk"])
lsf_queue: select_first([runTimeSettings.lsf_queue, "normal"])
singularity: singularity_image
memory: memory
cpu: num_cpu
lsf_group: select_first([runTimeSettings.lsf_group, lsf_group, "pathdev"])
lsf_queue: select_first([runTimeSettings.lsf_queue, lsf_queue, "normal"])
}

output {
Expand All @@ -50,6 +55,11 @@ task BatchSplitUpInputFile {
input {
File batch_sample_manifest_file

String singularity_image = runTimeSettings.binder_singularity_image
Int num_cpu = 1
Int memory = 3000
String? lsf_group
String? lsf_queue
RunTimeSettings runTimeSettings
}

Expand All @@ -74,11 +84,11 @@ task BatchSplitUpInputFile {
>>>
runtime {
singularity: runTimeSettings.binder_singularity_image
memory: 3000
cpu: "1"
lsf_group: select_first([runTimeSettings.lsf_group, "malaria-dk"])
lsf_queue: select_first([runTimeSettings.lsf_queue, "normal"])
singularity: singularity_image
memory: memory
cpu: num_cpu
lsf_group: select_first([runTimeSettings.lsf_group, lsf_group, "pathdev"])
lsf_queue: select_first([runTimeSettings.lsf_queue, lsf_queue, "normal"])
}
output {
Expand Down
8 changes: 4 additions & 4 deletions tasks/farm5/SNPGenotypingTasks.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ task UnifiedGenotyper {
singularity: singularity_image
cpu: num_cpu
memory: memory
lsf_group: select_first([lsf_group, runTimeSettings.lsf_group, "malaria-dk"])
lsf_queue: select_first([lsf_queue, runTimeSettings.lsf_queue, "normal"])
lsf_group: select_first([runTimeSettings.lsf_group, lsf_group, "pathdev"])
lsf_queue: select_first([runTimeSettings.lsf_queue, lsf_queue, "normal"])
}
output {
File output_vcf = output_vcf_filename
Expand Down Expand Up @@ -106,8 +106,8 @@ task VcfToZarr {
singularity: singularity_image
cpu: num_cpu
memory: memory
lsf_group: select_first([lsf_group, runTimeSettings.lsf_group, "malaria-dk"])
lsf_queue: select_first([lsf_queue, runTimeSettings.lsf_queue, "normal"])
lsf_group: select_first([runTimeSettings.lsf_group, lsf_group, "pathdev"])
lsf_queue: select_first([runTimeSettings.lsf_queue, lsf_queue, "normal"])
}
output {
File output_log_file = output_log_file_name
Expand Down
Loading

0 comments on commit e5ee427

Please sign in to comment.