Skip to content

Commit

Permalink
Merge pull request #515 from Sage-Bionetworks/GEN-564-update-site1-2-…
Browse files Browse the repository at this point in the history
…region

[GEN-564] Add support for more values for site1 site2 col in SV file
  • Loading branch information
rxu17 authored Apr 18, 2023
2 parents c96000b + 3afb070 commit f2f9ca3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions genie_registry/structural_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ def _validate(self, sv_df):
"Intron",
"5'UTR",
"3'UTR",
"5-UTR",
"3-UTR",
"5_Prime_UTR Intron",
"3_Prime_UTR Intron",
"Downstream",
"Upstream",
"Intergenic",
"IGR",
]
warn, error = process_functions.check_col_and_values(
df=sv_df,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sv.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def test_validation_no_errors(self):
"RNA_Support": ["Yes", "No", "Unknown"],
"SITE1_CHROMOSOME": [1, 22, 22],
"SITE2_CHROMOSOME": ["X", "2", "2"],
"SITE1_REGION": ["IGR", "Upstream", "5_Prime_UTR Intron"],
"SITE2_REGION": ["3-UTR", "3_Prime_UTR Intron", "Exon"],
}
)
error, warning = self.sv_cls._validate(sv_df)
Expand Down

0 comments on commit f2f9ca3

Please sign in to comment.