Skip to content

Commit

Permalink
fixed entry types map
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 11, 2024
1 parent 4194728 commit ca6cbf6
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions beacon/source/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_entry_types_map(self):
if analyses["endpoints"]["genomicVariant"]==True:
analyses_endpoints["genomicVariant"]=analysis_genomicVariant
map_analysis["endpoints"]={}
map_analysis["endpoints"]["genomicVariant"]=analyses_endpoints
map_analysis["endpoints"]=analyses_endpoints
map_entry_types["endpointSets"]["analysis"]=map_analysis
if biosamples["granularity"]["boolean"]==True or biosamples["granularity"]["count"]==True or biosamples["granularity"]["record"]==True:# pragma: no cover
biosamples_endpoints={}
Expand All @@ -50,21 +50,21 @@ def get_entry_types_map(self):
map_biosample["endpoints"]["genomicVariant"]=biosamples_endpoints
except Exception:
map_biosample["endpoints"]={}
map_biosample["endpoints"]["genomicVariant"]=biosamples_endpoints
if biosamples["endpoints"]["analysis"]==True:
map_biosample["endpoints"]=biosamples_endpoints
if biosamples["endpoints"]==True:
biosamples_endpoints["analysis"]=biosample_analysis
try:
map_biosample["endpoints"]["analysis"]=biosamples_endpoints
map_biosample["endpoints"]=biosamples_endpoints
except Exception:
map_biosample["endpoints"]={}
map_biosample["endpoints"]["analysis"]=biosamples_endpoints
map_biosample["endpoints"]=biosamples_endpoints
if biosamples["endpoints"]["run"]==True:
biosamples_endpoints["run"]=biosample_run
try:
map_biosample["endpoints"]["run"]=biosamples_endpoints
map_biosample["endpoints"]=biosamples_endpoints
except Exception:
map_biosample["endpoints"]={}
map_biosample["endpoints"]["run"]=biosamples_endpoints
map_biosample["endpoints"]=biosamples_endpoints
map_entry_types["endpointSets"]["biosample"]=map_biosample
if cohorts["granularity"]["boolean"]==True or cohorts["granularity"]["count"]==True or cohorts["granularity"]["record"]==True:# pragma: no cover
cohorts_endpoints={}
Expand All @@ -73,24 +73,24 @@ def get_entry_types_map(self):
if cohorts["endpoints"]["individual"]==True:
cohorts_endpoints["individual"]=cohort_individual
try:
map_cohort["endpoints"]["individual"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
except Exception:
map_cohort["endpoints"]={}
map_cohort["endpoints"]["individual"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
if cohorts["endpoints"]["analysis"]==True:
cohorts_endpoints["analysis"]=cohort_analysis
try:
map_cohort["endpoints"]["analysis"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
except Exception:
map_cohort["endpoints"]={}
map_cohort["endpoints"]["analysis"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
if cohorts["endpoints"]["run"]==True:
cohorts_endpoints["run"]=cohort_run
try:
map_cohort["endpoints"]["run"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
except Exception:
map_cohort["endpoints"]={}
map_cohort["endpoints"]["run"]=cohorts_endpoints
map_cohort["endpoints"]=cohorts_endpoints
map_entry_types["endpointSets"]["cohort"]=map_cohort
if datasets["granularity"]["boolean"]==True or datasets["granularity"]["count"]==True or datasets["granularity"]["record"]==True:
datasets_endpoints={}
Expand All @@ -99,38 +99,38 @@ def get_entry_types_map(self):
if datasets["endpoints"]["individual"]==True:# pragma: no cover
datasets_endpoints["individual"]=dataset_individual
try:
map_dataset["endpoints"]["individual"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
except Exception:
map_dataset["endpoints"]={}
map_dataset["endpoints"]["individual"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
if datasets["endpoints"]["analysis"]==True:# pragma: no cover
datasets_endpoints["analysis"]=dataset_analysis
try:
map_dataset["endpoints"]["analysis"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
except Exception:
map_dataset["endpoints"]={}
map_dataset["endpoints"]["analysis"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
if datasets["endpoints"]["run"]==True:# pragma: no cover
datasets_endpoints["run"]=dataset_run
try:
map_dataset["endpoints"]["run"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
except Exception:
map_dataset["endpoints"]={}
map_dataset["endpoints"]["run"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
if datasets["endpoints"]["biosample"]==True:# pragma: no cover
datasets_endpoints["biosample"]=dataset_biosample
try:
map_dataset["endpoints"]["biosample"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
except Exception:
map_dataset["endpoints"]={}
map_dataset["endpoints"]["biosample"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
if datasets["endpoints"]["genomicVariant"]==True:# pragma: no cover
datasets_endpoints["genomicVariant"]=dataset_genomicVariant
try:
map_dataset["endpoints"]["genomicVariant"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
except Exception:
map_dataset["endpoints"]={}
map_dataset["endpoints"]["genomicVariant"]=datasets_endpoints
map_dataset["endpoints"]=datasets_endpoints
map_entry_types["endpointSets"]["dataset"]=map_dataset
if g_variants["granularity"]["boolean"]==True or g_variants["granularity"]["count"]==True or g_variants["granularity"]["record"]==True:
g_variants_endpoints={}
Expand All @@ -139,31 +139,31 @@ def get_entry_types_map(self):
if g_variants["endpoints"]["individual"]==True:# pragma: no cover
g_variants_endpoints["individual"]=genomicVariant_individual
try:
map_genomicVariant["endpoints"]["individual"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
except Exception:
map_genomicVariant["endpoints"]={}
map_genomicVariant["endpoints"]["individual"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
if g_variants["endpoints"]["analysis"]==True:# pragma: no cover
g_variants_endpoints["analysis"]=genomicVariant_analysis
try:
map_genomicVariant["endpoints"]["analysis"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
except Exception:
map_genomicVariant["endpoints"]={}
map_genomicVariant["endpoints"]["analysis"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
if g_variants["endpoints"]["run"]==True:# pragma: no cover
g_variants_endpoints["run"]=genomicVariant_run
try:
map_genomicVariant["endpoints"]["run"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
except Exception:
map_genomicVariant["endpoints"]={}
map_genomicVariant["endpoints"]["run"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
if g_variants["endpoints"]["biosample"]==True:# pragma: no cover
g_variants_endpoints["biosample"]=genomicVariant_biosample
try:
map_genomicVariant["endpoints"]["biosample"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
except Exception:
map_genomicVariant["endpoints"]={}
map_genomicVariant["endpoints"]["biosample"]=g_variants_endpoints
map_genomicVariant["endpoints"]=g_variants_endpoints
map_entry_types["endpointSets"]["genomicVariant"]=map_genomicVariant
if individuals["granularity"]["boolean"]==True or individuals["granularity"]["count"]==True or individuals["granularity"]["record"]==True:# pragma: no cover
individuals_endpoints={}
Expand All @@ -172,31 +172,31 @@ def get_entry_types_map(self):
if individuals["endpoints"]["genomicVariant"]==True:
individuals_endpoints["genomicVariant"]=individual_genomicVariant
try:
map_individual["endpoints"]["genomicVariant"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
except Exception:
map_individual["endpoints"]={}
map_individual["endpoints"]["genomicVariant"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
if individuals["endpoints"]["analysis"]==True:
individuals_endpoints["analysis"]=individual_analysis
try:
map_individual["endpoints"]["analysis"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
except Exception:
map_individual["endpoints"]={}
map_individual["endpoints"]["analysis"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
if individuals["endpoints"]["run"]==True:
individuals_endpoints["run"]=individual_run
try:
map_individual["endpoints"]["run"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
except Exception:
map_individual["endpoints"]={}
map_individual["endpoints"]["run"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
if individuals["endpoints"]["biosample"]==True:
individuals_endpoints["biosample"]=individual_biosample
try:
map_individual["endpoints"]["biosample"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
except Exception:
map_individual["endpoints"]={}
map_individual["endpoints"]["biosample"]=individuals_endpoints
map_individual["endpoints"]=individuals_endpoints
map_entry_types["endpointSets"]["individual"]=map_individual
if runs["granularity"]["boolean"]==True or runs["granularity"]["count"]==True or runs["granularity"]["record"]==True:# pragma: no cover
runs_endpoints={}
Expand All @@ -205,17 +205,17 @@ def get_entry_types_map(self):
if runs["endpoints"]["genomicVariant"]==True:
runs_endpoints["genomicVariant"]=run_genomicVariant
try:
map_run["endpoints"]["genomicVariant"]=runs_endpoints
map_run["endpoints"]=runs_endpoints
except Exception:
map_run["endpoints"]={}
map_run["endpoints"]["genomicVariant"]=runs_endpoints
map_run["endpoints"]=runs_endpoints
if runs["endpoints"]["analysis"]==True:
runs_endpoints["analysis"]=run_analysis
try:
map_run["endpoints"]["analysis"]=runs_endpoints
map_run["endpoints"]=runs_endpoints
except Exception:
map_run["endpoints"]={}
map_run["endpoints"]["analysis"]=runs_endpoints
map_run["endpoints"]=runs_endpoints
map_entry_types["endpointSets"]["run"]=map_run
return map_entry_types
except Exception as e:# pragma: no cover
Expand Down

0 comments on commit ca6cbf6

Please sign in to comment.