Skip to content

Commit 219a606

Browse files
committed
Dont enforce calling methods for cite-seq only
1 parent b4acf46 commit 219a606

File tree

8 files changed

+23
-17
lines changed

8 files changed

+23
-17
lines changed

singlecell/api-src/org/labkey/api/singlecell/CellHashingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static public void setInstance(CellHashingService instance)
7171

7272
abstract public boolean usesCiteSeq(SequenceAnalysisJobSupport support, List<SequenceOutputFile> inputFiles) throws PipelineJobException;
7373

74-
abstract public List<ToolParameterDescriptor> getDefaultHashingParams(boolean includeExcludeFailedcDNA);
74+
abstract public List<ToolParameterDescriptor> getDefaultHashingParams(boolean includeExcludeFailedcDNA, BARCODE_TYPE type);
7575

7676
abstract public Set<String> getHtosForParentReadset(Integer parentReadsetId, File webserverJobDir, SequenceAnalysisJobSupport support) throws PipelineJobException;
7777

singlecell/resources/chunks/Functions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ addIntermediateFile <- function(f) { intermediateFiles <<- c(intermediateFiles,
2121
# This will store any modified/transformed Seurat objects:
2222
newSeuratObjects <- list()
2323

24-
#print('Updating future.globals.maxSize')
25-
#options(future.globals.maxSize = Inf)
24+
print('Updating future.globals.maxSize')
25+
options(future.globals.maxSize = Inf)
2626

2727
options('Seurat.memsafe' = TRUE)

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -823,24 +823,29 @@ public void processMetrics(SequenceOutputFile so, PipelineJob job, boolean updat
823823
}
824824

825825
@Override
826-
public List<ToolParameterDescriptor> getDefaultHashingParams(boolean includeExcludeFailedcDNA)
826+
public List<ToolParameterDescriptor> getDefaultHashingParams(boolean includeExcludeFailedcDNA, BARCODE_TYPE type)
827827
{
828828
List<ToolParameterDescriptor> ret = new ArrayList<>(Arrays.asList(
829829
ToolParameterDescriptor.create("scanEditDistances", "Scan Edit Distances", "If checked, CITE-seq-count will be run using edit distances from 0-3 and the iteration with the highest singlets will be used.", "checkbox", new JSONObject(){{
830830
put("checked", false);
831831
}}, false),
832832
ToolParameterDescriptor.create("editDistance", "Edit Distance", null, "ldk-integerfield", null, 2),
833-
ToolParameterDescriptor.create("minCountPerCell", "Min Reads/Cell", null, "ldk-integerfield", null, 5),
834-
ToolParameterDescriptor.create("methods", "Calling Methods", "The set of methods to use in calling.", "ldk-simplecombo", new JSONObject(){{
835-
put("multiSelect", true);
836-
put("allowBlank", false);
837-
put("storeValues", StringUtils.join(Arrays.stream(CALLING_METHOD.values()).map(Enum::name).collect(Collectors.toList()), ";"));
838-
put("initialValues", StringUtils.join(CALLING_METHOD.getDefaultMethodNames(), ";"));
839-
put("delimiter", ";");
840-
put("joinReturnValue", true);
841-
}}, null)
833+
ToolParameterDescriptor.create("minCountPerCell", "Min Reads/Cell", null, "ldk-integerfield", null, 5)
842834
));
843835

836+
if (type == BARCODE_TYPE.hashing)
837+
{
838+
ret.add(ToolParameterDescriptor.create("methods", "Calling Methods", "The set of methods to use in calling.", "ldk-simplecombo", new JSONObject()
839+
{{
840+
put("multiSelect", true);
841+
put("allowBlank", false);
842+
put("storeValues", StringUtils.join(Arrays.stream(CALLING_METHOD.values()).map(Enum::name).collect(Collectors.toList()), ";"));
843+
put("initialValues", StringUtils.join(CALLING_METHOD.getDefaultMethodNames(), ";"));
844+
put("delimiter", ";");
845+
put("joinReturnValue", true);
846+
}}, null));
847+
}
848+
844849
if (includeExcludeFailedcDNA)
845850
{
846851
ret.add(ToolParameterDescriptor.create("excludeFailedcDNA", "Exclude Failed cDNA", "If selected, cDNAs with non-blank status fields will be omitted", "checkbox", null, false));

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private static List<ToolParameterDescriptor> getDefaultParams()
115115
}}, null)
116116
));
117117

118-
ret.addAll(CellHashingService.get().getDefaultHashingParams(false));
118+
ret.addAll(CellHashingService.get().getDefaultHashingParams(false, CellHashingService.BARCODE_TYPE.hashing));
119119

120120
return ret;
121121
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public LoupeCellHashingHandler()
3838

3939
private static List<ToolParameterDescriptor> getDefaultParams()
4040
{
41-
List<ToolParameterDescriptor> ret = new ArrayList<>(CellHashingService.get().getDefaultHashingParams(true));
41+
List<ToolParameterDescriptor> ret = new ArrayList<>(CellHashingService.get().getDefaultHashingParams(true, CellHashingService.BARCODE_TYPE.hashing));
4242
ret.add(
4343
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. This only applies if 'Run Separately' is selected.", "checkbox", new JSONObject(){{
4444
put("checked", true);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private static List<ToolParameterDescriptor> getDefaultParams()
4040
put("checked", true);
4141
}}, false));
4242

43-
ret.addAll(CellHashingService.get().getDefaultHashingParams(true));
43+
ret.addAll(CellHashingService.get().getDefaultHashingParams(true, CellHashingService.BARCODE_TYPE.hashing));
4444

4545
return ret;
4646
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ private static List<ToolParameterDescriptor> getParams()
6161
put("initialValues", "PCA-tSNE");
6262
}}, "PCA-tSNE"));
6363

64+
ret.addAll(CellHashingService.get().getDefaultHashingParams(false, CellHashingService.BARCODE_TYPE.citeseq));
6465
return ret;
6566
}
6667

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
3232
{
3333
public Provider()
3434
{
35-
super("RunCellHashing", "Possibly Run/Store Cell Hashing", "cellhashR", "If available, this will run cellhashR to score cells by sample.", CellHashingService.get().getDefaultHashingParams(false), null, null);
35+
super("RunCellHashing", "Possibly Run/Store Cell Hashing", "cellhashR", "If available, this will run cellhashR to score cells by sample.", CellHashingService.get().getDefaultHashingParams(false, CellHashingService.BARCODE_TYPE.hashing), null, null);
3636
}
3737

3838
@Override

0 commit comments

Comments
 (0)