Skip to content

Commit d3b5fae

Browse files
committed
Support ClassifyTNKByExpression in single cell analyses
1 parent 6681142 commit d3b5fae

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-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 <- Rdiscvr::ClassifyTNKByExpression(seuratObj)
6+
7+
saveData(seuratObj, datasetId)
8+
9+
# Cleanup
10+
rm(seuratObj)
11+
gc()
12+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ public static void registerPipelineSteps()
178178
SequencePipelineService.get().registerPipelineStep(new RunPCA.Provider());
179179
SequencePipelineService.get().registerPipelineStep(new RunPHATE.Provider());
180180
SequencePipelineService.get().registerPipelineStep(new RunSingleR.Provider());
181+
SequencePipelineService.get().registerPipelineStep(new ClassifyTNKByExpression.Provider());
181182
SequencePipelineService.get().registerPipelineStep(new RunConga.Provider());
182183
SequencePipelineService.get().registerPipelineStep(new FindClustersAndDimRedux.Provider());
183184
SequencePipelineService.get().registerPipelineStep(new SplitSeurat.Provider());
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package org.labkey.singlecell.pipeline.singlecell;
2+
3+
import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider;
4+
import org.labkey.api.sequenceanalysis.pipeline.PipelineContext;
5+
import org.labkey.api.singlecell.pipeline.SingleCellStep;
6+
7+
import java.util.Arrays;
8+
9+
public class ClassifyTNKByExpression extends AbstractRDiscvrStep
10+
{
11+
public ClassifyTNKByExpression(PipelineContext ctx, ClassifyTNKByExpression.Provider provider)
12+
{
13+
super(provider, ctx);
14+
}
15+
16+
public static class Provider extends AbstractPipelineStepProvider<SingleCellStep>
17+
{
18+
public Provider()
19+
{
20+
super("ClassifyTNKByExpression", "Classify T/NK By Expression", "RDiscvr", "Classify T and NK By Expression and TCR clonotype, using best available evidence of ground-truth.", Arrays.asList(
21+
), null, null);
22+
}
23+
24+
25+
@Override
26+
public ClassifyTNKByExpression create(PipelineContext ctx)
27+
{
28+
return new ClassifyTNKByExpression(ctx, this);
29+
}
30+
}
31+
32+
@Override
33+
public String getFileSuffix()
34+
{
35+
return "tnk";
36+
}
37+
}

0 commit comments

Comments
 (0)