Skip to content

Commit 08340fb

Browse files
committed
"Fix" biojava#88. Improve documentation with a warning about getSymmetryOrder
1 parent 26864fc commit 08340fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/AlignmentTools.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ public static int getSymmetryOrder(Map<Integer, Integer> alignment, Map<Integer,
383383
* to determine the the symmetry order. For the identity alignment, sorts
384384
* the aligned residues of each protein sequentially, then defines the ith
385385
* residues of each protein to be equivalent.
386+
*
387+
* <p>Note that the selection of the identity alignment here is <i>very</i>
388+
* naive, and only works for proteins with very good coverage. Wherever
389+
* possible, it is better to construct an identity function explicitly
390+
* from a sequence alignment (or use an {@link IdentityMap} for internally
391+
* symmetric proteins) and use {@link #getSymmetryOrder(Map, Map, int, float)}.
386392
*/
387393
public static int getSymmetryOrder(AFPChain afpChain, int maxSymmetry, float minimumMetricChange) throws StructureException {
388394
// alignment comes from the afpChain alignment

0 commit comments

Comments
 (0)