Skip to content

Commit 1d77b3e

Browse files
Issue 48029: Labkey Illumina Parsing pipeline is extremely slow (#108)
1 parent 4eb9f52 commit 1d77b3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

genotyping/src/org/labkey/genotyping/IlluminaFastqParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ public Map<Pair<Integer, Integer>, FileInfo> parseFastqFiles(PipelineJob job) th
135135
// Copy to a temp file for parsing for perf reasons. See issue 48029
136136
// Ideally we'd avoid the copy when the file is already on a local file system, but there's no
137137
// good way to check if a file is truly local
138-
tempFile = FileUtil.createTempFile(FileUtil.getBaseName(f), FileUtil.getExtension(f));
138+
tempFile = FileUtil.createTempFile(FileUtil.getBaseName(f) + ".", "." + FileUtil.getExtension(f));
139139
tempFile.deleteOnExit();
140-
_logger.debug("Copying to temp file, size is " + f.length() + " bytes");
140+
_logger.debug("Copying to temp file " + tempFile + ", size is " + f.length() + " bytes");
141141
FileUtil.copyFile(f, tempFile);
142142

143143
_logger.info("Beginning to parse file: " + f.getName());
144-
try (FastqReader reader = new FastqReader(f))
144+
try (FastqReader reader = new FastqReader(tempFile))
145145
{
146146
File targetDir = f.getParentFile();
147147
String fileName = f.getName();

0 commit comments

Comments
 (0)