public class PDBChain
{
+ public static final String RESNUM_FEATURE = "RESNUM";
+
/**
* SequenceFeature group for PDB File features added to sequences
*/
Residue tmpres = residues.lastElement();
Atom tmpat = tmpres.atoms.get(0);
// Make A new SequenceFeature for the current residue numbering
- SequenceFeature sf = new SequenceFeature("RESNUM", tmpat.resName
+ SequenceFeature sf = new SequenceFeature(RESNUM_FEATURE, tmpat.resName
+ ":" + tmpat.resNumIns + " " + pdbid + id, "", offset
+ count, offset + count, pdbid);
resFeatures.addElement(sf);
import java.awt.Color;
+import MCview.PDBChain;
+
public class PDBFeatureSettings extends FeatureSettingsAdapter
{
// TODO find one central place to define feature names
private static final String FEATURE_INSERTION = "INSERTION";
- private static final String FEATURE_RES_NUM = "RESNUM";
+ private static final String FEATURE_RES_NUM = PDBChain.RESNUM_FEATURE;
@Override
public boolean isFeatureDisplayed(String type)