From c4d6adefdaee83b6faf7e822db5d3e87911c0d46 Mon Sep 17 00:00:00 2001 From: edgrif <edgrif> Date: Wed, 2 Dec 2009 16:30:04 +0000 Subject: [PATCH] fix revcomp display of assembly path. --- src/zmapFeature/zmapFeatureContext.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/zmapFeature/zmapFeatureContext.c b/src/zmapFeature/zmapFeatureContext.c index 83814ea81..f09224e79 100755 --- a/src/zmapFeature/zmapFeatureContext.c +++ b/src/zmapFeature/zmapFeatureContext.c @@ -27,9 +27,9 @@ * * Exported functions: See ZMap/zmapFeature.h * HISTORY: - * Last edited: Nov 26 11:54 2009 (edgrif) + * Last edited: Nov 30 16:23 2009 (edgrif) * Created: Tue Jan 17 16:13:12 2006 (edgrif) - * CVS info: $Id: zmapFeatureContext.c,v 1.48 2009-11-27 13:14:47 edgrif Exp $ + * CVS info: $Id: zmapFeatureContext.c,v 1.49 2009-12-02 16:30:04 edgrif Exp $ *------------------------------------------------------------------- */ @@ -943,6 +943,7 @@ static void revCompFeature(ZMapFeature feature, int end_coord) && feature->feature.homol.align) { int i ; + for (i = 0; i < feature->feature.homol.align->len; i++) { ZMapAlignBlock align ; @@ -954,7 +955,11 @@ static void revCompFeature(ZMapFeature feature, int end_coord) zMapFeatureSortGaps(feature->feature.homol.align) ; } - + else if (feature->type == ZMAPSTYLE_MODE_ASSEMBLY_PATH) + { + if (feature->feature.assembly_path.path) + revcompSpan(feature->feature.assembly_path.path, end_coord) ; + } return ; } -- GitLab