|
24 | 24 | import org.biojava.nbio.structure.*; |
25 | 25 | import org.biojava.nbio.structure.io.mmcif.ChemCompGroupFactory; |
26 | 26 | import org.biojava.nbio.structure.io.util.PDBTemporaryStorageUtils.LinkRecord; |
| 27 | +import org.biojava.nbio.structure.secstruc.SecStrucInfo; |
| 28 | +import org.biojava.nbio.structure.secstruc.SecStrucType; |
27 | 29 | import org.biojava.nbio.structure.xtal.CrystalCell; |
28 | 30 | import org.biojava.nbio.structure.xtal.SpaceGroup; |
29 | 31 | import org.biojava.nbio.structure.xtal.SymoplibParser; |
30 | 32 | import org.slf4j.Logger; |
31 | 33 | import org.slf4j.LoggerFactory; |
32 | 34 |
|
33 | 35 | import javax.vecmath.Matrix4d; |
| 36 | + |
34 | 37 | import java.io.BufferedReader; |
35 | 38 | import java.io.IOException; |
36 | 39 | import java.io.InputStream; |
@@ -203,32 +206,8 @@ public class PDBFileParser { |
203 | 206 | "EXPRESSION_SYSTEM_VECTOR:", "EXPRESSION_SYSTEM_PLASMID:", |
204 | 207 | "EXPRESSION_SYSTEM_GENE:", "OTHER_DETAILS:")); |
205 | 208 |
|
206 | | - |
207 | | - |
208 | | - /** Secondary strucuture assigned by the PDB author/ |
209 | | - * |
210 | | - */ |
211 | | - public static final String PDB_AUTHOR_ASSIGNMENT = "PDB_AUTHOR_ASSIGNMENT"; |
212 | | - |
213 | | - /** Helix secondary structure assignment. |
214 | | - * |
215 | | - */ |
216 | | - public static final String HELIX = "HELIX"; |
217 | | - |
218 | | - /** Strand secondary structure assignment. |
219 | | - * |
220 | | - */ |
221 | | - public static final String STRAND = "STRAND"; |
222 | | - |
223 | | - /** Turn secondary structure assignment. |
224 | | - * |
225 | | - */ |
226 | | - public static final String TURN = "TURN"; |
227 | | - |
228 | 209 | private int atomCount; |
229 | 210 |
|
230 | | - |
231 | | - |
232 | 211 | private int my_ATOM_CA_THRESHOLD ; |
233 | 212 |
|
234 | 213 | private int load_max_atoms; |
@@ -3005,13 +2984,13 @@ private void storeUnAlignedSeqRes(Structure structure, List<Chain> seqResChains) |
3005 | 2984 |
|
3006 | 2985 | private void setSecStruc(){ |
3007 | 2986 |
|
3008 | | - setSecElement(helixList, PDB_AUTHOR_ASSIGNMENT, HELIX ); |
3009 | | - setSecElement(strandList, PDB_AUTHOR_ASSIGNMENT, STRAND ); |
3010 | | - setSecElement(turnList, PDB_AUTHOR_ASSIGNMENT, TURN ); |
| 2987 | + setSecElement(helixList, SecStrucInfo.PDB_AUTHOR_ASSIGNMENT, SecStrucType.helix4 ); |
| 2988 | + setSecElement(strandList, SecStrucInfo.PDB_AUTHOR_ASSIGNMENT, SecStrucType.extended ); |
| 2989 | + setSecElement(turnList, SecStrucInfo.PDB_AUTHOR_ASSIGNMENT, SecStrucType.coil ); |
3011 | 2990 |
|
3012 | 2991 | } |
3013 | 2992 |
|
3014 | | - private void setSecElement(List<Map<String,String>> secList, String assignment, String type){ |
| 2993 | + private void setSecElement(List<Map<String,String>> secList, String assignment, SecStrucType type){ |
3015 | 2994 |
|
3016 | 2995 |
|
3017 | 2996 | Iterator<Map<String,String>> iter = secList.iterator(); |
@@ -3052,10 +3031,8 @@ private void setSecElement(List<Map<String,String>> secList, String assignment, |
3052 | 3031 | if ( inRange){ |
3053 | 3032 | if ( g instanceof AminoAcid) { |
3054 | 3033 | AminoAcid aa = (AminoAcid)g; |
3055 | | - |
3056 | | - Map<String,String> assignmentMap = new HashMap<String,String>(); |
3057 | | - assignmentMap.put(assignment,type); |
3058 | | - aa.setSecStruc(assignmentMap); |
| 3034 | + SecStrucInfo ss = new SecStrucInfo(aa, assignment, type); |
| 3035 | + aa.setSecStruc(ss); |
3059 | 3036 | } |
3060 | 3037 |
|
3061 | 3038 | } |
|
0 commit comments