We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4790d9 commit b16e0a4Copy full SHA for b16e0a4
src/main/java/com/antigenomics/vdjtools/profile/Cdr3Center.java
@@ -35,9 +35,9 @@
35
public class Cdr3Center extends Cdr3Region{
36
@Override
37
protected Range innerGetRange(Clonotype clonotype) {
38
- int cdr3Center = clonotype.getCdr3aaBinary().size() / 2;
39
- return new Range(Math.max(0, cdr3Center - 1),
40
- Math.min(clonotype.getCdr3aaBinary().size(), cdr3Center + 2));
+ int cdr3CenterAA = clonotype.getCdr3Length() / 6;
+ return new Range(Math.max(0, 3 * (cdr3CenterAA - 1)),
+ Math.min(clonotype.getCdr3Length(), 3 * (cdr3CenterAA + 2)));
41
}
42
43
0 commit comments