Skip to content

Commit 2ef4efb

Browse files
committed
Bugfix to RestoreSraDataHandler
1 parent 4930f5f commit 2ef4efb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/RestoreSraDataHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
401401

402402
long lines1 = SequenceUtil.getLineCount(files.first) / 4;
403403
ctx.getJob().getLogger().debug("Reads in " + files.first.getName() + ": " + lines1);
404-
if (accessionToReads.containsKey(accession) && lines1 != accessionToReads.get(accession))
404+
if (accessionToReads.containsKey(accession) && accessionToReads.get(accession) > 0 && lines1 != accessionToReads.get(accession))
405405
{
406406
throw new PipelineJobException("Reads found in file, " + lines1 + ", does not match expected: " + accessionToReads.get(accession) + " for file: " + files.first.getPath());
407407
}
@@ -410,7 +410,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
410410
{
411411
long lines2 = SequenceUtil.getLineCount(files.second) / 4;
412412
ctx.getJob().getLogger().debug("Reads in " + files.second.getName() + ": " + lines2);
413-
if (accessionToReads.containsKey(accession) && lines2 != accessionToReads.get(accession))
413+
if (accessionToReads.containsKey(accession) && accessionToReads.get(accession) > 0 && lines2 != accessionToReads.get(accession))
414414
{
415415
throw new PipelineJobException("Reads found in file, " + lines2 + ", does not match expected: " + accessionToReads.get(accession) + " for file: " + files.second.getPath());
416416
}

0 commit comments

Comments
 (0)