Skip to content

Commit ab90fce

Browse files
committed
fixing patch provided by Tariq
git-svn-id: http://code.open-bio.org/repos/biojava/biojava-live/trunk@9052 7c6358e6-4a41-0410-a743-a5b2a554c398
1 parent 0fcdbe2 commit ab90fce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

biojava3-alignment/src/main/java/org/biojava3/alignment/Alignments.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.biojava3.alignment.template.*;
3232
import org.biojava3.core.sequence.compound.AmbiguityDNACompoundSet;
3333
import org.biojava3.core.sequence.compound.AminoAcidCompoundSet;
34+
import org.biojava3.core.sequence.compound.DNACompoundSet;
3435
import org.biojava3.core.sequence.template.Compound;
3536
import org.biojava3.core.sequence.template.CompoundSet;
3637
import org.biojava3.core.sequence.template.Sequence;
@@ -144,11 +145,17 @@ public static <S extends Sequence<C>, C extends Compound> Profile<S, C> getMulti
144145
@SuppressWarnings("unchecked") // compound types must be equal since compound sets are equal
145146
SubstitutionMatrix<C> temp = (SubstitutionMatrix<C>) SubstitutionMatrixHelper.getBlosum62();
146147
subMatrix = temp;
148+
} else if (cs == DNACompoundSet.getDNACompoundSet()) {
149+
@SuppressWarnings("unchecked") // compound types must be equal since compound sets are equal
150+
SubstitutionMatrix<C> temp = (SubstitutionMatrix<C>) SubstitutionMatrixHelper.getNuc4_4();
151+
subMatrix = temp;
152+
147153
} else if (cs == AmbiguityDNACompoundSet.getDNACompoundSet()) {
148154
@SuppressWarnings("unchecked") // compound types must be equal since compound sets are equal
149155
SubstitutionMatrix<C> temp = (SubstitutionMatrix<C>) SubstitutionMatrixHelper.getNuc4_4();
150156
subMatrix = temp;
151-
}
157+
158+
}
152159
ProfileProfileAlignerType pa = ProfileProfileAlignerType.GLOBAL;
153160
for (Object o : settings) {
154161
if (o instanceof PairwiseSequenceScorerType) {

0 commit comments

Comments
 (0)