Skip to content

Commit f217864

Browse files
committed
Bugfix to SRA fastq validation
1 parent 4fd6c3b commit f217864

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
@@ -391,7 +391,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
391391
FastqDumpWrapper wrapper = new FastqDumpWrapper(ctx.getLogger());
392392
Pair<File, File> files = wrapper.downloadSra(accession, ctx.getOutputDir());
393393

394-
long lines1 = SequenceUtil.getLineCount(files.first);
394+
long lines1 = SequenceUtil.getLineCount(files.first) / 4;
395395
ctx.getJob().getLogger().debug("Reads in " + files.first.getName() + ": " + lines1);
396396
if (lines1 != accessionToReads.get(accession))
397397
{
@@ -400,7 +400,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
400400

401401
if (files.second != null)
402402
{
403-
long lines2 = SequenceUtil.getLineCount(files.second);
403+
long lines2 = SequenceUtil.getLineCount(files.second) / 4;
404404
ctx.getJob().getLogger().debug("Reads in " + files.second.getName() + ": " + lines2);
405405
if (lines2 != accessionToReads.get(accession))
406406
{

0 commit comments

Comments
 (0)