throws IOException
{
super(inFile, type);
- // addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
}
public JmolParser(boolean addAlignmentAnnotations, boolean predictSecStr,
boolean externalSecStr, FileParse fp) throws IOException
{
super(fp);
- // addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
}
public JmolParser()
}
lastID = tmpatom.resNumIns.trim();
}
+ xferSettings();
+
makeResidueList();
makeCaBondList();
curAtom.occupancy = ms.occupancies != null ? ms.occupancies[atom
.getIndex()] : Float.valueOf(atom.getOccupancy100());
curAtom.resNumIns = "" + curAtom.resNumber + curAtom.insCode;
- // curAtom.tfactor = atom.group.;
+ curAtom.tfactor = atom.getBfactor100() / 100f;
curAtom.type = 0;
significantAtoms.add(curAtom);
}
this.predictSecondaryStructure = predictSecondaryStructure;
}
+ public boolean isVisibleChainAnnotation()
+ {
+ return visibleChainAnnotation;
+ }
+
+ public void setVisibleChainAnnotation(boolean visibleChainAnnotation)
+ {
+ this.visibleChainAnnotation = visibleChainAnnotation;
+ }
+
}
this.predictSecondaryStructure = predictSecondaryStructure;
this.externalSecondaryStructure = externalSecStr;
}
+
+ public void xferSettings()
+ {
+ this.visibleChainAnnotation = StructureViewSettings
+ .isVisibleChainAnnotation();
+ this.predictSecondaryStructure = StructureViewSettings
+ .isPredictSecondaryStructure();
+ this.externalSecondaryStructure = StructureViewSettings
+ .isExternalSecondaryStructure();
+
+ }
+
public StructureFile(boolean parseImmediately, String inFile, String type)
throws IOException
{
final Constructor constructor = cl
.getConstructor(new Class[] {
boolean.class, boolean.class, boolean.class, FileParse.class });
- final Object[] args = new Object[] { true, true, true,
+ final Object[] args = new Object[] { visibleChainAnnotation,
+ predictSecondaryStructure, externalSecondaryStructure,
new FileParse(getDataName(),
type) };
- StructureViewSettings.setShowSeqFeatures(false);
- StructureViewSettings.setPredictSecondaryStructure(true);
+ StructureViewSettings.setShowSeqFeatures(true);
+ StructureViewSettings.setVisibleChainAnnotation(false);
+ StructureViewSettings
+ .setPredictSecondaryStructure(predictSecondaryStructure);
+ StructureViewSettings
+ .setExternalSecondaryStructure(externalSecondaryStructure);
Object jmf = constructor.newInstance(args);
AlignmentI al = new Alignment((SequenceI[]) cl.getMethod(
"getSeqsAsArray", new Class[] {}).invoke(jmf));