Skip to content
Permalink
Browse files

This fixes #540

  • Loading branch information...
dbolotin committed Sep 12, 2019
1 parent c5171de commit 74125e9b5a392ba8335ef3239b37592b8b890b92
Showing with 11 additions and 1 deletion.
  1. +1 −0 CHANGELOG_CURRENT
  2. +1 −1 pom.xml
  3. +9 −0 src/main/java/com/milaboratory/mixcr/basictypes/ClonalSequence.java
@@ -0,0 +1 @@
Fixes exception in `assemble` for multi-assembling-feature cases with zero length sequences
@@ -33,7 +33,7 @@

<groupId>com.milaboratory</groupId>
<artifactId>mixcr</artifactId>
<version>3.0.1-SNAPSHOT</version>
<version>3.0.11-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MiXCR</name>

@@ -83,6 +83,15 @@ public boolean isCompatible(ClonalSequence other) {
for (int i = 1; i < sequences.length; ++i) {
NucleotideSequence left = sequences[i - 1].getSequence(),
right = sequences[i].getSequence();
if (left.size() == 0 || right.size() == 0) {
stretches[i - 1] = new Stretch(left.size() != 0
? left.codeAt(left.size() - 1)
: right.size() != 0
? right.codeAt(0)
: 0
);
continue;
}
int leftSize = left.size(), rightSize = right.size();
byte code = left.codeAt(leftSize - 1);
if (code != right.codeAt(0)) {

0 comments on commit 74125e9

Please sign in to comment.
You can’t perform that action at this time.