Skip to content

Commit fb81dc6

Browse files
authored
Merge pull request #63 from cBioPortal/validate_germline
Validation Update: Add a warning for GERMLINE variants in MAF and SV files
2 parents 2efc058 + 467c80d commit fb81dc6

File tree

3 files changed

+41
-18
lines changed

3 files changed

+41
-18
lines changed

scripts/importer/validateData.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,9 @@ def checkMutationStatus(self, value):
23972397
if value.lower() not in ['none', 'germline', 'somatic', 'loh', 'post-transcriptional modification', 'unknown', 'wildtype'] and value != '':
23982398
self.logger.warning('Mutation_Status value is not in MAF format',
23992399
extra={'line_number': self.line_number, 'cause': value})
2400+
if value.lower() == 'germline':
2401+
self.logger.warning('GERMLINE variant identified from the Mutation_Status value. If this variant is not meant for public release, please remove it.',
2402+
extra={'line_number': self.line_number, 'cause': value})
24002403
return True
24012404

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

0 commit comments

Comments
 (0)