git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
src
/
mc_view
/
PDBfile.java
diff --git
a/src/mc_view/PDBfile.java
b/src/mc_view/PDBfile.java
index
0435def
..
21d3dcb
100755
(executable)
--- a/
src/mc_view/PDBfile.java
+++ b/
src/mc_view/PDBfile.java
@@
-20,6
+20,12
@@
*/
package mc_view;
*/
package mc_view;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Hashtable;
+import java.util.List;
+import java.util.Vector;
+
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.DBRefSource;
import jalview.datamodel.SequenceI;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.DBRefSource;
import jalview.datamodel.SequenceI;
@@
-28,12
+34,6
@@
import jalview.io.FileParse;
import jalview.io.StructureFile;
import jalview.util.MessageManager;
import jalview.io.StructureFile;
import jalview.util.MessageManager;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Hashtable;
-import java.util.List;
-import java.util.Vector;
-
public class PDBfile extends StructureFile
{
private static String CALC_ID_PREFIX = "JalviewPDB";
public class PDBfile extends StructureFile
{
private static String CALC_ID_PREFIX = "JalviewPDB";
@@
-143,17
+143,19
@@
public class PDBfile extends StructureFile
}
Atom tmpatom = new Atom(line);
}
Atom tmpatom = new Atom(line);
- try
+ if (tmpatom.resNumIns.trim().equals(lastID))
+ {
+ // phosphorylated protein - seen both CA and P..
+ continue;
+ }
+ tmpchain = findChain(tmpatom.chain);
+ if (tmpchain != null)
{
{
- tmpchain = findChain(tmpatom.chain);
- if (tmpatom.resNumIns.trim().equals(lastID))
- {
- // phosphorylated protein - seen both CA and P..
- continue;
- }
tmpchain.atoms.addElement(tmpatom);
tmpchain.atoms.addElement(tmpatom);
- } catch (Exception e)
+ }
+ else
{
{
+ // PDBfile never handles alphafold models
tmpchain = new PDBChain(getId(), tmpatom.chain);
getChains().add(tmpchain);
tmpchain.atoms.addElement(tmpatom);
tmpchain = new PDBChain(getId(), tmpatom.chain);
getChains().add(tmpchain);
tmpchain.atoms.addElement(tmpatom);