Skip to content

Commit 2fd3dc1

Browse files
committed
Remove now redundant check
1 parent b856d80 commit 2fd3dc1

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

singlecell/resources/chunks/SeuratPrototype.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,9 @@ for (datasetId in names(seuratObjects)) {
1919
}
2020

2121
fractionFailedHashing <- 1 - (sum(seuratObj@meta.data$HTO.Classification %in% c('Singlet', 'Doublet')) / nrow(seuratObj@meta.data))
22-
if (!is.null(maxHashingPctFail) && fractionFailedHashing > maxHashingPctFail) {
23-
addErrorMessage(paste0('Fraction failing cell hashing was : ', fractionFailedHashing, ' for dataset: ', datasetId, ', above threshold of: ', maxHashingPctFail))
24-
}
25-
2622
metricData <- rbind(metricData, data.frame(dataId = datasetId, readsetId = datasetIdToReadset[[datasetId]], metricname = 'FractionFailedHashing', metricvalue = fractionFailedHashing))
2723

2824
fractionDiscordantHashing <- 1 - (sum(seuratObj@meta.data$HTO.Classification == 'Discordant') / nrow(seuratObj@meta.data))
29-
if (!is.null(maxHashingPctDiscordant) && fractionDiscordantHashing > maxHashingPctDiscordant) {
30-
addErrorMessage(paste0('Discordant hashing rate was: ', fractionDiscordantHashing, ' for dataset: ', datasetId, ', above threshold of: ', maxHashingPctDiscordant))
31-
}
32-
3325
metricData <- rbind(metricData, data.frame(dataId = datasetId, readsetId = datasetIdToReadset[[datasetId]], metricname = 'FractionDiscordantHashing', metricvalue = fractionDiscordantHashing))
3426
}
3527

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void onFailure(SequenceOutputHandler.JobContext ctx) throws PipelineJo
7777
copyHtmlLocally(ctx);
7878
}
7979

80-
public static void copyHtmlLocally(SequenceOutputHandler.JobContext ctx) throws PipelineJobException
80+
private void copyHtmlLocally(SequenceOutputHandler.JobContext ctx) throws PipelineJobException
8181
{
8282
try
8383
{

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ public Provider()
3131
super("SeuratPrototype", "Create Seurat Prototype", "CellMembrane", "This will tag the output of this job as a seurat prototype, which is designed to be a building block for subsequent analyses.", Arrays.asList(
3232
SeuratToolParameter.create("requireHashing", "Require Hashing, If Used", "If this dataset uses cell hashing, hashing calls are required", "checkbox", null, true),
3333
//Reject based on hashing criteria:
34-
SeuratToolParameter.create("maxHashingPctFail", "Hashing Max Fraction Failed", "The maximum fraction of cells that can have no call (i.e. not singlet or doublet). Otherwise it will fail the job. This is a number 0-1.", "ldk-numberfield", new JSONObject(){{
35-
put("minValue", 0);
36-
put("maxValue", 1);
37-
put("decimalPrecision", 2);
38-
}}, null),
39-
SeuratToolParameter.create("maxHashingPctDiscordant", "Hashing Max Fraction Discordant", "The maximum fraction of cells that can have discordant calls. High discordance is usually an indication of either poor quality data, or one caller performing badly.This is a number 0-1.", "ldk-numberfield", new JSONObject(){{
40-
put("minValue", 0);
41-
put("maxValue", 1);
42-
put("decimalPrecision", 2);
43-
}}, 0.1),
44-
4534
SeuratToolParameter.create("requireCiteSeq", "Require Cite-Seq, If Used", "If this dataset uses CITE-seq, cite-seq data are required", "checkbox", null, true),
4635

4736
SeuratToolParameter.create("requireSaturation", "Require Per-Cell Saturation", "If this dataset uses TCR sequencing, these data are required", "checkbox", null, true),
@@ -109,12 +98,6 @@ protected Chunk createParamChunk(SequenceOutputHandler.JobContext ctx, List<Seur
10998
return ret;
11099
}
111100

112-
@Override
113-
protected void onFailure(SequenceOutputHandler.JobContext ctx) throws PipelineJobException
114-
{
115-
RunCellHashing.copyHtmlLocally(ctx);
116-
}
117-
118101
@Override
119102
public Output execute(SequenceOutputHandler.JobContext ctx, List<SeuratObjectWrapper> inputObjects, String outputPrefix) throws PipelineJobException
120103
{

0 commit comments

Comments
 (0)