Skip to content

Commit

Permalink
ENH: added clinical_index (#35)
Browse files Browse the repository at this point in the history
Originally, this was populated directly from Parquet AWS content in idc-index,
however, it contains columns that are of no direct use that may confuse the user.
Further, accessing this index from AWS introduced dependency on the AWS Parquet
export being up to date. Since this index is quite small, it is best to replace it with a query.
  • Loading branch information
fedorov committed Sep 11, 2024
1 parent 5f45f1b commit 91f6055
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions assets/clinical_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SELECT
collection_id,
table_name,
SPLIT(table_name,'.')[SAFE_OFFSET(2)] AS short_table_name,
`column`,
column_label,
FROM
`bigquery-public-data.idc_v19_clinical.column_metadata`
ORDER BY
collection_id, table_name
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "idc-index-data"
version = "19.0.0"
version = "19.0.1"
authors = [
{ name = "Andrey Fedorov", email = "[email protected]" },
{ name = "Vamsi Thiriveedhi", email = "[email protected]" },
Expand Down

0 comments on commit 91f6055

Please sign in to comment.