Skip to content

Commit 3c8ce58

Browse files
project-defiantSzymon Szyszkowski
andauthored
feat(config): 24.06 data release fixes (#639)
* feat(config): typos fix * fix(config): moved ld_index dataset to static assets --------- Co-authored-by: Szymon Szyszkowski <ss60@mib117351s.internal.sanger.ac.uk>
1 parent 976ee30 commit 3c8ce58

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

config/datasets/ot_gcp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ gwas_catalog_study_locus_folder: ${datasets.gwas_catalog_dataset}/study_locus_da
3131
gwas_catalog_credible_set_folder: ${datasets.gwas_catalog_dataset}/credible_set_datasets
3232

3333
# GnomAD
34-
gnomad_public_bucket: gs://gcp-public-data--gnomad/release
34+
gnomad_public_bucket: gs://gcp-public-data--gnomad/release/
3535
# LD generation
3636
# Templates require placeholders {POP} to expand template to match multiple populationwise paths
3737
ld_matrix_template: ${datasets.gnomad_public_bucket}/2.1.1/ld/gnomad.genomes.r2.1.1.{POP}.common.adj.ld.bm
@@ -61,7 +61,7 @@ summary_statistics: ${datasets.outputs}/summary_statistics
6161
study_locus_overlap: ${datasets.outputs}/study_locus_overlap
6262
susie_finemapping: ${datasets.outputs}/finngen_susie_finemapping
6363

64-
ld_index: ${datasets.outputs}/ld_index
64+
ld_index: ${datasets.static_assets}/ld_index
6565
catalog_study_index: ${datasets.study_index}/catalog
6666
catalog_study_locus: ${datasets.study_locus}/catalog_study_locus
6767

config/step/ot_ld_based_clumping.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defaults:
22
- ld_based_clumping
33

4-
ld_index_path: ${datasets.ld_index}
4+
ld_index_path: ${datasets.ld_index}/2.1.1
55
study_locus_input_path: ???
66
study_index_path: ???
77
clumped_study_locus_output_path: ???

config/step/ot_ld_index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defaults:
44
ld_index_out: ${datasets.ld_index}
55
ld_matrix_template: ${datasets.ld_matrix_template}
66
ld_index_raw_template: ${datasets.ld_index_raw_template}
7-
grch37_to_grch38_chain_path: ${datasets.chain_37_38.}
7+
grch37_to_grch38_chain_path: ${datasets.chain_37_38}
88
liftover_ht_path: ${datasets.liftover_ht_path}
99
ld_populations:
1010
- afr # African-American

src/gentropy/ld_index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __init__(
2929
ld_index_raw_template: str = LDIndexConfig().ld_index_raw_template,
3030
ld_populations: list[LD_Population | str] = LDIndexConfig().ld_populations,
3131
liftover_ht_path: str = LDIndexConfig().liftover_ht_path,
32+
grch37_to_grch38_chain_path: str = LDIndexConfig().grch37_to_grch38_chain_path,
3233
use_version_from_input: bool = LDIndexConfig().use_version_from_input,
3334
) -> None:
3435
"""Run step.
@@ -41,6 +42,7 @@ def __init__(
4142
ld_index_raw_template (str): Input path to the raw gnomAD LD indices file with placeholder for population string
4243
ld_populations (list[LD_Population | str]): Population names derived from the ld file paths
4344
liftover_ht_path (str): Path to the liftover ht file
45+
grch37_to_grch38_chain_path (str): Path to the chain file used to lift over the coordinates.
4446
use_version_from_input (bool): Append version derived from input ld_matrix_template to the output ld_index_out. Defaults to False.
4547
4648
In case use_version_from_input is set to True,
@@ -57,6 +59,7 @@ def __init__(
5759
GnomADLDMatrix(
5860
ld_matrix_template=ld_matrix_template,
5961
ld_index_raw_template=ld_index_raw_template,
62+
grch37_to_grch38_chain_path=grch37_to_grch38_chain_path,
6063
ld_populations=ld_populations,
6164
liftover_ht_path=liftover_ht_path,
6265
)

0 commit comments

Comments
 (0)