+ // update any feature groups
+ List<SequenceFeature> allsf = pdbcs.getFeatures()
+ .getAllFeatures();
+ List<SequenceFeature> newsf = new ArrayList<SequenceFeature>();
+ if (allsf != null && allsf.size() > 0)
+ {
+ for (SequenceFeature f : allsf)
+ {
+ if (file.equals(f.getFeatureGroup()))
+ {
+ f = new SequenceFeature(f, f.type, f.begin, f.end, id,
+ f.score);
+ }
+ newsf.add(f);
+ }
+ pdbcs.setSequenceFeatures(newsf);
+ }