|
| 1 | +package org.labkey.singlecell.pipeline.singlecell; |
| 2 | + |
| 3 | +import org.json.JSONObject; |
| 4 | +import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider; |
| 5 | +import org.labkey.api.sequenceanalysis.pipeline.PipelineContext; |
| 6 | +import org.labkey.api.singlecell.pipeline.SeuratToolParameter; |
| 7 | +import org.labkey.api.singlecell.pipeline.SingleCellStep; |
| 8 | +import org.labkey.api.util.PageFlowUtil; |
| 9 | + |
| 10 | +import java.util.Arrays; |
| 11 | +import java.util.Collection; |
| 12 | + |
| 13 | +public class PlotAverageCiteSeqCounts extends AbstractCellMembraneStep |
| 14 | +{ |
| 15 | + public PlotAverageCiteSeqCounts(PipelineContext ctx, PlotAverageCiteSeqCounts.Provider provider) |
| 16 | + { |
| 17 | + super(provider, ctx); |
| 18 | + } |
| 19 | + |
| 20 | + public static class Provider extends AbstractPipelineStepProvider<SingleCellStep> |
| 21 | + { |
| 22 | + public Provider() |
| 23 | + { |
| 24 | + super("PlotAverageCiteSeqCounts", "PlotAverageCiteSeqCounts", "CellMembrane", "This will generate a heatmap with average ADT counts, grouped using the fields below.", Arrays.asList( |
| 25 | + SeuratToolParameter.create("fieldNames", "Fields To Plot", "Enter one field name per line", "sequenceanalysis-trimmingtextarea", new JSONObject(){{ |
| 26 | + put("allowBlank", false); |
| 27 | + put("height", 150); |
| 28 | + put("delimiter", ","); |
| 29 | + }}, "ClusterNames_0.2,ClusterNames_0.4,ClusterNames_0.6") |
| 30 | + ), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null); |
| 31 | + } |
| 32 | + |
| 33 | + @Override |
| 34 | + public PlotAverageCiteSeqCounts create(PipelineContext ctx) |
| 35 | + { |
| 36 | + return new PlotAverageCiteSeqCounts(ctx, this); |
| 37 | + } |
| 38 | + } |
| 39 | + |
| 40 | + @Override |
| 41 | + public Collection<String> getRLibraries() |
| 42 | + { |
| 43 | + return PageFlowUtil.set("Seurat"); |
| 44 | + } |
| 45 | + |
| 46 | + @Override |
| 47 | + public boolean createsSeuratObjects() |
| 48 | + { |
| 49 | + return false; |
| 50 | + } |
| 51 | + |
| 52 | + @Override |
| 53 | + public String getFileSuffix() |
| 54 | + { |
| 55 | + return "avgAdt"; |
| 56 | + } |
| 57 | +} |
0 commit comments