Skip to content

Commit 2f14720

Browse files
committed
Skip header when parsing cellranger vdj output
1 parent 322e952 commit 2f14720

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,11 @@ public AlignmentStep.AlignmentOutput performAlignment(Readset rs, List<File> inp
454454
String line;
455455
int totalD = 0;
456456
int totalG = 0;
457+
int lineIdx = 0;
457458
while ((line = reader.readLine()) != null)
458459
{
459-
if (line.contains("g,") || line.contains("d,"))
460+
lineIdx++;
461+
if (lineIdx > 1 && (line.contains("g,") || line.contains("d,")))
460462
{
461463
//Infer correct chain from the V, J and C genes
462464
String[] tokens = line.split(",");

0 commit comments

Comments
 (0)