File tree 3 files changed +21
-3
lines changed
src/main/java/com/milaboratory/mixcr/basictypes
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
+ MiXCR 1.7.2 ( 5 May 2016)
3
+ ========================
4
+
5
+ -- Fixed bug leading to mis-filtering of certain combinations of Alpha-Delta-V genes with Alpha-J
6
+ or Delta-J genes
7
+
8
+
2
9
MiXCR 1.7.1 ( 9 Mar 2016)
3
10
========================
4
11
Original file line number Diff line number Diff line change 32
32
33
33
<groupId >com.milaboratory</groupId >
34
34
<artifactId >mixcr</artifactId >
35
- <version >1.7.1 </version >
35
+ <version >1.7.2 </version >
36
36
<packaging >jar</packaging >
37
37
<name >MiXCR</name >
38
38
Original file line number Diff line number Diff line change @@ -103,13 +103,24 @@ public NSequenceWithQuality[] getOriginalSequences() {
103
103
public final boolean hasSameVJLoci (final int top ) {
104
104
VDJCHit [] vHits = hits .get (GeneType .Variable ),
105
105
jHits = hits .get (GeneType .Joining );
106
- for (int v = 0 ; v < top && v < vHits . length ; ++v )
107
- for (int j = 0 ; j < top && j < jHits . length ; ++j )
106
+ for (int v = 0 ; v < actualTop ( vHits , top ) ; ++v )
107
+ for (int j = 0 ; j < actualTop ( jHits , top ) ; ++j )
108
108
if (vHits [v ].getAllele ().getLocus () == jHits [j ].getAllele ().getLocus ())
109
109
return true ;
110
110
return false ;
111
111
}
112
112
113
+ private static int actualTop (VDJCHit [] hits , int top ) {
114
+ if (hits .length <= top )
115
+ return hits .length ;
116
+ float score = hits [top ].getScore () - Float .MIN_VALUE ;
117
+ while (top < hits .length &&
118
+ hits [top ].getScore () >= score ) {
119
+ ++top ;
120
+ }
121
+ return top ;
122
+ }
123
+
113
124
@ Override
114
125
public boolean equals (Object o ) {
115
126
if (this == o ) return true ;
You can’t perform that action at this time.
0 commit comments