import jalview.io.FileParse;
import jalview.io.StructureFile;
import jalview.schemes.ResidueProperties;
-import jalview.structure.StructureViewSettings;
+import jalview.structure.StructureImportSettings;
import jalview.util.MessageManager;
import java.io.IOException;
if (getId() == null)
{
- setId(inFile.getName());
+ setId(safeName(getDataName()));
}
for (PDBChain chain : getChains())
{
prot.add(chainseq);
}
- if (StructureViewSettings.isPredictSecondaryStructure())
+ if (StructureImportSettings.isPredictSecondaryStructure())
{
createAnnotation(chainseq, chain, ms.at);
}
List<Atom> significantAtoms = new ArrayList<Atom>();
for (org.jmol.modelset.Atom atom : ms.at)
{
+ // System.out.println("Seq Id : " + atom.getSeqID());
+ // System.out.println("To String : " + atom.toString());
+ if (!StructureImportSettings.isProcessHETATMs() && atom.isHetero())
+ {
+ continue;
+ }
if (atom.getAtomName().equalsIgnoreCase("CA")
|| atom.getAtomName().equalsIgnoreCase("P"))
{
{
if (secstr[p] >= 'A' && secstr[p] <= 'z')
{
+ try
+ {
asecstr[p] = new Annotation(String.valueOf(secstr[p]), null,
secstrcode[p], Float.NaN);
ssFound = true;
+ } catch (Exception e)
+ {
+ // e.printStackTrace();
+ }
}
}