Skip to content

Commit

Permalink
Feat: Onboard MERFISH Mouse Brain Receptor Map dataset (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkodukula committed Aug 23, 2022
1 parent cd007bb commit 4333fca
Show file tree
Hide file tree
Showing 13 changed files with 4,980 additions and 0 deletions.
34 changes: 34 additions & 0 deletions datasets/merfish/infra/cell_by_gene_pipeline.tf
@@ -0,0 +1,34 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


resource "google_bigquery_table" "merfish_cell_by_gene" {
project = var.project_id
dataset_id = "merfish"
table_id = "cell_by_gene"
description = "The Merfish Mouse Brain Dataset"
depends_on = [
google_bigquery_dataset.merfish
]
}

output "bigquery_table-merfish_cell_by_gene-table_id" {
value = google_bigquery_table.merfish_cell_by_gene.table_id
}

output "bigquery_table-merfish_cell_by_gene-id" {
value = google_bigquery_table.merfish_cell_by_gene.id
}
34 changes: 34 additions & 0 deletions datasets/merfish/infra/cell_metadata_pipeline.tf
@@ -0,0 +1,34 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


resource "google_bigquery_table" "merfish_cell_metadata" {
project = var.project_id
dataset_id = "merfish"
table_id = "cell_metadata"
description = "The Merfish Mouse Brain Dataset"
depends_on = [
google_bigquery_dataset.merfish
]
}

output "bigquery_table-merfish_cell_metadata-table_id" {
value = google_bigquery_table.merfish_cell_metadata.table_id
}

output "bigquery_table-merfish_cell_metadata-id" {
value = google_bigquery_table.merfish_cell_metadata.id
}
34 changes: 34 additions & 0 deletions datasets/merfish/infra/detected_transcripts_pipeline.tf
@@ -0,0 +1,34 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


resource "google_bigquery_table" "merfish_detected_transcripts" {
project = var.project_id
dataset_id = "merfish"
table_id = "detected_transcripts"
description = "The Merfish Mouse Brain Dataset"
depends_on = [
google_bigquery_dataset.merfish
]
}

output "bigquery_table-merfish_detected_transcripts-table_id" {
value = google_bigquery_table.merfish_detected_transcripts.table_id
}

output "bigquery_table-merfish_detected_transcripts-id" {
value = google_bigquery_table.merfish_detected_transcripts.id
}
25 changes: 25 additions & 0 deletions datasets/merfish/infra/merfish_dataset.tf
@@ -0,0 +1,25 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


resource "google_bigquery_dataset" "merfish" {
dataset_id = "merfish"
project = var.project_id
}

output "bigquery_dataset-merfish-dataset_id" {
value = google_bigquery_dataset.merfish.dataset_id
}
28 changes: 28 additions & 0 deletions datasets/merfish/infra/provider.tf
@@ -0,0 +1,28 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


provider "google" {
project = var.project_id
impersonate_service_account = var.impersonating_acct
region = var.region
}

data "google_client_openid_userinfo" "me" {}

output "impersonating-account" {
value = data.google_client_openid_userinfo.me.email
}
26 changes: 26 additions & 0 deletions datasets/merfish/infra/variables.tf
@@ -0,0 +1,26 @@
/**
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


variable "project_id" {}
variable "bucket_name_prefix" {}
variable "impersonating_acct" {}
variable "region" {}
variable "env" {}
variable "iam_policies" {
default = {}
}

0 comments on commit 4333fca

Please sign in to comment.