Skip to content

Commit e6b50f2

Browse files
committed
Add another study
1 parent 4181009 commit e6b50f2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

singlecell/resources/chunks/StudyMetadata.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ for (datasetId in names(seuratObjects)) {
1616
seuratObj <- Rdiscvr::ApplyTBMetadata(seuratObj, errorIfUnknownIdsFound = errorIfUnknownIdsFound)
1717
} else if (studyName == 'Malaria') {
1818
seuratObj <- Rdiscvr::ApplyMalariaMetadata(seuratObj, errorIfUnknownIdsFound = errorIfUnknownIdsFound)
19+
} else if (studyName == 'PC531') {
20+
seuratObj <- Rdiscvr::ApplyPC531Metadata(seuratObj, errorIfUnknownIdsFound = errorIfUnknownIdsFound)
1921
} else {
2022
stop(paste0('Unknown study: ', studyName))
2123
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.labkey.api.singlecell.pipeline.SingleCellStep;
88

99
import java.util.Arrays;
10-
import java.util.List;
1110

1211
public class StudyMetadata extends AbstractRDiscvrStep
1312
{
@@ -21,11 +20,11 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
2120
public Provider()
2221
{
2322
super("StudyMetadata", "Append Study Metadata", "RDiscvr", "This uses Rdiscvr to append study-specific metadata.", Arrays.asList(
24-
SeuratToolParameter.create("testsToUse", "Tests To Use", "The set of tests to perform.", "ldk-simplecombo", new JSONObject()
23+
SeuratToolParameter.create("studyName", "Study Name", "The study metadata to apply.", "ldk-simplecombo", new JSONObject()
2524
{{
2625
put("multiSelect", false);
2726
put("allowBlank", false);
28-
put("storeValues", "PC475;TB;Malaria");
27+
put("storeValues", "PC475;PC531;TB;Malaria");
2928
put("delimiter", ";");
3029
}}, null, null, false, false),
3130
SeuratToolParameter.create("errorIfUnknownIdsFound", "Error If Unknown Ids Found", "If true, the job will fail if the seurat object contains ID not present in the metadata", "checkbox", null, true)

0 commit comments

Comments
 (0)