Skip to content

Commit c2fe75f

Browse files
committed
Generate CITE-seq as unfiltered table
1 parent e0402be commit c2fe75f

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

SequenceAnalysis/resources/web/SequenceAnalysis/panel/BaseSequencePanel.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Ext4.define('SequenceAnalysis.panel.BaseSequencePanel', {
1111

1212
initComponent: function(){
1313
//NOTE: if we're in a workbook, default to serch against the parent, since it will include children by default
14-
this.queryContainer = LABKEY.Security.currentContainer.type == 'workbook' ? LABKEY.Security.currentContainer.parentId : LABKEY.Security.currentContainer.id;
15-
this.queryContainerPath = LABKEY.Security.currentContainer.type == 'workbook' ? LABKEY.Security.currentContainer.parentPath : LABKEY.Security.currentContainer.path;
14+
this.queryContainer = LABKEY.Security.currentContainer.type === 'workbook' ? LABKEY.Security.currentContainer.parentId : LABKEY.Security.currentContainer.id;
15+
this.queryContainerPath = LABKEY.Security.currentContainer.type === 'workbook' ? LABKEY.Security.currentContainer.parentPath : LABKEY.Security.currentContainer.path;
1616

1717
this.initFiles();
1818

@@ -330,6 +330,13 @@ Ext4.define('SequenceAnalysis.panel.BaseSequencePanel', {
330330
sequencePanel: this
331331
}).show(btn);
332332
}
333+
},{
334+
xtype: 'ldk-linkbutton',
335+
text: 'Manage Saved Templates',
336+
linkCls: 'labkey-text-link',
337+
linkTarget: LABKEY.ActionURL.buildURL('query', 'executeQuery', Laboratory.Utils.getQueryContainerPath(), {schemaName: 'sequenceanalysis', 'query.queryName': 'saved_analyses', 'query.jobType~eq': this.jobType}),
338+
visible: LABKEY.Security.currentUser.isAdmin,
339+
scope: this
333340
}]
334341
}
335342
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public static class CellHashingParameters
9696
public Integer minCountPerCell = 5;
9797
public List<CALLING_METHOD> methods = CALLING_METHOD.getDefaultMethods();
9898
public String basename = null;
99+
public Integer cells = 0;
99100

100101
private CellHashingParameters()
101102
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public File processCellHashingOrCiteSeqForParent(Readset parentReadset, Pipeline
363363
}
364364

365365
ctx.getLogger().debug("total cached readset/" + parameters.type.name() + " readset pairs: " + readsetToHashingOrCite.size());
366-
ctx.getLogger().debug("unique HTOs: " + lineCount);
366+
ctx.getLogger().debug("unique indexes: " + lineCount);
367367

368368
Readset htoOrCiteReadset = ctx.getSequenceSupport().getCachedReadset(readsetToHashingOrCite.get(parentReadset.getReadsetId()));
369369
if (htoOrCiteReadset == null)
@@ -1358,7 +1358,7 @@ public Map<String, Object> executeCiteSeqCount(File outputDir, String basename,
13581358
//Note: version 1.4.2 and greater requires this:
13591359
//https://github.com/Hoohm/CITE-seq-Count/issues/56
13601360
baseArgs.add("-cells");
1361-
baseArgs.add("0");
1361+
baseArgs.add(parameters.cells == null ? "0" : String.valueOf(parameters.cells));
13621362
}
13631363

13641364
Integer cores = SequencePipelineService.get().getMaxThreads(log);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
278278
for (PipelineStepCtx<SingleCellStep> stepCtx : steps)
279279
{
280280
ctx.getLogger().info("Starting to run: " + stepCtx.getProvider().getLabel());
281-
ctx.getJob().setStatus(PipelineJob.TaskStatus.running, "Running: " + stepCtx.getProvider().getLabel());
282281
stepIdx++;
283282

284283
SingleCellStep step = stepCtx.getProvider().create(ctx);
@@ -309,6 +308,7 @@ else if (step.createsSeuratObjects())
309308
continue;
310309
}
311310

311+
ctx.getJob().setStatus(PipelineJob.TaskStatus.running, "Running: " + stepCtx.getProvider().getLabel());
312312
currentFiles.forEach(currentFile -> {
313313
if (currentFile.getSequenceOutputFileId() != null)
314314
{

singlecell/src/org/labkey/singlecell/button/CiteSeqButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class CiteSeqButton extends SimpleButtonConfigFactory
1616
{
1717
public CiteSeqButton()
1818
{
19-
super(ModuleLoader.getInstance().getModule(SingleCellModule.class), "Generate CITE-seq Table", "SequenceAnalysis.window.OutputHandlerWindow.readsetButtonHandler(dataRegionName, '" + CiteSeqHandler.class.getName() + "');",
19+
super(ModuleLoader.getInstance().getModule(SingleCellModule.class), "Generate CITE-seq Count Table", "SequenceAnalysis.window.OutputHandlerWindow.readsetButtonHandler(dataRegionName, '" + CiteSeqHandler.class.getName() + "');",
2020
Arrays.asList(
2121
ClientDependency.supplierFromModuleName("ldk"),
2222
ClientDependency.supplierFromModuleName("laboratory"),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ protected Map<Integer, File> prepareCountData(SingleCellOutput output, SequenceO
107107
params.createOutputFiles = true;
108108
params.genomeId = wrapper.getSequenceOutputFile().getLibrary_id();
109109
params.cellBarcodeWhitelistFile = cellBarcodesParsed;
110+
params.cells = 250000;
110111

111112
finalOutput = CellHashingService.get().processCellHashingOrCiteSeqForParent(parentReadset, output, ctx, params);
112113
}

0 commit comments

Comments
 (0)