@@ -1322,9 +1322,9 @@ private void WriteVariantResults()
13221322
13231323 foreach ( var variant in variants )
13241324 {
1325- if ( variantPWSM . IntersectsAndIdentifiesVariation ( variant ) . identifies == true && variant . Description . IsNotNullOrEmpty ( ) )
1325+ if ( variantPWSM . IntersectsAndIdentifiesVariation ( variant ) . identifies == true )
13261326 {
1327- if ( culture . CompareInfo . IndexOf ( variant . Description , "missense_variant" , CompareOptions . IgnoreCase ) >= 0 )
1327+ if ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "missense_variant" , CompareOptions . IgnoreCase ) >= 0 )
13281328 {
13291329 if ( variant . VariantCallFormatDataString . ReferenceAlleleString . Length == 1 && variant . VariantCallFormatDataString . AlternateAlleleString . Length == 1 )
13301330 {
@@ -1345,7 +1345,7 @@ private void WriteVariantResults()
13451345 MNVmissenseVariants . AddOrCreate ( variantPWSM . Protein , variant ) ;
13461346 }
13471347 }
1348- else if ( culture . CompareInfo . IndexOf ( variant . Description , "frameshift_variant" , CompareOptions . IgnoreCase ) >= 0 )
1348+ else if ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "frameshift_variant" , CompareOptions . IgnoreCase ) >= 0 )
13491349 {
13501350 if ( frameshiftIdentified == false )
13511351 {
@@ -1354,7 +1354,7 @@ private void WriteVariantResults()
13541354 }
13551355 frameshiftVariants . AddOrCreate ( variantPWSM . Protein , variant ) ;
13561356 }
1357- else if ( culture . CompareInfo . IndexOf ( variant . Description , "stop_gained" , CompareOptions . IgnoreCase ) >= 0 )
1357+ else if ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "stop_gained" , CompareOptions . IgnoreCase ) >= 0 )
13581358 {
13591359 if ( stopGainIdentified == false )
13601360 {
@@ -1363,7 +1363,7 @@ private void WriteVariantResults()
13631363 }
13641364 stopGainVariants . AddOrCreate ( variantPWSM . Protein , variant ) ;
13651365 }
1366- else if ( ( culture . CompareInfo . IndexOf ( variant . Description , "conservative_inframe_insertion" , CompareOptions . IgnoreCase ) >= 0 ) || ( culture . CompareInfo . IndexOf ( variant . Description , "disruptive_inframe_insertion" , CompareOptions . IgnoreCase ) >= 0 ) )
1366+ else if ( ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "conservative_inframe_insertion" , CompareOptions . IgnoreCase ) >= 0 ) || ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "disruptive_inframe_insertion" , CompareOptions . IgnoreCase ) >= 0 ) )
13671367 {
13681368 if ( insertionIdentified == false )
13691369 {
@@ -1372,7 +1372,7 @@ private void WriteVariantResults()
13721372 }
13731373 insertionVariants . AddOrCreate ( variantPWSM . Protein , variant ) ;
13741374 }
1375- else if ( ( culture . CompareInfo . IndexOf ( variant . Description , "conservative_inframe_deletion" , CompareOptions . IgnoreCase ) >= 0 ) || ( culture . CompareInfo . IndexOf ( variant . Description , "disruptive_inframe_deletion" , CompareOptions . IgnoreCase ) >= 0 ) )
1375+ else if ( ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "conservative_inframe_deletion" , CompareOptions . IgnoreCase ) >= 0 ) || ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "disruptive_inframe_deletion" , CompareOptions . IgnoreCase ) >= 0 ) )
13761376 {
13771377 if ( deletionIdentified == false )
13781378 {
@@ -1381,7 +1381,7 @@ private void WriteVariantResults()
13811381 }
13821382 deletionVariants . AddOrCreate ( variantPWSM . Protein , variant ) ;
13831383 }
1384- else if ( culture . CompareInfo . IndexOf ( variant . Description , "stop_loss" , CompareOptions . IgnoreCase ) >= 0 )
1384+ else if ( culture . CompareInfo . IndexOf ( variant . VariantCallFormatDataString . Description , "stop_loss" , CompareOptions . IgnoreCase ) >= 0 )
13851385 {
13861386 if ( stopLossIdentifed == false )
13871387 {
0 commit comments