Skip to content

Commit

Permalink
This allows alignment attached features in mutation export fields.
Browse files Browse the repository at this point in the history
This fixes #301
  • Loading branch information
dbolotin committed Dec 12, 2017
1 parent 00cd0ba commit 59b4d89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Now export fields like `-nMutationsRelative` supports alignment-attached gene features (e.g. this allows to export all mutations of V gene inside CDR3 region: `-nMutationsRelative VCDR3Part VRegionWithP`)
minor: `--noMerge` option renamed to `--no-merge` in assemble action
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

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

Expand All @@ -44,14 +44,14 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<milib.version>1.8.1</milib.version>
<milib.version>1.8.2-SNAPSHOT</milib.version>
</properties>

<dependencies>
<dependency>
<groupId>io.repseq</groupId>
<artifactId>repseqio</artifactId>
<version>1.2.10</version>
<version>1.2.11-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion repseqio
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ protected String extractValue(VDJCObject object, GeneFeature[] parameters) {
if (!germlinePartitioning.isAvailable(bigGeneFeature))
return "-";

Range smallTargetRage = germlinePartitioning.getRelativeRange(alignedFeature, smallGeneFeature);
Range smallTargetRage =
smallGeneFeature.isAlignmentAttached() ?
null :
germlinePartitioning.getRelativeRange(alignedFeature, smallGeneFeature);
if (smallTargetRage == null)
for (int i = 0; i < object.numberOfTargets(); i++) {
SequencePartitioning pt = object.getPartitionedTarget(i).getPartitioning();
Expand Down

0 comments on commit 59b4d89

Please sign in to comment.