1 package jalview.structure;
3 import jalview.datamodel.DBRefSource;
5 public class StructureImportSettings
8 * set to true to add derived sequence annotations (temp factor read from
9 * file, or computed secondary structure) to the alignment
11 private static boolean visibleChainAnnotation = false;
14 * Set true to predict secondary structure (using JMol for protein, Annotate3D
17 private static boolean predictSecStr = false;
20 * Set true (with predictSecondaryStructure=true) to predict secondary
21 * structure using an external service (currently Annotate3D for RNA only)
23 private static boolean externalSecondaryStructure = false;
25 private static boolean showSeqFeatures = true;
27 private static boolean processHETATMs = false;
29 private static String currentDefaultFormat = DBRefSource.PDB;
31 public static void addSettings(boolean addAlignmentAnnotations,
32 boolean predictSecStr, boolean externalSecStr)
34 StructureImportSettings.visibleChainAnnotation = addAlignmentAnnotations;
35 StructureImportSettings.predictSecStr = predictSecStr;
36 StructureImportSettings.externalSecondaryStructure = externalSecStr;
37 StructureImportSettings.showSeqFeatures = true;
40 public static boolean isVisibleChainAnnotation()
42 return visibleChainAnnotation;
45 public static void setVisibleChainAnnotation(
46 boolean visibleChainAnnotation)
48 StructureImportSettings.visibleChainAnnotation = visibleChainAnnotation;
51 public static boolean isPredictSecondaryStructure()
56 public static void setPredictSecondaryStructure(
57 boolean predictSecondaryStructure)
59 StructureImportSettings.predictSecStr = predictSecondaryStructure;
62 public static boolean isExternalSecondaryStructure()
64 return externalSecondaryStructure;
67 public static void setExternalSecondaryStructure(
68 boolean externalSecondaryStructure)
70 StructureImportSettings.externalSecondaryStructure = externalSecondaryStructure;
73 public static boolean isShowSeqFeatures()
75 return showSeqFeatures;
78 public static void setShowSeqFeatures(boolean showSeqFeatures)
80 StructureImportSettings.showSeqFeatures = showSeqFeatures;
83 public static String getCurrentDefaultFormat()
85 return currentDefaultFormat;
88 public static void setCurrentDefaultFormat(String currentDefaultFormat)
90 StructureImportSettings.currentDefaultFormat = currentDefaultFormat;
93 public static boolean isProcessHETATMs()
95 return processHETATMs;
98 public static void setProcessHETATMs(boolean processHETATMs)
100 StructureImportSettings.processHETATMs = processHETATMs;