Skip to content

Commit 6590d61

Browse files
committed
Update handling of TRAV/DV lineages for compatibility with conga
1 parent 53842b6 commit 6590d61

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

singlecell/src/org/labkey/singlecell/run/CellRangerVDJWrapper.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,19 @@ else if (doGDParsing() && "TRG".equalsIgnoreCase(locus))
220220
name = name.replaceAll("TRG", locus) + suffix;
221221
}
222222

223+
// Special-case TRAVxx/DVxx lineages:
224+
if (lineage.startsWith("TRA") && lineage.contains("DV") && !lineage.contains("/DV"))
225+
{
226+
if (lineage.contains("-DV"))
227+
{
228+
lineage = lineage.replace("-DV", "/DV");
229+
}
230+
else
231+
{
232+
lineage = lineage.replace("DV", "/DV");
233+
}
234+
}
235+
223236
StringBuilder header = new StringBuilder();
224237
header.append(">").append(i.get()).append("|").append(name).append(" ").append(lineage).append("|").append(lineage).append("|");
225238
//translate into V_Region

0 commit comments

Comments
 (0)