X Tutup
Skip to content

Commit 0df1ca4

Browse files
authored
Merge pull request #972 from aalhossary/Fix_SCOP_files_lessthan_2.08_not_available_for_download_#969
Fix 969 Update SCOP version to 2.08
2 parents 599e7ae + 47b07f2 commit 0df1ca4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/scop/ScopFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class ScopFactory {
5151
private static final Logger logger = LoggerFactory.getLogger(ScopFactory.class);
5252

5353
// berkeley 2
54+
public static final String VERSION_2_0_8 = "2.08";
5455
public static final String VERSION_2_0_7 = "2.07";
5556
public static final String VERSION_2_0_6 = "2.06";
5657
public static final String VERSION_2_0_5 = "2.05";
@@ -78,7 +79,7 @@ public class ScopFactory {
7879
public static final String VERSION_1_55 = "1.55";
7980

8081
// The most recent version as of compilation time
81-
public static final String LATEST_VERSION = VERSION_2_0_7;
82+
public static final String LATEST_VERSION = VERSION_2_0_8;
8283

8384
// Hold one instance for each version
8485
private static Map<String,ScopDatabase> versionedScopDBs = new HashMap<>();

biojava-structure/src/main/java/org/biojava/nbio/structure/scop/ScopInstallation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959
public class ScopInstallation implements LocalScopDatabase {
6060

61-
public static final String DEFAULT_VERSION = "1.75";
61+
public static final String DEFAULT_VERSION = ScopFactory.LATEST_VERSION;
6262

6363
private static final Logger logger = LoggerFactory.getLogger(ScopInstallation.class);
6464

@@ -354,7 +354,7 @@ public ScopDomain getDomainByScopID(String scopId) {
354354
if ( scopId.length() < 6) {
355355
throw new ScopIOException("Does not look like a scop ID! " + scopId);
356356
}
357-
String pdbId = scopId.substring(1,5);
357+
String pdbId = scopId.substring(1,5); //TODO handle this when you handle extended PDBId (PDB ID)
358358
List<ScopDomain> doms = getDomainsForPDB(pdbId);
359359
if ( doms == null)
360360
return null;

biojava-structure/src/test/java/org/biojava/nbio/structure/align/util/AtomCacheTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.biojava.nbio.structure.test.util.GlobalsHelper;
6565
import org.junit.After;
6666
import org.junit.Before;
67+
import org.junit.Ignore;
6768
import org.junit.Test;
6869
import org.slf4j.Logger;
6970
import org.slf4j.LoggerFactory;
@@ -88,7 +89,7 @@ public void setUp() {
8889
StructureIO.setAtomCache(cache);
8990

9091
// Use a fixed SCOP version for stability
91-
ScopFactory.setScopDatabase(ScopFactory.VERSION_1_75B);
92+
ScopFactory.setScopDatabase(ScopFactory.LATEST_VERSION);
9293
}
9394

9495
@After
@@ -166,6 +167,7 @@ public void testGetStructureForDomain3() throws IOException, StructureException
166167
* @throws IOException
167168
* @throws StructureException
168169
*/
170+
@Ignore("SCOP files < 2.08 are no longer available")
169171
@Test
170172
public void testGetStructureForChainlessDomains() throws IOException, StructureException {
171173
ScopDatabase scop = ScopFactory.getSCOP(ScopFactory.VERSION_1_71); // Uses the range '1-135' without a chain

0 commit comments

Comments
 (0)
X Tutup