Skip to content

Commit 814f188

Browse files
committed
Deprecating methods that got used to the Chain interface.
1 parent 96d8baa commit 814f188

1 file changed

Lines changed: 6 additions & 37 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/StructureTools.java

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,66 +1681,35 @@ public static Structure getStructure(String name, PDBFileParser parser,
16811681
}
16821682

16831683
/**
1684-
* Tell whether given chain is a protein chain
1685-
*
1686-
* @param c
1687-
* @return true if protein, false if nucleotide or ligand
1688-
* @see #getPredominantGroupType(Chain)
1684+
* @deprecated use {@link Chain#isProtein()} instead.
16891685
*/
16901686
public static boolean isProtein(Chain c) {
16911687

16921688
return c.isProtein();
16931689
}
16941690

16951691
/**
1696-
* Tell whether given chain is DNA or RNA
1697-
*
1698-
* @param c
1699-
* @return true if nucleic acid, false if protein or ligand
1700-
* @see #getPredominantGroupType(Chain)
1701-
*/
1692+
* @deprecated use {@link Chain#isNucleicAcid()} instead.
1693+
*/
17021694
public static boolean isNucleicAcid(Chain c) {
17031695
return c.isNucleicAcid();
17041696
}
17051697

17061698
/**
1707-
* Get the predominant {@link GroupType} for a given Chain, following these
1708-
* rules: <li>if the ratio of number of residues of a certain
1709-
* {@link GroupType} to total non-water residues is above the threshold
1710-
* {@value #RATIO_RESIDUES_TO_TOTAL}, then that {@link GroupType} is
1711-
* returned</li> <li>if there is no {@link GroupType} that is above the
1712-
* threshold then the {@link GroupType} with most members is chosen, logging
1713-
* it</li>
1714-
* <p>
1715-
* See also {@link ChemComp#getPolymerType()} and
1716-
* {@link ChemComp#getResidueType()} which follow the PDB chemical component
1717-
* dictionary and provide a much more accurate description of groups and
1718-
* their linking.
1719-
* </p>
1720-
*
1721-
* @param c
1722-
* @return
1699+
* @deprecated use {@link Chain#getPredominantGroupType()} instead.
17231700
*/
17241701
public static GroupType getPredominantGroupType(Chain c) {
17251702
return c.getPredominantGroupType();
17261703
}
17271704

17281705
/**
1729-
* Returns true if the given chain is composed of water molecules only
1730-
*
1731-
* @param c
1732-
* @return
1706+
* @deprecated use {@link Chain#isWaterOnly()} instead.
17331707
*/
17341708
public static boolean isChainWaterOnly(Chain c) {
17351709
return c.isWaterOnly();
17361710
}
17371711

1738-
/**
1739-
* Returns true if the given chain is composed of non-polymeric (including water) groups only.
1740-
* To be used at parsing time only.
1741-
*
1742-
* @param c
1743-
* @return
1712+
/** @deprecated use {@link Chain#isPureNonPolymer()} instead.
17441713
*/
17451714
public static boolean isChainPureNonPolymer(Chain c) {
17461715

0 commit comments

Comments
 (0)