Skip to content

Commit 92d7e61

Browse files
committed
Use external /tmp directory when running seurat docker jobs
1 parent 02a0615 commit 92d7e61

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

singlecell/api-src/org/labkey/api/singlecell/pipeline/AbstractSingleCellPipelineStep.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,11 @@ public static void executeR(SequenceOutputHandler.JobContext ctx, String dockerC
278278
}
279279

280280
writer.println("\t-v \"${WD}:/work\" \\");
281+
writer.println("\t-v \"/tmp:/tmp\" \\");
281282
writer.println("\t-v \"${HOME}:/homeDir\" \\");
282283
writer.println("\t-u $UID \\");
283284
writer.println("\t-e USERID=$UID \\");
285+
writer.println("\t-e TMPDIR=/tmp \\");
284286
writer.println("\t-w /work \\");
285287
//NOTE: this seems to disrupt packages installed into home
286288
//writer.println("\t-e HOME=/homeDir \\");

singlecell/resources/chunks/MergeSeurat.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if (length(seuratObjects) == 1) {
22
print('There is only one seurat object, no need to merge')
33
newSeuratObjects <- seuratObjects
44
} else {
5+
doDiet <- exists('doDiet') && doDiet
56
if (exists('doDiet') && doDiet) {
67
print('Running DietSeurat on inputs')
78
for (datasetId in seuratObjects) {
@@ -11,7 +12,7 @@ if (length(seuratObjects) == 1) {
1112
gc()
1213
}
1314

14-
newSeuratObjects[[projectName]] <- CellMembrane::MergeSeuratObjs(seuratObjects, projectName = projectName)
15+
newSeuratObjects[[projectName]] <- CellMembrane::MergeSeuratObjs(seuratObjects, projectName = projectName, doGC = doDiet)
1516
}
1617

1718
# Cleanup

0 commit comments

Comments
 (0)