Skip to content

Commit

Permalink
Implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
PoslavskySV committed Sep 1, 2015
1 parent 72cc0c4 commit f237c5c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/com/milaboratory/mixcr/export/FieldExtractors.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,30 @@ protected String extract(VDJCObject object) {
});
}

// All hits without score
for (final GeneType type : GeneType.values()) {
char l = type.getLetter();
desctiptorsList.add(new PL_O("-" + Character.toLowerCase(l) + "HitsWithoutScores",
"Export all " + l + " hits without scores", "All " + l + " hits without scores") {
@Override
protected String extract(VDJCObject object) {
VDJCHit[] hits = object.getHits(type);
if (hits == null)
return NULL;
if (hits.length == 0)
return "";
StringBuilder sb = new StringBuilder();
for (int i = 0; ; i++) {
sb.append(hits[i].getAllele().getName());
if (i == hits.length - 1)
break;
sb.append(",");
}
return sb.toString();
}
});
}

// Best alignment
for (final GeneType type : GeneType.values()) {
char l = type.getLetter();
Expand Down

0 comments on commit f237c5c

Please sign in to comment.