Skip to content

Commit 441c00e

Browse files
committed
Include analysis in cellranger download
1 parent 5925a00 commit 441c00e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

singlecell/src/org/labkey/singlecell/SingleCellController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void export(OutputFilesForm form, HttpServletResponse response, BindExcep
113113

114114
String name = FileUtil.makeLegalName(so.getName());
115115
Set<File> toAdd = toExport.getOrDefault(name, new HashSet<>());
116-
toAdd.addAll(CellRangerWrapper.getRawDataDirs(loupe.getParentFile(), false));
116+
toAdd.addAll(CellRangerWrapper.getRawDataDirs(loupe.getParentFile(), false, true));
117117

118118
toExport.put(name, toAdd);
119119
}

singlecell/src/org/labkey/singlecell/run/CellRangerWrapper.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected File getExe(boolean use31)
3737
return SequencePipelineService.get().getExeForPackage("CELLRANGERPATH", "cellranger" + (use31 ? "-31" : ""));
3838
}
3939

40-
public static Set<File> getRawDataDirs(File outputDir, boolean filteredOnly)
40+
public static Set<File> getRawDataDirs(File outputDir, boolean filteredOnly, boolean includeAnalysis)
4141
{
4242
List<String> dirs = new ArrayList<>();
4343
dirs.add("filtered_feature_bc_matrix");
@@ -49,6 +49,11 @@ public static Set<File> getRawDataDirs(File outputDir, boolean filteredOnly)
4949
dirs.add("raw_feature_bc_matrix");
5050
}
5151

52+
if (includeAnalysis)
53+
{
54+
dirs.add("analysis");
55+
}
56+
5257
Set<File> toAdd = new HashSet<>();
5358
for (String dir : dirs)
5459
{

0 commit comments

Comments
 (0)