Skip to content

Commit 4040c37

Browse files
bug fix
1 parent 7404f97 commit 4040c37

File tree

5 files changed

+33
-3075
lines changed

5 files changed

+33
-3075
lines changed

Diff for: VariantValidator/modules/mappers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -792,15 +792,15 @@ def transcripts_to_gene(variant, validator, select_transcripts_dict_plus_version
792792
updated_transcript_variant = hgvs_updated
793793

794794
if validator.alt_aln_method == "genebuild":
795-
variant.warnings.append('A more recent version of the selected reference sequence ' + hgvs_coding.ac +
795+
variant.warnings.append('TranscriptVersionWarning: A more recent version of the selected reference sequence ' + hgvs_coding.ac +
796796
' is available for genome build ' + variant.primary_assembly +
797797
' (' + updated_transcript_variant.ac + ')' + ': ' +
798798
str(updated_transcript_variant) + ' MUST be fully validated prior to '
799799
'use in reports: '
800-
'select_variants=' + fn.valstr(updated_transcript_variant) +
800+
'select_variants=' + fn.valstr(updated_transcript_variant) +
801801
', genome_build=' + variant.primary_assembly)
802802
else:
803-
variant.warnings.append('A more recent version of the selected reference sequence ' + hgvs_coding.ac +
803+
variant.warnings.append('TranscriptVersionWarning: A more recent version of the selected reference sequence ' + hgvs_coding.ac +
804804
' is available for genome build ' + variant.primary_assembly +
805805
' (' + updated_transcript_variant.ac + ')' + ': ' +
806806
str(updated_transcript_variant) + ' MUST be fully validated prior to '

Diff for: VariantValidator/modules/vvMixinCore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def validate(self,
16101610
# Do not warn a transcript update is available for the most recent transcript
16111611
elif term in vt and "A more recent version of the selected reference sequence" in vt:
16121612
vt = vt.split(": ")
1613-
vt = vt[0]
1613+
vt = ": ".join([vt[0], vt[1]])
16141614
variant_warnings.append(vt)
16151615

16161616
# Remove spurious updates away form the correct output

0 commit comments

Comments
 (0)