Skip to content

Commit f3ffedb

Browse files
committed
Add wrapper for IdentifyAndStoreActiveClonotypes
1 parent f0bc6b8 commit f3ffedb

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
for (datasetId in names(seuratObjects)) {
2+
printName(datasetId)
3+
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
4+
5+
Rdiscvr::IdentifyAndStoreActiveClonotypes(seuratObj, chain = 'TRA')
6+
Rdiscvr::IdentifyAndStoreActiveClonotypes(seuratObj, chain = 'TRB')
7+
8+
saveData(seuratObj, datasetId)
9+
10+
# Cleanup
11+
rm(seuratObj)
12+
gc()
13+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import org.labkey.singlecell.pipeline.singlecell.FilterRawCounts;
7171
import org.labkey.singlecell.pipeline.singlecell.FindClustersAndDimRedux;
7272
import org.labkey.singlecell.pipeline.singlecell.FindMarkers;
73+
import org.labkey.singlecell.pipeline.singlecell.IdentifyAndStoreActiveClonotypes;
7374
import org.labkey.singlecell.pipeline.singlecell.IntegrateData;
7475
import org.labkey.singlecell.pipeline.singlecell.MergeSeurat;
7576
import org.labkey.singlecell.pipeline.singlecell.NormalizeAndScale;
@@ -305,6 +306,7 @@ public static void registerPipelineSteps()
305306
SequencePipelineService.get().registerPipelineStep(new ApplyKnownClonotypicData.Provider());
306307
SequencePipelineService.get().registerPipelineStep(new CalculateTcrRepertoireStats.Provider());
307308
SequencePipelineService.get().registerPipelineStep(new PredictTcellActivation.Provider());
309+
SequencePipelineService.get().registerPipelineStep(new IdentifyAndStoreActiveClonotypes.Provider());
308310

309311
SequenceAnalysisService.get().registerReadsetListener(new SingleCellReadsetListener());
310312
}
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.List;
8+
9+
public class IdentifyAndStoreActiveClonotypes extends AbstractRDiscvrStep
10+
{
11+
public IdentifyAndStoreActiveClonotypes(PipelineContext ctx, IdentifyAndStoreActiveClonotypes.Provider provider)
12+
{
13+
super(provider, ctx);
14+
}
15+
16+
public static class Provider extends AbstractPipelineStepProvider<SingleCellStep>
17+
{
18+
public Provider()
19+
{
20+
super("IdentifyAndStoreActiveClonotypes", "Identify And Store Active Clonotypes", "Rdiscvr", "This uses RDiscvr::IdentifyAndStoreActiveClonotypes to predict TCR-triggered T cells and save the results to the database", List.of(), null, null);
21+
}
22+
23+
24+
@Override
25+
public IdentifyAndStoreActiveClonotypes create(PipelineContext ctx)
26+
{
27+
return new IdentifyAndStoreActiveClonotypes(ctx, this);
28+
}
29+
}
30+
31+
@Override
32+
public String getFileSuffix()
33+
{
34+
return "is";
35+
}
36+
}
37+

0 commit comments

Comments
 (0)