Skip to content

Commit

Permalink
Fix: Migrate Human Variant Annotation to new environment. (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarge-google authored Nov 14, 2024
1 parent 29a7dc3 commit 4fcc0eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Google LLC
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,8 +38,9 @@
task_id="clinvar_vcf_grch37",
startup_timeout_seconds=600,
name="name_basics",
namespace="composer",
service_account_name="datasets",
namespace="composer-user-workloads",
service_account_name="default",
config_file="/home/airflow/composer_kube_config",
image_pull_policy="Always",
image="{{ var.json.human_variant_annotation.container_registry.run_csv_transform_kub }}",
env_vars={
Expand All @@ -50,7 +51,6 @@
"TARGET_GCS_FOLDER": "data/human_variant_annotation/clinVar-vcf_GRCh37/",
"PIPELINE": "clinvar",
},
resources={"limit_memory": "1G", "limit_cpu": "1"},
)

# Task to run a GoogleCloudStorageToGoogleCloudStorageOperator
Expand All @@ -69,8 +69,9 @@
task_id="clinvar_vcf_grch38",
startup_timeout_seconds=600,
name="name_basics",
namespace="composer",
service_account_name="datasets",
namespace="composer-user-workloads",
service_account_name="default",
config_file="/home/airflow/composer_kube_config",
image_pull_policy="Always",
image="{{ var.json.human_variant_annotation.container_registry.run_csv_transform_kub }}",
env_vars={
Expand All @@ -81,7 +82,6 @@
"TARGET_GCS_FOLDER": "data/human_variant_annotation/clinVar-vcf_GRCh38/",
"PIPELINE": "db_snp",
},
resources={"limit_memory": "1G", "limit_cpu": "1"},
)

# Task to run a GoogleCloudStorageToGoogleCloudStorageOperator
Expand Down
16 changes: 6 additions & 10 deletions datasets/human_variant_annotation/pipelines/clinvar/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ dag:
task_id: "clinvar_vcf_grch37"
startup_timeout_seconds: 600
name: "name_basics"
namespace: "composer"
service_account_name: "datasets"
namespace: "composer-user-workloads"
service_account_name: "default"
config_file: "/home/airflow/composer_kube_config"
image_pull_policy: "Always"
image: "{{ var.json.human_variant_annotation.container_registry.run_csv_transform_kub }}"
env_vars:
Expand All @@ -46,9 +47,6 @@ dag:
GCS_BUCKET: "{{ var.value.composer_bucket }}"
TARGET_GCS_FOLDER: "data/human_variant_annotation/clinVar-vcf_GRCh37/"
PIPELINE: "clinvar"
resources:
limit_memory: "1G"
limit_cpu: "1"

- operator: "GoogleCloudStorageToGoogleCloudStorageOperator"
description: "Task to run a GoogleCloudStorageToGoogleCloudStorageOperator"
Expand All @@ -67,8 +65,9 @@ dag:
task_id: "clinvar_vcf_grch38"
startup_timeout_seconds: 600
name: "name_basics"
namespace: "composer"
service_account_name: "datasets"
namespace: "composer-user-workloads"
service_account_name: "default"
config_file: "/home/airflow/composer_kube_config"
image_pull_policy: "Always"
image: "{{ var.json.human_variant_annotation.container_registry.run_csv_transform_kub }}"
env_vars:
Expand All @@ -78,9 +77,6 @@ dag:
GCS_BUCKET: "{{ var.value.composer_bucket }}"
TARGET_GCS_FOLDER: "data/human_variant_annotation/clinVar-vcf_GRCh38/"
PIPELINE: "db_snp"
resources:
limit_memory: "1G"
limit_cpu: "1"

- operator: "GoogleCloudStorageToGoogleCloudStorageOperator"
description: "Task to run a GoogleCloudStorageToGoogleCloudStorageOperator"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Google LLC
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 4fcc0eb

Please sign in to comment.