Skip to content
Snippets Groups Projects
Commit cf207870 authored by tcarver's avatar tcarver
Browse files

fix for adjusting coordinate offset in multiple sequence GFF

parent 58c1b5ea
No related branches found
No related tags found
No related merge requests found
...@@ -959,11 +959,11 @@ public class GFFDocumentEntry extends SimpleDocumentEntry ...@@ -959,11 +959,11 @@ public class GFFDocumentEntry extends SimpleDocumentEntry
if(contig_ranges != null) if(contig_ranges != null)
{ {
final FeatureVector gff_regions = getAllFeatures(); final FeatureVector gff_regions = getAllFeatures();
final Enumeration gff_features = gff_regions.elements(); final Enumeration<Feature> gff_features = gff_regions.elements();
while(gff_features.hasMoreElements()) while(gff_features.hasMoreElements())
{ {
final Feature f = (Feature) gff_features.nextElement(); final Feature f = gff_features.nextElement();
if( !(f instanceof GFFStreamFeature) ) if( !(f instanceof GFFStreamFeature) )
continue; continue;
...@@ -986,7 +986,9 @@ public class GFFDocumentEntry extends SimpleDocumentEntry ...@@ -986,7 +986,9 @@ public class GFFDocumentEntry extends SimpleDocumentEntry
r.getEnd()+new_range.getStart()-1)); r.getEnd()+new_range.getStart()-1));
} }
f.setLocation(new Location(new_ranges, f.getLocation().isComplement())); Location l = new Location(new_ranges, f.getLocation().isComplement());
f.setLocation(l);
((uk.ac.sanger.artemis.Feature)f.getUserData()).setLocation(l);
} }
catch(OutOfRangeException e) catch(OutOfRangeException e)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment