Skip to content

Commit 403241f

Browse files
committed
Fix some typos
Most are in docstrings. One misspelled public method has been deprecated.
1 parent 53bdc01 commit 403241f

10 files changed

Lines changed: 28 additions & 18 deletions

File tree

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/align/gui/MenuCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class MenuCreator {
7676
* Menus included:
7777
* <ul><li>File: open, save, export, import, exit.
7878
* <li>Align: new pairwise alignment, new multiple alignment.
79-
* <li>View: aligment panel, aligned pairs, text format,
79+
* <li>View: alignment panel, aligned pairs, text format,
8080
* FatCat format, distance matrices, dot plot.
8181
* <li>Help
8282
* </ul>

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/align/gui/MultipleAlignmentJmolDisplay.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ else if (pos < ca.length) {
9292
return lst;
9393
}
9494

95+
/**
96+
* @deprecated Replace with {@see showMultipleAlignmentPanel}
97+
*/
98+
@Deprecated
99+
public static void showMultipleAligmentPanel(MultipleAlignment multAln,
100+
AbstractAlignmentJmol jmol) throws StructureException {
101+
showMultipleAlignmentPanel(multAln, jmol);
102+
}
103+
95104
/**
96105
* Creates a new Frame with the MultipleAlignment Sequence Panel.
97106
* The panel can communicate with the Jmol 3D visualization by
@@ -102,7 +111,7 @@ else if (pos < ca.length) {
102111
103112
* @throws StructureException
104113
*/
105-
public static void showMultipleAligmentPanel(MultipleAlignment multAln,
114+
public static void showMultipleAlignmentPanel(MultipleAlignment multAln,
106115
AbstractAlignmentJmol jmol) throws StructureException {
107116

108117
MultipleAligPanel me = new MultipleAligPanel(multAln, jmol);

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/align/gui/MySaveFileListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* and from a Jmol view an XML format is saved.
4848
*
4949
* @author Aleix Lafita
50-
* @version 2.0 - adapted for MultipleAligments
50+
* @version 2.0 - adapted for MultipleAlignments
5151
*
5252
*/
5353
public class MySaveFileListener implements ActionListener {

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/align/gui/jmol/MultipleAlignmentJmol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public void actionPerformed(ActionEvent ae) {
385385
.showAlignmentImage(multAln, result);
386386

387387
} else if (cmd.equals(MenuCreator.ALIGNMENT_PANEL)) {
388-
MultipleAlignmentJmolDisplay.showMultipleAligmentPanel(multAln,
388+
MultipleAlignmentJmolDisplay.showMultipleAlignmentPanel(multAln,
389389
this);
390390

391391
} else if (cmd.equals(MenuCreator.FATCAT_TEXT)) {

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/symmetry/jmolScript/JmolSymmetryScriptGeneratorPointGroup.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ private String drawSymmetryAxes() {
684684
return s.toString();
685685
}
686686

687-
private Vector3d getAligmentVector(Point3d point, Vector3d axis) {
687+
688+
private Vector3d getAlignmentVector(Point3d point, Vector3d axis) {
688689
// for system with a single Cn axis
689690
if (rotationGroup.getPointGroup().startsWith("C") || rotationGroup.getPointGroup().startsWith("D")) {
690691
// if axis is orthogonal to principal axis, use principal axis as reference axis
@@ -760,14 +761,14 @@ private String getSymmetryAxis(int i, int j, String pointGroup, int n, Vector3d
760761
if (drawPolygon) {
761762
double polygonRadius = getMeanExtension() * 0.06;
762763
if (n == 2) {
763-
referenceAxis = getAligmentVector(p1, axis);
764+
referenceAxis = getAlignmentVector(p1, axis);
764765
s.append(getC2PolygonJmol(i, p1, referenceAxis, axis, color, polygonRadius, name));
765-
referenceAxis = getAligmentVector(p2, axis);
766+
referenceAxis = getAlignmentVector(p2, axis);
766767
s.append(getC2PolygonJmol(j, p2, referenceAxis, axis, color, polygonRadius, name));
767768
} else if (n > 2) {
768-
referenceAxis = getAligmentVector(p1, axis);
769+
referenceAxis = getAlignmentVector(p1, axis);
769770
s.append(getPolygonJmol(i, p1, referenceAxis, axis, n, color, polygonRadius, name));
770-
referenceAxis = getAligmentVector(p2, axis);
771+
referenceAxis = getAlignmentVector(p2, axis);
771772
s.append(getPolygonJmol(j, p2, referenceAxis, axis, n, color, polygonRadius, name));
772773
}
773774
}

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/Block.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public interface Block extends ScoresCache {
124124

125125
/**
126126
* Calculates and returns the first position of the specified structure in
127-
* the alignment that is not null. This will return the aligment index, not
128-
* the reisude aligned in that position.
127+
* the alignment that is not null. This will return the alignment index, not
128+
* the residue aligned in that position.
129129
*
130130
* @param str
131131
* structure index
@@ -148,8 +148,8 @@ public interface Block extends ScoresCache {
148148

149149
/**
150150
* Calculates and returns the last position of the specified structure in
151-
* the alignment that is not null. This will return the aligment index, not
152-
* the reisude aligned in that position.
151+
* the alignment that is not null. This will return the alignment index, not
152+
* the residue aligned in that position.
153153
*
154154
* @param str
155155
* structure index

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/mc/MultipleMcOptimizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void initialize() throws StructureException {
210210
}
211211
}
212212

213-
// Set the superposition and score for the seed aligment
213+
// Set the superposition and score for the seed alignment
214214
checkGaps();
215215
msa.clear();
216216
imposer.superimpose(msa);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ public static List<Atom[]> transformAtoms(MultipleAlignment alignment) {
721721

722722
/**
723723
* Calculate a List of alignment indicies that correspond to the core of a
724-
* Block, which means that all structures have a residue in that positon.
724+
* Block, which means that all structures have a residue in that position.
725725
*
726726
* @param block
727727
* alignment Block

biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/core/QuatSymmetrySubunits.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private void run() {
213213
calcOriginalCenters();
214214
calcCentroid();
215215
calcCenters();
216-
calcMomentsOfIntertia();
216+
calcMomentsOfInertia();
217217
}
218218

219219
private void calcOriginalCenters() {
@@ -272,7 +272,7 @@ public Point3d getUpperBound() {
272272
return upper;
273273
}
274274

275-
private void calcMomentsOfIntertia() {
275+
private void calcMomentsOfInertia() {
276276
for (Point3d[] trace : caCoords) {
277277
for (Point3d p : trace) {
278278
momentsOfInertia.addPoint(p, 1.0f);

biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/internal/SymmOptimizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class SymmOptimizer {
101101
private List<Double> mcScoreHistory;
102102

103103
/**
104-
* Constructor with a seed MultipleAligment storing a refined symmetry
104+
* Constructor with a seed MultipleAlignment storing a refined symmetry
105105
* alignment of the repeats. To perform the optimization use the call or
106106
* optimize methods after instantiation.
107107
*

0 commit comments

Comments
 (0)