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 public static final String JMOL_PARSER = "JMolParser";
29 public static final String JALVIEW_PARSER = "JalViewParser";
31 public static final String MMCIF = "mmCIF";
33 public static final String PDB = "PDB";
36 * Determines the default file format for structure files to be downloaded
37 * from the PDB sequence fetcher. Possible options include: PDB|mmCIF
39 private static String defaultStructureFileFormat = DBRefSource.PDB;
42 * Determines the parser used for parsing PDB format file. Possible options
43 * are : JMolParser|JalveiwParser
45 private static String defaultPDBFileParser = JMOL_PARSER;
46 public static void addSettings(boolean addAlignmentAnnotations,
47 boolean predictSecStr, boolean externalSecStr)
49 StructureImportSettings.visibleChainAnnotation = addAlignmentAnnotations;
50 StructureImportSettings.predictSecStr = predictSecStr;
51 StructureImportSettings.externalSecondaryStructure = externalSecStr;
52 StructureImportSettings.showSeqFeatures = true;
55 public static boolean isVisibleChainAnnotation()
57 return visibleChainAnnotation;
60 public static void setVisibleChainAnnotation(
61 boolean visibleChainAnnotation)
63 StructureImportSettings.visibleChainAnnotation = visibleChainAnnotation;
66 public static boolean isPredictSecondaryStructure()
71 public static void setPredictSecondaryStructure(
72 boolean predictSecondaryStructure)
74 StructureImportSettings.predictSecStr = predictSecondaryStructure;
77 public static boolean isExternalSecondaryStructure()
79 return externalSecondaryStructure;
82 public static void setExternalSecondaryStructure(
83 boolean externalSecondaryStructure)
85 StructureImportSettings.externalSecondaryStructure = externalSecondaryStructure;
88 public static boolean isShowSeqFeatures()
90 return showSeqFeatures;
93 public static void setShowSeqFeatures(boolean showSeqFeatures)
95 StructureImportSettings.showSeqFeatures = showSeqFeatures;
98 public static String getDefaultStructureFileFormat()
100 return defaultStructureFileFormat;
103 public static void setDefaultStructureFileFormat(
104 String defaultStructureFileFormat)
106 StructureImportSettings.defaultStructureFileFormat = defaultStructureFileFormat;
109 public static String getDefaultPDBFileParser()
111 return defaultPDBFileParser;
114 public static void setDefaultPDBFileParser(String defaultPDBFileParser)
116 StructureImportSettings.defaultPDBFileParser = defaultPDBFileParser;