Skip to content

Commit

Permalink
revert to use check_col_and_values
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 committed Nov 14, 2024
1 parent 5e04baf commit 83c9181
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions genie_registry/assay.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _validate(self, assay_info_df):

read_group_dict = process_functions.get_gdc_data_dictionary("read_group")
read_group_headers = read_group_dict["properties"]
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"is_paired_end",
[True, False],
Expand All @@ -188,7 +188,7 @@ def _validate(self, assay_info_df):
warning += warn
total_error += error

warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"library_selection",
read_group_headers["library_selection"]["enum"],
Expand All @@ -198,7 +198,7 @@ def _validate(self, assay_info_df):
warning += warn
total_error += error

warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"library_strategy",
["Targeted Sequencing", "WXS"],
Expand All @@ -208,7 +208,7 @@ def _validate(self, assay_info_df):
warning += warn
total_error += error

warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"platform",
read_group_headers["platform"]["enum"],
Expand All @@ -220,7 +220,7 @@ def _validate(self, assay_info_df):

instrument_model = read_group_headers["instrument_model"]["enum"]
instrument_model.extend(["Illumina NovaSeq 6000", None])
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"instrument_model",
instrument_model,
Expand Down Expand Up @@ -256,7 +256,7 @@ def _validate(self, assay_info_df):
"3'Flank",
None,
]
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"variant_classifications",
variant_classes,
Expand Down Expand Up @@ -319,7 +319,7 @@ def _validate(self, assay_info_df):
"gene_padding is by default 10 if not specified.\n"
)

warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"calling_strategy",
["tumor_only", "tumor_normal", "plasma_normal"],
Expand Down Expand Up @@ -354,7 +354,7 @@ def _validate(self, assay_info_df):
"intragenic_cna",
"structural_variants",
]
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"alteration_types",
alteration_types,
Expand All @@ -366,7 +366,7 @@ def _validate(self, assay_info_df):
total_error += error

preservation_technique = ["FFPE", "fresh_frozen", "NA"]
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"preservation_technique",
preservation_technique,
Expand All @@ -378,7 +378,7 @@ def _validate(self, assay_info_df):
total_error += error

coverage = ["hotspot_regions", "coding_exons", "introns", "promoters"]
warn, error = process_functions.check_column_and_values_row_specific(
warn, error = process_functions.check_col_and_values(
assay_info_df,
"coverage",
coverage,
Expand Down

0 comments on commit 83c9181

Please sign in to comment.