|
| 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 | + |
| 9 | +import java.util.Arrays; |
| 10 | + |
| 11 | +public class RunStarCAT extends AbstractCellMembraneStep |
| 12 | +{ |
| 13 | + public RunStarCAT(PipelineContext ctx, RunStarCAT.Provider provider) |
| 14 | + { |
| 15 | + super(provider, ctx); |
| 16 | + } |
| 17 | + |
| 18 | + public static class Provider extends AbstractPipelineStepProvider<SingleCellStep> |
| 19 | + { |
| 20 | + public Provider() |
| 21 | + { |
| 22 | + super("RunStarCAT", "Run StarCAT", "CellMembrane/StarCAT", "This will run StarCAT to project cells onto a reference (e.g. TCAT.V1) and append per-cell scores and program usage to metadata.", Arrays.asList( |
| 23 | + SeuratToolParameter.create("reference", "Reference", "Either a built-in StarCAT reference name (e.g. TCAT.V1, MYELOID.GLIOMA.V1, BONEMARROW.CD34POS.HSPC.V1) or a path to a custom reference .tsv/.txt file.", "ldk-simplecombo", new JSONObject() |
| 24 | + {{ |
| 25 | + put("multiSelect", false); |
| 26 | + put("allowBlank", false); |
| 27 | + put("editable", true); |
| 28 | + put("forceSelection", false); |
| 29 | + put("storeValues", "TCAT.V1;MYELOID.GLIOMA.V1;BONEMARROW.CD34POS.HSPC.V1"); |
| 30 | + put("initialValues", "TCAT.V1"); |
| 31 | + put("delimiter", ";"); |
| 32 | + put("joinReturnValue", true); |
| 33 | + }}, "TCAT.V1"), |
| 34 | + SeuratToolParameter.create("assayName", "Assay Name", "The name of the assay containing the counts matrix passed to StarCAT.", "textfield", new JSONObject() |
| 35 | + {{ |
| 36 | + put("allowBlank", false); |
| 37 | + }}, "RNA") |
| 38 | + ), null, null); |
| 39 | + } |
| 40 | + |
| 41 | + @Override |
| 42 | + public RunStarCAT create(PipelineContext ctx) |
| 43 | + { |
| 44 | + return new RunStarCAT(ctx, this); |
| 45 | + } |
| 46 | + } |
| 47 | + |
| 48 | + @Override |
| 49 | + public String getFileSuffix() |
| 50 | + { |
| 51 | + return "starcat"; |
| 52 | + } |
| 53 | +} |
0 commit comments