Skip to content

Commit 1511d93

Browse files
committed
Fix biojava#452 update ECOD javadoc
1 parent 2e06a8d commit 1511d93

4 files changed

Lines changed: 25 additions & 13 deletions

File tree

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/ecod/EcodParseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
* The most common warning is caused by residue ranges with missing terminal CA atoms,
4848
* which cause a warning to print.
4949
*
50-
* develop83 and earlier versions also had a number of invalid ranges, which cause
51-
* error messages to print.
50+
* develop134, 127, 84 and earlier versions also had a number of invalid ranges, which
51+
* cause error messages to print.
5252
*
5353
* Filtering log4j messages to the 'error' level will filter all but the most
5454
* grievous errors.

biojava-structure/src/main/java/org/biojava/nbio/structure/ecod/EcodDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.io.IOException;
2424
import java.util.List;
2525

26-
/** General API for interacting with CATH.
26+
/** General API for interacting with ECOD.
2727
*
2828
* @author Spencer Bliven
2929
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/ecod/EcodDomain.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
import java.util.Set;
3030

3131
/**
32+
* An EcodDomain contains all the information of the ECOD database: id,
33+
* classification groups (from higher to lower in the tree: X,H,T,F), PDB code,
34+
* chain, residue ranges and status (manual or automatic classification).
35+
* <p>
36+
* For detailed explanation about the ECOD information see the original article
37+
* at: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4256011.
38+
* <pre>
39+
* Cheng H, Schaeffer RD, Liao Y, et al.
40+
* ECOD: An Evolutionary Classification of Protein Domains.
41+
* Elofsson A, ed. PLoS Computational Biology. 2014;10(12):e1003926.
42+
* </pre>
43+
*
3244
* @author Spencer Bliven
3345
*
3446
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/ecod/EcodFactory.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,29 @@
2929
import java.util.Map.Entry;
3030

3131
import org.biojava.nbio.structure.align.util.UserConfiguration;
32-
import org.biojava.nbio.structure.cath.CathDatabase;
33-
import org.biojava.nbio.structure.cath.CathInstallation;
32+
import org.biojava.nbio.structure.cath.CathFactory;
3433
import org.biojava.nbio.structure.scop.ScopFactory;
3534
import org.slf4j.Logger;
3635
import org.slf4j.LoggerFactory;
3736

3837
/**
39-
* Controls global {@link CathDatabase CathDatabases} being used.
40-
* Implements a multiton pattern through {@link #getCathDatabase(String)},
41-
* and a singleton pattern through {@link #getCathDatabase()}.
38+
* Controls global {@link EcodDatabase EcodDatabases} being used.
39+
* Implements a multiton pattern through {@link #getEcodDatabase(String)},
40+
* and a singleton pattern through {@link #getEcodDatabase()}.
4241
* @author Spencer Bliven
4342
* @see ScopFactory
44-
* @see CathInstallation
43+
* @see CathFactory
44+
* @see EcodInstallation
4545
*/
4646
public class EcodFactory {
4747

48-
private static Logger logger = LoggerFactory.getLogger(EcodFactory.class);
49-
50-
public static String DEFAULT_VERSION = EcodInstallation.DEFAULT_VERSION;
48+
private static final Logger logger = LoggerFactory.getLogger(EcodFactory.class);
49+
50+
public static final String DEFAULT_VERSION = EcodInstallation.DEFAULT_VERSION;
5151

5252
private static Map<String, SoftReference<EcodDatabase>> versionedEcodDBs =
5353
Collections.synchronizedMap(new HashMap<String, SoftReference<EcodDatabase>>());
54-
private static String defaultVersion = DEFAULT_VERSION;
54+
private static String defaultVersion = EcodInstallation.DEFAULT_VERSION;
5555

5656
/**
5757
* Returns the (singleton) database for the current default version

0 commit comments

Comments
 (0)