Skip to content

Commit

Permalink
Support PerformMhcDimRedux
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 19, 2025
1 parent 8193853 commit 869f213
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
12 changes: 12 additions & 0 deletions singlecell/resources/chunks/PerformMhcDimRedux.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
for (datasetId in names(seuratObjects)) {
printName(datasetId)
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])

seuratObj <- PerformMhcDimRedux(seuratObj)

saveData(seuratObj, datasetId)

# Cleanup
rm(seuratObj)
gc()
}
2 changes: 2 additions & 0 deletions singlecell/src/org/labkey/singlecell/SingleCellModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
import org.labkey.singlecell.pipeline.singlecell.MergeSeurat;
import org.labkey.singlecell.pipeline.singlecell.NormalizeAndScale;
import org.labkey.singlecell.pipeline.singlecell.PerformDefaultNimbleAppend;
import org.labkey.singlecell.pipeline.singlecell.PerformMhcDimRedux;
import org.labkey.singlecell.pipeline.singlecell.PhenotypePlots;
import org.labkey.singlecell.pipeline.singlecell.PlotAssayFeatures;
import org.labkey.singlecell.pipeline.singlecell.PlotAverageCiteSeqCounts;
Expand Down Expand Up @@ -295,6 +296,7 @@ public static void registerPipelineSteps()
SequencePipelineService.get().registerPipelineStep(new UpdateSeuratPrototype.Provider());
SequencePipelineService.get().registerPipelineStep(new RunDecoupler.Provider());
SequencePipelineService.get().registerPipelineStep(new PerformDefaultNimbleAppend.Provider());
SequencePipelineService.get().registerPipelineStep(new PerformMhcDimRedux.Provider());

SequenceAnalysisService.get().registerReadsetListener(new SingleCellReadsetListener());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package org.labkey.singlecell.pipeline.singlecell;

import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider;
import org.labkey.api.sequenceanalysis.pipeline.PipelineContext;
import org.labkey.api.singlecell.pipeline.SingleCellStep;

import java.util.Arrays;

public class PerformMhcDimRedux extends AbstractRDiscvrStep
{
public PerformMhcDimRedux(PipelineContext ctx, PerformMhcDimRedux.Provider provider)
{
super(provider, ctx);
}

public static class Provider extends AbstractPipelineStepProvider<SingleCellStep>
{
public Provider()
{
super("PerformMhcDimRedux", "Perform MHC DimRedux", "RDiscvr", "This will perform dimensionality reduction based on MHC data", Arrays.asList(

), null, null);
}

@Override
public PerformMhcDimRedux create(PipelineContext ctx)
{
return new PerformMhcDimRedux(ctx, this);
}
}

@Override
public String getFileSuffix()
{
return "mhc";
}
}

0 comments on commit 869f213

Please sign in to comment.