Skip to content

Commit

Permalink
Support of different quality merging algorithms.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolotin committed Sep 17, 2015
1 parent d4bd460 commit 74e4972
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 147 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ target
*.iml
.idea
doc/_build
.floo
.flooignore
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<milib.version>1.1.1</milib.version>
<milib.version>1.1.2-SNAPSHOT</milib.version>
</properties>

<dependencies>
Expand Down

This file was deleted.

42 changes: 0 additions & 42 deletions src/main/java/com/milaboratory/mixcr/vdjaligners/PairedTarget.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
package com.milaboratory.mixcr.vdjaligners;

import com.milaboratory.core.PairedTarget;
import com.milaboratory.core.Range;
import com.milaboratory.core.alignment.Alignment;
import com.milaboratory.core.alignment.AlignmentUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.milaboratory.core.PairedEndReadsLayout;
import com.milaboratory.mitools.merger.MergerParameters;
import com.milaboratory.mixcr.basictypes.HasFeatureToAlign;
import com.milaboratory.mixcr.reference.Allele;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public VDJCAlignerWithMerge(VDJCAlignerParameters parameters) {
super(parameters);
singleAligner = new VDJCAlignerSJFirst(parameters);
pairedAligner = new VDJCAlignerPVFirst(parameters);
merger = new MismatchOnlyPairedReadMerger(parameters.getMergerParameters(),
parameters.getReadsLayout().isOpposite());
merger = new MismatchOnlyPairedReadMerger(
parameters.getMergerParameters().overrideReadsLayout(
parameters.getReadsLayout()));
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/parameters/vdjcaligner_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"includeDScore": false,
"includeCScore": false,
"mergerParameters": {
"qualityMergingAlgorithm" : "SumSubtraction",
"minimalOverlap": 17,
"minimalIdentity": 0.9
},
Expand Down Expand Up @@ -196,6 +197,7 @@
"includeDScore": true,
"includeCScore": true,
"mergerParameters": {
"qualityMergingAlgorithm" : "SumSubtraction",
"minimalOverlap": 17,
"minimalIdentity": 0.9
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
*/
package com.milaboratory.mixcr.vdjaligners;

import com.milaboratory.core.PairedEndReadsLayout;
import com.milaboratory.core.alignment.AffineGapAlignmentScoring;
import com.milaboratory.core.alignment.KAlignerParameters;
import com.milaboratory.core.alignment.LinearGapAlignmentScoring;
import com.milaboratory.mitools.merger.MergerParameters;
import com.milaboratory.mitools.merger.QualityMergingAlgorithm;
import com.milaboratory.mixcr.reference.GeneFeature;
import com.milaboratory.mixcr.reference.LociLibrary;
import com.milaboratory.mixcr.reference.LociLibraryManager;
Expand Down Expand Up @@ -61,7 +63,8 @@ public void test1() throws Exception {
LinearGapAlignmentScoring.getNucleotideBLASTScoring())),
VJAlignmentOrder.JThenV,
false, false,
120.0f, 5, 0.7f, 0.7f, PairedEndReadsLayout.Opposite, new MergerParameters(12, 0.12));
120.0f, 5, 0.7f, 0.7f, PairedEndReadsLayout.Opposite, new MergerParameters(
QualityMergingAlgorithm.SumSubtraction, null, 12, 0.12));
String str = GlobalObjectMappers.PRETTY.writeValueAsString(paramentrs);
VDJCAlignerParameters deser = GlobalObjectMappers.PRETTY.readValue(str, VDJCAlignerParameters.class);
assertEquals(paramentrs, deser);
Expand Down

0 comments on commit 74e4972

Please sign in to comment.