import java.util.List;
import java.util.Map;
-import MCview.PDBChain;
-
/**
* Routines for generating Chimera commands for Jalview/Chimera binding
*
*/
boolean isFromViewer = JalviewChimeraBinding.CHIMERA_FEATURE_GROUP
.equals(sf.getFeatureGroup());
- if (isFromViewer || !visibleFeatures.contains(type)
- || suppressFeature(type))
+ if (isFromViewer || !visibleFeatures.contains(type))
{
continue;
}
}
/**
- * Answers true if the feature type is one we don't wish to propagate to
- * Chimera - for now, RESNUM
- *
- * @param type
- * @return
- */
- static boolean suppressFeature(String type)
- {
- return PDBChain.RESNUM_FEATURE.equals(type);
- }
-
- /**
* Traverse the map of features/values/models/chains/positions to construct a
* list of 'setattr' commands (one per distinct feature type and value).
* <p>
62, -2.1f, null));
sq.addSequenceFeature(new SequenceFeature("kd", "hydrophobicity", 65,
65, 3.6f, null));
+ sq.addSequenceFeature(new SequenceFeature("RESNUM", "ALA: 2 4zhoA",
+ 53, 53, Float.NaN, null));
/*
* set all features visible except for chain
fr.setVisible("metal ion-binding site");
fr.setVisible("helix");
fr.setVisible("kd");
+ fr.setVisible("RESNUM");
/*
* 'perform' menu action to copy visible features to
assertTrue(reply.contains("resattr jv_metal_ion_binding_site"));
assertTrue(reply.contains("resattr jv_helix"));
assertTrue(reply.contains("resattr jv_kd"));
+ assertTrue(reply.contains("resattr jv_RESNUM"));
// feature is not on a mapped region - no attribute created
assertFalse(reply.contains("resattr jv_transit_peptide"));
// feature is not visible - no attribute created