Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Update: Add a warning for GERMLINE variants in MAF and SV files #63

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/importer/validateData.py
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,9 @@ def checkMutationStatus(self, value):
if value.lower() not in ['none', 'germline', 'somatic', 'loh', 'post-transcriptional modification', 'unknown', 'wildtype'] and value != '':
self.logger.warning('Mutation_Status value is not in MAF format',
extra={'line_number': self.line_number, 'cause': value})
if value.lower() == 'germline':
self.logger.warning('GERMLINE variant identified from the Mutation_Status value. If this variant is not meant for public release, please remove it.',
extra={'line_number': self.line_number, 'cause': value})
return True

class ClinicalValidator(Validator):
Expand Down Expand Up @@ -3216,6 +3219,10 @@ def checkSVstatus(sv_status):
if sv_status is None:
self.logger.warning('No value in SV_Status, assuming the variant is SOMATIC',
extra={'line_number': self.line_number})
elif sv_status.lower() == 'germline':
self.logger.warning('GERMLINE variant identified from the SV_Status value. If this variant is not meant for public release, please remove it.',
extra={'line_number': self.line_number,
'cause': sv_status})
else:
if not sv_status.lower() in ['somatic', 'germline']:
self.logger.error('Invalid SV_Status value: possible values are [SOMATIC, GERMLINE]',
Expand Down
Loading
Loading