Skip to content

Commit 555d161

Browse files
committed
appendName to appendPath
1 parent 7f70d3e commit 555d161

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceIntegrationTests.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,12 +1511,12 @@ protected void validateAlignmentJob(Set<PipelineJob> jobs, Collection<String> ad
15111511
expectedOutputs.add(FileUtil.appendName(basedir, fn));
15121512
}
15131513

1514-
File bam = FileUtil.appendName(basedir, outDir + "/Alignment/" + rs.getName() + ".bam");
1514+
File bam = FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment/" + rs.getName() + ".bam"));
15151515
expectedOutputs.add(bam);
15161516

1517-
expectedOutputs.add(FileUtil.appendName(basedir, outDir + "/Alignment/" + rs.getName() + ".bam.bai"));
1517+
expectedOutputs.add(FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment/" + rs.getName() + ".bam.bai")));
15181518

1519-
expectedOutputs.add(FileUtil.appendName(basedir, outDir + "/Alignment/idxstats.txt"));
1519+
expectedOutputs.add(FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment/idxstats.txt")));
15201520

15211521
File log = FileUtil.appendName(basedir, job.getProtocolName() + ".log");
15221522
try
@@ -1542,10 +1542,10 @@ protected Collection<File> addDefaultAlignmentOutputs(File basedir, String jobNa
15421542
extraFiles.add(FileUtil.appendName(basedir, basedir.getName() + ".pipe.xar.xml"));
15431543

15441544
extraFiles.add(FileUtil.appendName(basedir, outDir));
1545-
extraFiles.add(FileUtil.appendName(basedir, outDir + "/Alignment"));
1546-
extraFiles.add(FileUtil.appendName(basedir, outDir + "/Alignment/" + rs.getName() + ".summary.metrics"));
1545+
extraFiles.add(FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment")));
1546+
extraFiles.add(FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment/" + rs.getName() + ".summary.metrics")));
15471547

1548-
extraFiles.add(FileUtil.appendName(basedir, outDir + "/Alignment/" + rs.getName() + ".bam.bai"));
1548+
extraFiles.add(FileUtil.appendPath(basedir, Path.parse(outDir + "/Alignment/" + rs.getName() + ".bam.bai")));
15491549

15501550
return extraFiles;
15511551
}
@@ -2505,7 +2505,7 @@ public void testBwaMemWithSavedLibrary() throws Exception
25052505
Integer libraryId = createSavedLibrary();
25062506
Integer dataId = new TableSelector(SequenceAnalysisSchema.getTable(SequenceAnalysisSchema.TABLE_REF_LIBRARIES), PageFlowUtil.set("fasta_file"), new SimpleFilter(FieldKey.fromString("rowid"), libraryId), null).getObject(Integer.class);
25072507
ExpData data = ExperimentService.get().getExpData(dataId);
2508-
File alignmentIndexDir = FileUtil.appendName(data.getFile().getParentFile(), AlignerIndexUtil.INDEX_DIR + "/bwa");
2508+
File alignmentIndexDir = FileUtil.appendPath(data.getFile().getParentFile(), Path.parse(AlignerIndexUtil.INDEX_DIR + "/bwa"));
25092509
if (alignmentIndexDir.exists())
25102510
{
25112511
FileUtils.deleteDirectory(alignmentIndexDir);
@@ -2827,7 +2827,7 @@ public void testBismarkWithSavedLibraryAndAdapters() throws Exception
28272827
Integer libraryId = createSavedLibrary();
28282828
Integer dataId = new TableSelector(SequenceAnalysisSchema.getTable(SequenceAnalysisSchema.TABLE_REF_LIBRARIES), PageFlowUtil.set("fasta_file"), new SimpleFilter(FieldKey.fromString("rowid"), libraryId), null).getObject(Integer.class);
28292829
ExpData data = ExperimentService.get().getExpData(dataId);
2830-
File alignmentIndexDir = FileUtil.appendName(data.getFile().getParentFile(), AlignerIndexUtil.INDEX_DIR + "/Bismark");
2830+
File alignmentIndexDir = FileUtil.appendPath(data.getFile().getParentFile(), Path.parse(AlignerIndexUtil.INDEX_DIR + "/Bismark"));
28312831
if (alignmentIndexDir.exists())
28322832
{
28332833
FileUtils.deleteDirectory(alignmentIndexDir);

0 commit comments

Comments
 (0)