Skip to content

Commit 111bcc3

Browse files
committed
Ensure VCF index exists for pbsv
1 parent 86e0519 commit 111bcc3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/PbsvJointCallingHandler.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
176176
for (File f : outputs)
177177
{
178178
ctx.getFileManager().addIntermediateFile(f);
179-
ctx.getFileManager().addIntermediateFile(SequenceAnalysisService.get().ensureVcfIndex(f, ctx.getLogger(), true));
179+
ctx.getFileManager().addIntermediateFile(SequenceAnalysisService.get().ensureVcfIndex(f, ctx.getLogger(), false));
180180
}
181181
vcfOutGz = SequenceUtil.combineVcfs(outputs, genome, new File(ctx.getOutputDir(), outputBaseName + ".vcf.gz"), ctx.getLogger(), true, null, false);
182182
}
@@ -361,6 +361,15 @@ public void verifyAndAddMissingSamples(JobContext ctx, File input, List<File> in
361361
sampleNamesInOrder.add(SequenceAnalysisService.get().getUnzippedBaseName(f.getName()));
362362
});
363363

364+
try
365+
{
366+
SequenceAnalysisService.get().ensureVcfIndex(input, ctx.getLogger(), false);
367+
}
368+
catch (IOException e)
369+
{
370+
throw new PipelineJobException(e);
371+
}
372+
364373
File output = new File(input.getPath() + ".tmp.vcf");
365374
try (VCFFileReader reader = new VCFFileReader(input))
366375
{

singlecell/resources/chunks/ClrNormalizeByGroup.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
4-
gc()
5-
64
seuratObj <- CellMembrane::ClrNormalizeByGroup(seuratObj, groupingVar = groupingVar, assayName = assayName, targetAssayName = targetAssayName, margin = margin, minCellsPerGroup = minCellsPerGroup, calculatePerFeatureUCell = calculatePerFeatureUCell, featureWhitelist = featureWhitelist, featureExclusionList = featureExclusionList)
75

86
saveData(seuratObj, datasetId)

0 commit comments

Comments
 (0)