Skip to content

Commit

Permalink
only need to specify GATK Jar for legacy extractions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthibault79 committed Nov 26, 2024
1 parent 1b4a121 commit 266d106
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion api/config/config_local.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"extractionScatterTasksPerSample": 4
},
"cdrv8plus": {
"gatkJarUri": "gs:\/\/all-of-us-workbench-test-genomics\/wgs\/gatk-package-after_master_merge-177-gbd0a99c-SNAPSHOT-local.jar",
"methodNamespace": "aouwgscohortextraction-test",
"methodName": "echo-prototyping",
"methodRepoVersion": 3,
Expand Down
1 change: 0 additions & 1 deletion api/config/config_preprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"extractionScatterTasksPerSample": 4
},
"cdrv8plus": {
"gatkJarUri": "gs:\/\/all-of-us-workbench-test-genomics\/wgs\/gatk-package-after_master_merge-177-gbd0a99c-SNAPSHOT-local.jar",
"methodNamespace": "aouwgscohortextraction-preprod",
"methodName": "GvsExtractCohortFromSampleNamesV8",
"methodRepoVersion": 1,
Expand Down
1 change: 0 additions & 1 deletion api/config/config_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"extractionScatterTasksPerSample": 4
},
"cdrv8plus": {
"gatkJarUri": "gs:\/\/all-of-us-workbench-test-genomics\/wgs\/gatk-package-after_master_merge-177-gbd0a99c-SNAPSHOT-local.jar",
"methodNamespace": "aouwgscohortextraction-test",
"methodName": "echo-prototyping",
"methodRepoVersion": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ public static class WgsCohortExtractionConfig {
public boolean enableJiraTicketingOnFailure;

public abstract static class VersionedConfig {
public String gatkJarUri;
// 'method' values refer to both the stored Method and the generated Method Configuration
public String methodNamespace;
public String methodName;
Expand All @@ -196,6 +195,7 @@ public abstract static class VersionedConfig {

// for extraction workflows compatible with CDR v7 and earlier
public static class LegacyWorkflowConfig extends VersionedConfig {
public String gatkJarUri;
// This should not exceed the value of GenomicExtractionService.MAX_EXTRACTION_SCATTER.
public int minExtractionScatterTasks;
public float extractionScatterTasksPerSample;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ private Map<String, String> getWorkflowInputs(
List<String> personIds,
String extractionFolder,
String outputDir,
boolean useLegacyWorkflow,
String gatkJarUri) {
boolean useLegacyWorkflow) {

String[] destinationParts = cohortExtractionConfig.extractionDestinationDataset.split("\\.");
if (destinationParts.length != 2) {
Expand Down Expand Up @@ -361,6 +360,9 @@ private Map<String, String> getWorkflowInputs(
// Added in https://github.com/broadinstitute/gatk/pull/7698
maybeInputs.put(EXTRACT_WORKFLOW_NAME + ".extraction_uuid", "\"" + extractionUuid + "\"");
maybeInputs.put(EXTRACT_WORKFLOW_NAME + ".cohort_table_prefix", "\"" + extractionUuid + "\"");
maybeInputs.put(
EXTRACT_WORKFLOW_NAME + ".gatk_override",
"\"" + cohortExtractionConfig.legacyVersions.gatkJarUri + "\"");
} else {
// Added Nov 2024
// replaces extraction_uuid and cohort_table_prefix which are now set to this value
Expand Down Expand Up @@ -399,7 +401,6 @@ private Map<String, String> getWorkflowInputs(
// etc
.put(EXTRACT_WORKFLOW_NAME + ".output_file_base_name", "\"interval\"")
.put(EXTRACT_WORKFLOW_NAME + ".output_gcs_dir", "\"" + outputDir + "\"")
.put(EXTRACT_WORKFLOW_NAME + ".gatk_override", "\"" + gatkJarUri + "\"")
.putAll(maybeInputs)
.build();
}
Expand Down Expand Up @@ -470,8 +471,7 @@ public GenomicExtractionJob submitGenomicExtractionJob(
personIds,
extractionFolder,
outputDir,
useLegacyWorkflow,
versionedConfig.gatkJarUri))
useLegacyWorkflow))
.methodConfigVersion(versionedConfig.methodRepoVersion)
.methodRepoMethod(createRepoMethodParameter(versionedConfig))
.name(extractionUuid)
Expand Down

0 comments on commit 266d106

Please sign in to comment.