|
| 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.sequenceanalysis.pipeline.ToolParameterDescriptor; |
| 7 | +import org.labkey.api.singlecell.pipeline.SingleCellStep; |
| 8 | + |
| 9 | +import java.util.Arrays; |
| 10 | +import java.util.Collection; |
| 11 | +import java.util.HashSet; |
| 12 | +import java.util.Set; |
| 13 | + |
| 14 | +public class CustomUCell extends AbstractRiraStep |
| 15 | +{ |
| 16 | + final static String DELIM = "<>"; |
| 17 | + |
| 18 | + public CustomUCell(PipelineContext ctx, CustomUCell.Provider provider) |
| 19 | + { |
| 20 | + super(provider, ctx); |
| 21 | + } |
| 22 | + |
| 23 | + public static class Provider extends AbstractPipelineStepProvider<SingleCellStep> |
| 24 | + { |
| 25 | + public Provider() |
| 26 | + { |
| 27 | + super("CustomUCell", "Subset", "UCell/RIRA", "The seurat object will be subset based on the expression below, which is passed directly to Seurat's subset(subset = X).", Arrays.asList( |
| 28 | + ToolParameterDescriptor.create("geneSets", "Gene Sets(s)", "This should contain one UCell module per line, where the module is in the format (no spaces): SetName:Gene1,Gene2,Gene3. The first token is the name given to UCell and the second is a comma-delimited list of gene names.", "sequenceanalysis-trimmingtextarea", new JSONObject(){{ |
| 29 | + put("allowBlank", false); |
| 30 | + put("replaceAllWhitespace", true); |
| 31 | + put("height", 150); |
| 32 | + put("width", 600); |
| 33 | + put("delimiter", DELIM); |
| 34 | + }}, null) |
| 35 | + ), Arrays.asList("/sequenceanalysis/field/TrimmingTextArea.js"), null); |
| 36 | + } |
| 37 | + |
| 38 | + |
| 39 | + @Override |
| 40 | + public CustomUCell create(PipelineContext ctx) |
| 41 | + { |
| 42 | + return new CustomUCell(ctx, this); |
| 43 | + } |
| 44 | + } |
| 45 | +} |
0 commit comments