From: tcofoegbu Date: Thu, 8 Sep 2016 16:32:12 +0000 (+0100) Subject: JAL-2164 renamed 'DEFAULT_STRUCTURE_FORMAT' property to 'PDB_DOWNLOAD_FORMAT' X-Git-Tag: Release_2_10_0~48 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b4ae8736c4d0d6bcba332dc875dd5eabd8d4c851;p=jalview.git JAL-2164 renamed 'DEFAULT_STRUCTURE_FORMAT' property to 'PDB_DOWNLOAD_FORMAT' --- diff --git a/help/html/features/viewingpdbs.html b/help/html/features/viewingpdbs.html index d4819f1..61c13c4 100755 --- a/help/html/features/viewingpdbs.html +++ b/help/html/features/viewingpdbs.html @@ -127,7 +127,7 @@ web-service. To enable mmCIF as the default format for importing PBD sequences from the PDB sequence fetcher, add or modify the property - DEFAULT_STRUCTURE_FORMAT=mmCIF in Jalview properties file. + PDB_DOWNLOAD_FORMAT=mmCIF in Jalview properties file. Once this is done, the steps followed in retrieving PDB format files above can be followed to obtain the same data with mmCIF. mmCIF format file support was added in Jalview 2.9.1.

diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index df71ccc..508e8a7 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -232,7 +232,7 @@ public class Cache /** * Allowed values are PDB or mmCIF */ - private final static String DEFAULT_STRUCTURE_FORMAT = PDBEntry.Type.MMCIF + private final static String PDB_DOWNLOAD_FORMAT = PDBEntry.Type.MMCIF .toString(); private final static String DEFAULT_PDB_FILE_PARSER = StructureImportSettings.StructureParser.JMOL_PARSER @@ -445,7 +445,7 @@ public class Cache StructureImportSettings.setDefaultStructureFileFormat(jalview.bin.Cache .getDefault( - "DEFAULT_STRUCTURE_FORMAT", DEFAULT_STRUCTURE_FORMAT)); +"PDB_DOWNLOAD_FORMAT", PDB_DOWNLOAD_FORMAT)); StructureImportSettings .setDefaultPDBFileParser(jalview.bin.Cache.getDefault( "DEFAULT_PDB_FILE_PARSER", DEFAULT_PDB_FILE_PARSER)); diff --git a/test/jalview/ws/PDBSequenceFetcherTest.java b/test/jalview/ws/PDBSequenceFetcherTest.java index fda0198..c1d1144 100644 --- a/test/jalview/ws/PDBSequenceFetcherTest.java +++ b/test/jalview/ws/PDBSequenceFetcherTest.java @@ -64,7 +64,7 @@ public class PDBSequenceFetcherTest { Cache.applicationProperties.setProperty("STRUCT_FROM_PDB", Boolean.TRUE.toString()); - Cache.applicationProperties.setProperty("DEFAULT_STRUCTURE_FORMAT", + Cache.applicationProperties.setProperty("PDB_DOWNLOAD_FORMAT", "PDB"); List sps = sf.getSourceProxy("PDB"); AlignmentI response = sps.get(0).getSequenceRecords("2GIS");