Skip to content

Commit 68f64e1

Browse files
committed
Add support for PHATE
1 parent 1deca76 commit 68f64e1

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
for (datasetId in names(seuratObjects)) {
2+
printName(datasetId)
3+
seuratObj <- readRDS(seuratObjects[[datasetId]])
4+
5+
seuratObj <- CellMembrane::RunPHATE(seuratObj)
6+
print(DimPlot(seuratObj, reduction = 'phate'))
7+
8+
saveData(seuratObj, datasetId)
9+
10+
# Cleanup
11+
rm(seuratObj)
12+
}

singlecell/src/org/labkey/singlecell/SingleCellModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public static void registerPipelineSteps()
173173
SequencePipelineService.get().registerPipelineStep(new RemoveCellCycle.Provider());
174174
SequencePipelineService.get().registerPipelineStep(new RunCellHashing.Provider());
175175
SequencePipelineService.get().registerPipelineStep(new RunPCA.Provider());
176+
SequencePipelineService.get().registerPipelineStep(new RunPHATE.Provider());
176177
SequencePipelineService.get().registerPipelineStep(new RunSingleR.Provider());
177178
SequencePipelineService.get().registerPipelineStep(new FindClustersAndDimRedux.Provider());
178179
SequencePipelineService.get().registerPipelineStep(new SplitSeurat.Provider());
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 RunPHATE extends AbstractCellMembraneStep
12+
{
13+
public RunPHATE(PipelineContext ctx, RunPHATE.Provider provider)
14+
{
15+
super(provider, ctx);
16+
}
17+
18+
public static class Provider extends AbstractPipelineStepProvider<SingleCellStep>
19+
{
20+
public Provider()
21+
{
22+
super("RunPHATE", "Run PHATE", "CellMembrane/phateR", "This will run PHATE on the input object.", Arrays.asList(
23+
24+
), null, null);
25+
}
26+
27+
28+
@Override
29+
public RunPHATE create(PipelineContext ctx)
30+
{
31+
return new RunPHATE(ctx, this);
32+
}
33+
}
34+
35+
@Override
36+
public String getFileSuffix()
37+
{
38+
return "phate";
39+
}
40+
}
41+

0 commit comments

Comments
 (0)