Skip to content

Commit 7f094f6

Browse files
committed
Include default cite-seq-count params for CiteSeq handler
1 parent 987add7 commit 7f094f6

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

singlecell/src/org/labkey/singlecell/CellHashingServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ public List<ToolParameterDescriptor> getDefaultHashingParams(boolean includeExcl
838838

839839
if (includeExcludeFailedcDNA)
840840
{
841-
ret.add(ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, true));
841+
ret.add(ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, false));
842842
}
843843

844844
return ret;

singlecell/src/org/labkey/singlecell/analysis/CellHashingHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static List<ToolParameterDescriptor> getDefaultParams(boolean allowScanni
7575

7676
ret.addAll(Arrays.asList(
7777
ToolParameterDescriptor.create("editDistance", "Edit Distance", null, "ldk-integerfield", null, 2),
78-
ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, true),
78+
ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, false),
7979
ToolParameterDescriptor.create("minCountPerCell", "Min Reads/Cell", null, "ldk-integerfield", null, 5),
8080
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.create("-cells"), "cells", "Expected Cells", null, "ldk-integerfield", null, 20000),
8181
ToolParameterDescriptor.create("tagGroup", "Tag List", null, "ldk-simplelabkeycombo", new JSONObject(){{

singlecell/src/org/labkey/singlecell/analysis/CellRangerSeuratHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<Recor
184184
}
185185
}
186186

187-
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(),"readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", true), false, false);
187+
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(),"readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", false), false, false);
188188

189189
if (ctx.getParams().get(GTF_FILE_ID) == null)
190190
{

singlecell/src/org/labkey/singlecell/analysis/LoupeCellHashingHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class Processor implements SequenceOutputHandler.SequenceOutputProcessor
8989
@Override
9090
public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<RecordedAction> actions, List<SequenceOutputFile> outputsToCreate) throws UnsupportedOperationException, PipelineJobException
9191
{
92-
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(), "readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", true), true, false);
92+
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(), "readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", false), true, false);
9393
}
9494

9595
@Override

singlecell/src/org/labkey/singlecell/analysis/SeuratCellHashingHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<Recor
9494
}
9595
}
9696

97-
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getSourceDirectory(), ctx.getJob(), ctx.getSequenceSupport(), "readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", true), true, false);
97+
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getSourceDirectory(), ctx.getJob(), ctx.getSequenceSupport(), "readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", false), true, false);
9898
}
9999

100100
@Override

singlecell/src/org/labkey/singlecell/analysis/SeuratCiteSeqHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public SeuratCiteSeqHandler()
2929
{
3030
super(ModuleLoader.getInstance().getModule(SingleCellModule.class), "Seurat GEX/CITE-seq Counts", "This will run CiteSeqCount to generate a sample-to-cellbarcode TSV based on the cell barcodes present in the saved Seurat object.", null, Arrays.asList(
3131
ToolParameterDescriptor.create("editDistance", "Edit Distance", null, "ldk-integerfield", null, 2),
32-
ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, true),
32+
ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, false),
3333
ToolParameterDescriptor.create("minCountPerCell", "Min Reads/Cell (Cell Hashing)", null, "ldk-integerfield", null, 5),
3434
ToolParameterDescriptor.create("useOutputFileContainer", "Submit to Source File Workbook", "If checked, each job will be submitted to the same workbook as the input file, as opposed to submitting all jobs to the same workbook. This is primarily useful if submitting a large batch of files to process separately..", "checkbox", new JSONObject()
3535
{{
@@ -79,7 +79,7 @@ public class Processor implements SequenceOutputHandler.SequenceOutputProcessor
7979
@Override
8080
public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<RecordedAction> actions, List<SequenceOutputFile> outputsToCreate) throws UnsupportedOperationException, PipelineJobException
8181
{
82-
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(),"readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", true), false, true);
82+
CellHashingService.get().prepareHashingAndCiteSeqFilesIfNeeded(ctx.getOutputDir(), ctx.getJob(), ctx.getSequenceSupport(),"readsetId", ctx.getParams().optBoolean("excludeFailedcDNA", false), false, true);
8383
}
8484

8585
@Override

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

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider;
88
import org.labkey.api.sequenceanalysis.pipeline.PipelineContext;
99
import org.labkey.api.sequenceanalysis.pipeline.SequenceOutputHandler;
10+
import org.labkey.api.sequenceanalysis.pipeline.ToolParameterDescriptor;
1011
import org.labkey.api.singlecell.CellHashingService;
1112
import org.labkey.api.singlecell.pipeline.SeuratToolParameter;
1213
import org.labkey.api.singlecell.pipeline.SingleCellOutput;
@@ -17,7 +18,7 @@
1718
import org.labkey.singlecell.analysis.SeuratCiteSeqHandler;
1819

1920
import java.io.File;
20-
import java.util.Arrays;
21+
import java.util.ArrayList;
2122
import java.util.Collection;
2223
import java.util.Collections;
2324
import java.util.HashMap;
@@ -35,16 +36,7 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
3536
{
3637
public Provider()
3738
{
38-
super("AppendCiteSeq", "Possibly Append CITE-seq Data", "OOSAP", "If available, this will process and append CITE-seq data to the Seurat object(s).", Arrays.asList(
39-
SeuratToolParameter.create("normalizationMethod", "Normalization Method", "", "ldk-simplecombo", new JSONObject(){{
40-
put("storeValues", "CLR");
41-
put("initialValues", "CLR");
42-
}}, "CLR"),
43-
SeuratToolParameter.create("processingMethod", "Processing Method", "", "ldk-simplecombo", new JSONObject(){{
44-
put("storeValues", "PCA-tSNE;Distance-tSNE");
45-
put("initialValues", "PCA-tSNE");
46-
}}, "PCA-tSNE")
47-
), null, null);
39+
super("AppendCiteSeq", "Possibly Append CITE-seq Data", "OOSAP", "If available, this will process and append CITE-seq data to the Seurat object(s).", getParams(), null, null);
4840
}
4941

5042
@Override
@@ -54,6 +46,23 @@ public AppendCiteSeq create(PipelineContext ctx)
5446
}
5547
}
5648

49+
private static List<ToolParameterDescriptor> getParams()
50+
{
51+
List<ToolParameterDescriptor> ret = new ArrayList<>();
52+
ret.add(SeuratToolParameter.create("normalizationMethod", "Normalization Method", "", "ldk-simplecombo", new JSONObject(){{
53+
put("storeValues", "CLR");
54+
put("initialValues", "CLR");
55+
}}, "CLR"));
56+
ret.add(SeuratToolParameter.create("processingMethod", "Processing Method", "", "ldk-simplecombo", new JSONObject(){{
57+
put("storeValues", "PCA-tSNE;Distance-tSNE");
58+
put("initialValues", "PCA-tSNE");
59+
}}, "PCA-tSNE"));
60+
61+
ret.addAll(CellHashingService.get().getDefaultHashingParams(false));
62+
63+
return ret;
64+
}
65+
5766
@Override
5867
public Collection<String> getRLibraries()
5968
{

0 commit comments

Comments
 (0)