|
12 | 12 | import org.labkey.api.data.TableInfo; |
13 | 13 | import org.labkey.api.data.TableSelector; |
14 | 14 | import org.labkey.api.exp.api.ExpData; |
| 15 | +import org.labkey.api.exp.api.ExpRun; |
15 | 16 | import org.labkey.api.exp.api.ExperimentService; |
16 | 17 | import org.labkey.api.ldk.LDKService; |
17 | 18 | import org.labkey.api.pipeline.PipeRoot; |
|
34 | 35 |
|
35 | 36 | import java.io.File; |
36 | 37 | import java.io.IOException; |
| 38 | +import java.nio.file.Files; |
| 39 | +import java.nio.file.Path; |
37 | 40 | import java.util.ArrayList; |
38 | 41 | import java.util.Arrays; |
39 | 42 | import java.util.Collections; |
|
44 | 47 | import java.util.Map; |
45 | 48 | import java.util.Set; |
46 | 49 | import java.util.stream.Collectors; |
| 50 | +import java.util.stream.Stream; |
47 | 51 |
|
48 | 52 | /** |
49 | 53 | * Created by bimber on 9/15/2014. |
@@ -229,6 +233,30 @@ else if (!d.getFile().exists()) |
229 | 233 | log.error("Unable to find file associated with analysis: " + m.getAnalysisId() + ", " + m.getAlignmentFile() + ", " + d.getFile().getPath() + " for container: " + (c == null ? m.getContainer() : c.getPath())); |
230 | 234 | } |
231 | 235 | } |
| 236 | + |
| 237 | + if (m.getRunId() != null) |
| 238 | + { |
| 239 | + ExpRun run = ExperimentService.get().getExpRun(m.getRunId()); |
| 240 | + if (run == null) |
| 241 | + { |
| 242 | + log.error("Missing runId: " + m.getRunId()); |
| 243 | + } |
| 244 | + else |
| 245 | + { |
| 246 | + try (Stream<Path> stream = Files.walk(run.getFilePathRootPath())) |
| 247 | + { |
| 248 | + List<Path> files = stream.filter(x -> x.getFileName().startsWith("core.")).toList(); |
| 249 | + if (!files.isEmpty()) |
| 250 | + { |
| 251 | + files.forEach(x -> log.error("Found core file: " + x.toFile().getPath())); |
| 252 | + } |
| 253 | + } |
| 254 | + catch (IOException e) |
| 255 | + { |
| 256 | + log.error(e.getMessage()); |
| 257 | + } |
| 258 | + } |
| 259 | + } |
232 | 260 | } |
233 | 261 | } |
234 | 262 |
|
|
0 commit comments