From 9fa2aa0c7a0d7eb82b57a222979ec3fa13b1bf5c Mon Sep 17 00:00:00 2001 From: edgrif <edgrif> Date: Wed, 18 Aug 2010 09:20:44 +0000 Subject: [PATCH] add code to display text to say an alignment is gapped but we have no gap data. --- src/zmapWindow/zmapWindow.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/zmapWindow/zmapWindow.c b/src/zmapWindow/zmapWindow.c index b9b86693b..808ddaa98 100755 --- a/src/zmapWindow/zmapWindow.c +++ b/src/zmapWindow/zmapWindow.c @@ -27,9 +27,9 @@ * * Exported functions: See ZMap/zmapWindow.h * HISTORY: - * Last edited: Aug 10 13:48 2010 (edgrif) + * Last edited: Aug 17 08:37 2010 (edgrif) * Created: Thu Jul 24 14:36:27 2003 (edgrif) - * CVS info: $Id: zmapWindow.c,v 1.335 2010-08-10 13:53:47 edgrif Exp $ + * CVS info: $Id: zmapWindow.c,v 1.336 2010-08-18 09:20:44 edgrif Exp $ *------------------------------------------------------------------- */ @@ -1500,13 +1500,21 @@ void zmapWindowUpdateInfoPanel(ZMapWindow window, } if (feature_arg->feature.homol.align) - select.feature_desc.sub_feature_none_txt = g_strdup("<GAPS NOT SHOWN>") ; + { + select.feature_desc.sub_feature_none_txt = g_strdup("GAPPED - NOT DISPLAYED") ; + } else - select.feature_desc.sub_feature_none_txt = g_strdup("<UNGAPPED ALIGNMENT>") ; + { + if (zMapFeatureAlignmentIsGapped(feature_arg)) + select.feature_desc.sub_feature_none_txt = g_strdup("GAPPED - NO DATA") ; + else + select.feature_desc.sub_feature_none_txt = g_strdup("UNGAPPED") ; + + } } else if (feature->type == ZMAPSTYLE_MODE_TRANSCRIPT) { - select.feature_desc.sub_feature_none_txt = g_strdup("<NO INTRONS>") ; + select.feature_desc.sub_feature_none_txt = g_strdup("NO INTRONS") ; } -- GitLab