Skip to content

Commit bd5230e

Browse files
authored
Support mouse for SingleR (#248)
1 parent 8a5ca0f commit bd5230e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

singlecell/resources/chunks/RunSingleR.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ library(ExperimentHub)
1212
printName(datasetId)
1313
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
1414

15+
if (singleRSpecies == 'mouse') {
16+
datasets <- 'MouseRNAseqData'
17+
}
18+
else {
19+
print('Using human singleR datasets')
20+
}
21+
1522
seuratObj <- bindArgs(CellMembrane::RunSingleR, seuratObj, disallowedArgNames = c('assay'))()
1623

1724
saveData(seuratObj, datasetId)

singlecell/src/org/labkey/singlecell/pipeline/singlecell/RunSingleR.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ public Provider()
2525
}}, false, "showHeatmap", true),
2626
SeuratToolParameter.create("nThreads", "# Threads", "If provided, this value will be passed to BiocParallel::MulticoreParam().", "ldk-integerfield", new JSONObject(){{
2727
put("minValue", 0);
28-
}}, null)
28+
}}, null),
29+
SeuratToolParameter.create("singleRSpecies", "Tests To Use", "If human, hpca, blueprint, dice, monaco, and immgen will be used. If mouse, MouseRNAseqData will be used.", "ldk-simplecombo", new JSONObject()
30+
{{
31+
put("multiSelect", false);
32+
put("allowBlank", false);
33+
put("storeValues", "human;mouse");
34+
put("initialValues", "human");
35+
put("delimiter", ";");
36+
put("joinReturnValue", true);
37+
}}, "human", null, false, false)
2938
), null, null);
3039
}
3140

0 commit comments

Comments
 (0)