Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerkm committed Jun 7, 2024
1 parent 345e4be commit 0ae1a01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion deeprvat/deeprvat/base_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ training_data:
num_workers: 8

#Association dataset settings
assocation_testing_data:
association_testing_data:
dataset_config:
min_common_af:
MAF: 0.01
Expand Down
28 changes: 14 additions & 14 deletions deeprvat/deeprvat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,71 +166,71 @@ def create_main_config(
full_config["training_data"]["dataset_config"]["y_transformation"] = input_config[
"y_transformation"
]
full_config["assocation_testing_data"]["dataset_config"]["y_transformation"] = (
full_config["association_testing_data"]["dataset_config"]["y_transformation"] = (
input_config["y_transformation"]
)
# genotypes.h5
full_config["training_data"]["gt_file"] = input_config["gt_filename"]
full_config["assocation_testing_data"]["gt_file"] = input_config["gt_filename"]
full_config["association_testing_data"]["gt_file"] = input_config["gt_filename"]
# variants.parquet
full_config["training_data"]["variant_file"] = input_config["variant_filename"]
full_config["assocation_testing_data"]["variant_file"] = input_config[
full_config["association_testing_data"]["variant_file"] = input_config[
"variant_filename"
]
# phenotypes.parquet
full_config["training_data"]["dataset_config"]["phenotype_file"] = input_config[
"phenotype_filename"
]
full_config["assocation_testing_data"]["dataset_config"]["phenotype_file"] = (
full_config["association_testing_data"]["dataset_config"]["phenotype_file"] = (
input_config["phenotype_filename"]
)
# annotations.parquet
full_config["training_data"]["dataset_config"]["annotation_file"] = input_config[
"annotation_filename"
]
full_config["assocation_testing_data"]["dataset_config"]["annotation_file"] = (
full_config["association_testing_data"]["dataset_config"]["annotation_file"] = (
input_config["annotation_filename"]
)
# protein_coding_genes.parquet
full_config["assocation_testing_data"]["dataset_config"]["gene_file"] = (
full_config["association_testing_data"]["dataset_config"]["gene_file"] = (
input_config["gene_filename"]
)
full_config["assocation_testing_data"]["dataset_config"]["rare_embedding"][
full_config["association_testing_data"]["dataset_config"]["rare_embedding"][
"config"
]["gene_file"] = input_config["gene_filename"]
# rare_variant_annotations
full_config["training_data"]["dataset_config"]["rare_embedding"]["config"][
"annotations"
] = input_config["rare_variant_annotations"]
full_config["assocation_testing_data"]["dataset_config"]["rare_embedding"][
full_config["association_testing_data"]["dataset_config"]["rare_embedding"][
"config"
]["annotations"] = input_config["rare_variant_annotations"]
# variant annotations
anno_list = deepcopy(input_config["rare_variant_annotations"])
for i, k in enumerate(input_config["training_data_thresholds"].keys()):
anno_list.insert(i + 1, k)
full_config["training_data"]["dataset_config"]["annotations"] = anno_list
full_config["assocation_testing_data"]["dataset_config"]["annotations"] = anno_list
full_config["association_testing_data"]["dataset_config"]["annotations"] = anno_list
# covariates
full_config["training_data"]["dataset_config"]["x_phenotypes"] = input_config[
"covariates"
]
full_config["assocation_testing_data"]["dataset_config"]["x_phenotypes"] = (
full_config["association_testing_data"]["dataset_config"]["x_phenotypes"] = (
input_config["covariates"]
)
# Thresholds
full_config["training_data"]["dataset_config"]["rare_embedding"]["config"][
"thresholds"
] = {}
full_config["assocation_testing_data"]["dataset_config"]["rare_embedding"][
full_config["association_testing_data"]["dataset_config"]["rare_embedding"][
"config"
]["thresholds"] = {}
for k, v in input_config["training_data_thresholds"].items():
full_config["training_data"]["dataset_config"]["rare_embedding"]["config"][
"thresholds"
][k] = f"{k} {v}"
for k, v in input_config["association_testing_data_thresholds"].items():
full_config["assocation_testing_data"]["dataset_config"]["rare_embedding"][
full_config["association_testing_data"]["dataset_config"]["rare_embedding"][
"config"
]["thresholds"][k] = f"{k} {v}"
# Results evaluation parameters; alpha parameter for significance threshold
Expand All @@ -243,8 +243,8 @@ def create_main_config(
# DeepRVAT model
full_config["n_repeats"] = input_config["n_repeats"]

full_config["data"] = full_config["assocation_testing_data"]
del full_config["assocation_testing_data"]
full_config["data"] = full_config["association_testing_data"]
del full_config["association_testing_data"]

if no_pretrain:
# PL trainer
Expand Down

0 comments on commit 0ae1a01

Please sign in to comment.