public String chain;
public int alignmentMapping = -1;
public int atomIndex;
-
+ public float occupancy=0;
+ public float tfactor=0;
public boolean isSelected = false;
public Atom(String str)
this.x = (float) (new Float(str.substring(30, 38).trim()).floatValue());
this.y = (float) (new Float(str.substring(38, 46).trim()).floatValue());
this.z = (float) (new Float(str.substring(47, 55).trim()).floatValue());
-
+ occupancy = (float) (new Float(str.substring(54,60).trim()).floatValue());
+ tfactor = (float) (new Float(str.substring(60,66).trim()).floatValue());
}
public Atom(float x, float y, float z)
int count = 0;
StringBuffer seq = new StringBuffer();
Vector resFeatures = new Vector();
+ Vector resAnnotation = new Vector();
int i, iSize = atoms.size() - 1;
int resNumber = -1;
for (i = 0; i <= iSize; i++)
"", offset + count, offset + count,
MCview.PDBChain.PDBFILEFEATURE);
resFeatures.addElement(sf);
+ resAnnotation.addElement(new Annotation("","",'\0',tmpat.tfactor));
// Keep totting up the sequence
if (ResidueProperties.getAA3Hash().get(tmpat.resName) == null)
{
sequence.addSequenceFeature( (SequenceFeature) resFeatures.elementAt(i));
resFeatures.setElementAt(null, i);
}
+ Annotation[] annots = new Annotation[resAnnotation.size()];
+ float max=0;
+ for (i=0,iSize=annots.length; i<iSize; i++)
+ {
+ annots[i] = (Annotation) resAnnotation.elementAt(i);
+ if (annots[i].value>max)
+ max = annots[i].value;
+ resAnnotation.setElementAt(null, i);
+ }
+ AlignmentAnnotation tfactorann = new AlignmentAnnotation("PDB.CATempFactor","CA Temperature Factor",
+ annots, 0, max, AlignmentAnnotation.LINE_GRAPH);
+ tfactorann.setSequenceRef(sequence);
+ sequence.addAlignmentAnnotation(tfactorann);
}
public void setChargeColours()