Skip to content

Commit 8009fb2

Browse files
committed
Strip quotes from many scRNA-seq fields
1 parent 4993b6d commit 8009fb2

17 files changed

+28
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public Provider()
2727
put("allowBlank", false);
2828
put("height", 150);
2929
put("delimiter", ",");
30+
put("stripCharsRe", "/['\"]/g");
3031
}}, "cDNA_ID").delimiter(","),
3132
SeuratToolParameter.create("addMetadata", "Query Metadata?", "If checked, Rdiscvr::QueryAndApplyMetadataUsingCDNA will be run after aggregation. This requires a cDNA_ID column to exist.", "checkbox", new JSONObject(){{
3233
put("checked", true);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ public Provider()
2626
SeuratToolParameter.create("adtWhitelist", "ADT Whitelist", "If provided, these ADTs will be scaled and used for PCA. If empty, all ADTs will be used.", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
2727
put("height", 150);
2828
put("delimiter", ",");
29+
put("stripCharsRe", "/['\"]/g");
2930
}}, null).delimiter(","),
3031
SeuratToolParameter.create("adtBlacklist", "ADT Blacklist", "If provided, these ADTs will be excluded from scaling/PCA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
3132
put("height", 150);
3233
put("delimiter", ",");
34+
put("stripCharsRe", "/['\"]/g");
3335
}}, null).delimiter(","),
3436
SeuratToolParameter.create("assayName", "Assay Name", "The assay to use", "textbox", new JSONObject(){{
3537

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ public Provider()
4141
SeuratToolParameter.create("featureWhitelist", "Genes to Add to VariableFeatures", "These genes, entered comma-separated or one/line, will be added to the default Seurat::VariableFeatures gene set when running PCA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
4242
put("height", 150);
4343
put("delimiter", ",");
44+
put("stripCharsRe", "/['\"]/g");
4445
}}, null).delimiter(","),
4546
SeuratToolParameter.create("featureExclusionList", "Genes to Exclude From VariableFeatures", "These genes, entered comma-separated or one/line, will be excluded from the genes passed to RunPCA (which is otherwise determined by Seurat::VariableFeatures)", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
4647
put("height", 150);
4748
put("delimiter", ",");
49+
put("stripCharsRe", "/['\"]/g");
4850
}}, null).delimiter(",")
4951
), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null);
5052
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public Provider()
2929
put("height", 150);
3030
put("width", 600);
3131
put("delimiter", DELIM);
32+
put("stripCharsRe", "/['\"]/g");
3233
}}, null),
3334
SeuratToolParameter.create("storeRanks", "Store Ranks", "Passed directly to UCell::AddModuleScore_UCell.", "checkbox", new JSONObject(){{
3435

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public Provider()
2626
put("allowBlank", false);
2727
put("height", 150);
2828
put("delimiter", ",");
29+
put("stripCharsRe", "/['\"]/g");
2930
}}, null).delimiter(",")
3031
), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null);
3132
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public Provider()
2626
SeuratToolParameter.create("subsetFields", "Additional Grouping Fields", "A comma-separated list of fields that will be used to subset data within each seurat object. For example, if 'BarcodePrefix' is provided and 500 target cells is selected, each incoming seurat object will be subset to no more than 500 cells per unique value of BarcodePrefix. If blank, each object will be treated as one unit of data.", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
2727
put("height", 150);
2828
put("delimiter", ",");
29+
put("stripCharsRe", "/['\"]/g");
2930
}}, null, "subsetFields", true, true).delimiter(","),
3031
SeuratToolParameter.create("seed", "Random Seed", "This random seed, used for downsampling", "ldk-integerfield", new JSONObject(){{
3132

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ public Provider()
2121
{
2222
super("DropAssays", "Assay(s) to Drop", "Seurat", "This will drop the selected assays from your Seurat object(s)", Arrays.asList(
2323
SeuratToolParameter.create("assayNames", "Assay(s)", "The names of assays to drop, such as: RNA.orig, ADT, or RNA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
24-
put("allowBlank", false);
25-
put("height", 150);
26-
put("delimiter", ",");
27-
}}, null).delimiter(",")
28-
), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null);
24+
put("allowBlank", false);
25+
put("height", 150);
26+
put("delimiter", ",");
27+
put("stripCharsRe", "/['\"]/g");
28+
}}, null).delimiter(",")
29+
), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null);
2930
}
3031

3132
@Override

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public Provider()
2626
put("allowBlank", false);
2727
put("height", 150);
2828
put("delimiter", ",");
29+
put("stripCharsRe", "/['\"]/g");
2930
}}, null).delimiter(",")
3031
), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null);
3132
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public Provider()
2828
put("allowBlank", false);
2929
put("height", 200);
3030
put("delimiter", ",");
31+
put("stripCharsRe", "/['\"]/g");
3132
}}, null).delimiter(","),
3233
SeuratToolParameter.create("testsToUse", "Tests To Use", "The set of tests to perform.", "ldk-simplecombo", new JSONObject()
3334
{{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ public Provider()
3636
SeuratToolParameter.create("integrationFeaturesInclusionList", "Genes to Add to Integration", "These genes, entered comma-separated or one/line, will be added to the default Seurat::VariableFeatures gene set when running PCA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
3737
put("height", 150);
3838
put("delimiter", ",");
39+
put("stripCharsRe", "/['\"]/g");
3940
}}, null).delimiter(","),
4041
SeuratToolParameter.create("integrationFeaturesExclusionList", "Genes to Exclude From Integration", "These genes, entered comma-separated or one/line, will be excluded from the genes passed to RunPCA (which is otherwise determined by Seurat::VariableFeatures)", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
4142
put("height", 150);
4243
put("delimiter", ",");
44+
put("stripCharsRe", "/['\"]/g");
4345
}}, null).delimiter(","),
4446
SeuratToolParameter.create("kWeight", "k.weight", "This will be passed to k.weight on Seurat::IntegrateData", "ldk-integerfield", new JSONObject(){{
4547
put("allowBlank", false);

0 commit comments

Comments
 (0)